I am getting a weird error with mysql queries I am trying to send.
Here is my code
[php]
Select character: | "; $s = mysql_query("SELECT * FROM `characters` WHERE `accountid`= ".$accid." ORDER BY `id` ASC") or die(mysql_error()); while($c = mysql_fetch_array($s)) { echo " ".$c['name'].""; } echo " |
The first part gets the character names so you can select them, which works fine.
The next part is suppose to set the mainchar field to the character id of which character you choose… this is giving me an error.
Any help is appreciated because I’m lost.