$sql = "UPDATE 'load' SET 'graphe'=".$graphe."','intersection'='".$intersection."','ville'='".$ville ."' where id= '".$id."'";

I'm using the above after a search and the person said it corrected the syntax. When I run it I get failed.

Thanks

Pete

有帮助吗?

解决方案

Change ' to ` AND insert ' before ".$graphe

$sql = "UPDATE `load` SET `graphe`='".$graphe."',`intersection`='".$intersection."',`ville`='".$ville ."' where id='".$id."'";
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top