I have been having problems with this code and i cant find out why
I am trying to add a new element to an array. it says it goes throu butwhen i check its empty:
$sql="UPDATE $title SET arole = CONCAT_WS(',', arole, '$name')
WHERE op = '$name'";
die('Error: ' . mysql_error());
echo "Point Placed<br>";
echo "<a href='index.php'>Return to Login</a>";
2 Months Ago
Related Article:Insert into set question?
is a solved PHP discussion thread by CreatorZeus that has 2 replies, was last updated 2 months ago and has been tagged with the keywords: mysql, php, insert, into, set.
die("UPDATE $title SET arole = CONCAT_WS(',', arole, '$name') WHERE op = '$name'";);
Your query will get displayed with actual values. Copy it to the SQL window of phpmyadmin and see what you get when you run it. If there are errors you will get error messages there that will help you solving the problem.