INSERT INTO landen (albumID, $land) VALUES('$album->albumID','$kliks')
Whats going wrong, is it possible to use $ here. $land must show the name of the veld for expl. nl
Help me ...... how must i write this line 😕
I've done code similar many times with no problems. My suggestion is to echo the query out onto the screen and make sure all variables in your query are correct. I've noticed simple errors in my code that way.
Hope this helps.
you may try the following
$query = "INSERT INTO landen (albumID, ".$land.") VALUES('.$album->albumID."','".$kliks."')"
I may have missed a dot or a quote but the main idea is to avoid using variable names directly as text in your string. Hope this helps.