문제

$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