I can write simple MySQL stuff in PHP but I'm having problems putting
in WHERE clauses. Everytime I do I get errors like this:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in c:\program
files\apache group\apache\htdocs\vod\mineral_action.php on line 10
The code that generated this crap is:
$sql = "UPDATE character SET mining = $new_skill WHERE char_name =
$_SESSION['user']";
I do have my session correctly started and all that (I know this
mainly because I don't get error without the WHERE stuff and have
tested out the variable). I think I've tried everything under the sun
to try and get this working. This is in <? ?> as correctly needed
with PHP it's just something with the WHERE statements. I tried the
yahoo chat rooms but to no avail.
Besides looking for help with this problem, can anyone refer me to a
good irc chat room for php problems that has ACTIVE (not filled with
lurkers) people in it?
Thanks for your help!