ccpokerd Posted March 12, 2010 Share Posted March 12, 2010 Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/d/d/d/dddotnet/html/cs/www/unsubscribe.php on line 28 $qry = "SELECT * FROM signups WHERE hash='$hash' AND email='$email'";$result = mysql_query($qry);if(mysql_num_rows($result) == 1) { $name = mysql_fetch_assoc($result); $del = "DELETE FROM signups WHERE CONVERT(signups.hash USING utf8) = '$hash' LIMIT 1"; $msg = "Thank you $name['name'], your email address has been removed from our database."; mysql_query($del);} Line 28 is the one starting with $msg =.... Link to comment Share on other sites More sharing options...
jeffman Posted March 12, 2010 Share Posted March 12, 2010 The normal way to interpolate array values in double quotes is to surround the identifier with braces:{$name['name']} Link to comment Share on other sites More sharing options...
ccpokerd Posted March 12, 2010 Author Share Posted March 12, 2010 thank you :)I thought it had something to do with that, but i couldn't work out what, I never knew arrays needed that, thanks :)see, this is what happens when I attempt to write my own code instead of scamming off of a script website :)hehe Link to comment Share on other sites More sharing options...
ShadowMage Posted March 12, 2010 Share Posted March 12, 2010 thank you :)see, this is what happens when I attempt to write my own code instead of scamming off of a script website You learn? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.