MySQL Forums
Forum List  »  Newbie

Re: POST_data from a form as value in a mysql WHERE clause
Posted by: Nathan Ziarek
Date: July 18, 2005 06:57AM

Happy to help.

Just to further clarify, this is how quotes work (on my system at the very least). The result of the command is preceeded by a ">"


$something = 'hello world';

echo $something;
> hello world

echo '$something';
> $something

echo "$something";
> hello world

echo 'good morning and' . $something; /*concatenate 'hello world' to the end of the string*/
> good morning and hello world

echo "good morning and $something";
> good morning and hello world

echo 'good morning and $something';
> good morning and $something

Anyway, glad it worked! Good luck with your project,

Nate

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.