Jump to content

uery failed: You have an error in your SQL syntax;


TeddyKiller

Recommended Posts

When $qname['name'] has a value of ex: warrior's, It is thinking the ' is syntax. How can I prevent this?

 

$q1 = $db->execute("update `users` set `".$_GET['slot']."` = '".$qname['name']."' where `id`=?", array($player->id)) or die("query failed: ".mysql_error());

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.