Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
If you can't figure out how to do the rest of what you're saying based on the query I gave you, then you need to go back to the basics.
-
echo '<input name=$db type=radio value=$db>'; Variables within single quotes are not parsed. You are literally creating an input with the name '$db' and a value of '$db'. do a print_r($_POST) and you'll see. Or view the rendered source.
-
I don't see any attempt to actually display the graph.
-
1. You should be using a user id, rather than a name, as a unique identifier for each row. 2. You haven't specified what tables to select from. A better way to do it is: SELECT messages.datesent, users.logoutdate FROM users LEFT JOIN messages ON users.user_id = messages.user_id WHERE users.user_id = $user_id ORDER by ASC datesent 3. You are not capturing mysql errors, see my signature. 4. Your entire intent seems flawed, however. You realize this will get you every datesent in the messages table for that user, with the ONE single user's log out time? Why would you want that?
-
You may have done this already, but ask the customer to go to youtube and make sure he can hear audio from the videos there, or find another site that just plays audio without flash like yours is doing and see if he can hear that. Edit: I re-read the OP and see you ARE using flash. So, find a site that uses flash and have him test it. Also direct him to the latest version of flash.
-
Are you sure you're connected to mysql?
-
A test is not programming an entire app. Interview test questions will cover small issues and usually be things like fixing a bug, not writing an entire app.
-
What is it with the entitled whiny children tonight?
-
Insert Checkbox Values Into Table As Delimited String
Jessica replied to acidking's topic in PHP Coding Help
Dude, take the language down a notch. If you don't like the answers you get, leave. Don't be a whiny child. -
Why are you doing ratings = increment + 1 is the question? What is increment supposed to be? A column or a variable?
-
Insert Checkbox Values Into Table As Delimited String
Jessica replied to acidking's topic in PHP Coding Help
Why would you store data that won't be used again? If you don't know how to use google, that's your problem. Too bad your project manager can't see this and all the other places where apparently you've been told its a bad idea. If you don't have the balls to tell them, we can. -
Insert Checkbox Values Into Table As Delimited String
Jessica replied to acidking's topic in PHP Coding Help
No, because then when you have trouble actually using the data, you'll be asking for help again and you'll get the same response. There's a reason everyone keeps telling you to do it that way. However, imploding an array into a delimited string is so simple that if you insist on doing it, you should have been able to find an example by now... -
Parse Error: Syntax Error, Unexpected '}' In .............
Jessica replied to suckatcoding's topic in PHP Coding Help
*shrug*. Glad someone could help you -
Also, you need to learn HOW TO LEARN. Learning to bake is very similar to learning to program. Would you read a recipe and see "tbs" and throw your hands in the air and say you don't get it? What would you do when you are instructed to temper chocolate? Or sift flour? This is the SAME process. These are mostly English words that you simply don't understand and rather than throwing flour into the oven and picking a random temperature, then complaining that your cupcakes taste bad, you need to learn what the terms are and how the processes work. Then you can learn that when your cupcakes rise and fall, it means your baking soda ia too old, and when they never rose at all, you probably forgot the baking soda entirely. You don't just throw random things together without knowing WHY. The computer is no more magic than my mixer, you have to do things in the right order, and be specific. The good thing is that with a computer, you're not likely to poison anyone if you mess up, so you can try things until you get it right. If you want to update a specific user, you need to know what user to update. It's up to you to decide how that information gets from one place to another, there are several ways.
-
The first line tells you to assign the value of $_POST['id'] to $id, while casting it to an integer. Since it's an ID, it should be a number. The second line tells you to put a WHERE clause on your query, which you did. WHERE THE HELL ARE YOU STUCK??? You have a half dozen versions of this code that just show you putting random bits of code in, if you don't understand what ANY OF IT DOES you will continue to come back and be confused. If another forum is happy to do it for you, GO BACK THERE.
-
Parse Error: Syntax Error, Unexpected '}' In .............
Jessica replied to suckatcoding's topic in PHP Coding Help
So where is the if that goes with that else?? That's bugging me. -
Then it's time to find a new hobby.
-
Fatal Error: Call To Undefined Function Mysql_Nums_Rows()
Jessica replied to Nightasy's topic in PHP Coding Help
LOL. That was a great response. -
Fatal Error: Call To Undefined Function Mysql_Nums_Rows()
Jessica replied to Nightasy's topic in PHP Coding Help
It tells you in plain english. There is no such function as mysql_nums_rows. -
Parse Error: Syntax Error, Unexpected '}' In .............
Jessica replied to suckatcoding's topic in PHP Coding Help
Well someone else might come along and figure it out, I'm just saying it looks like there is a section of the file missing. And the Dev should be able to debug the code you've posted if it's his code, without going on your server. But he says he didn't even write it. If you can find the author of it on http://www.oscommerce.com you might get some help from them. -
To be fair, that doesn't fix the problem. And the OP already noted that he realized he needs to echo the string...
-
Parse Error: Syntax Error, Unexpected '}' In .............
Jessica replied to suckatcoding's topic in PHP Coding Help
Yeah, don't give that guy access to your server. I would try to find another script, if you're not able to fix this one. The crappy indenting makes it hard to follow to even identify the problem. -
Parse Error: Syntax Error, Unexpected '}' In .............
Jessica replied to suckatcoding's topic in PHP Coding Help
As far as I can see, it goes from an opening for(){ to an }else{ without ever closing the for(){ construct. Talk to the developer who made it? -
How do you seriously not see what's wrong with that code? Do you really not know the difference between a word and a number?
-
There is no part of that description that has to do with storing PHP in your database.