PHP beginner |
|
Wat is hier fout aan:
<?php
If($hit == '1'){
if(mysql_result(mysql_query("SELECT COUNT(id) FROM `hitshit` WHERE song = '$song'"),0) == 0)
{
$query="INSERT INTO hitshit (song, hit, shit) VALUES ($song, 0, 0)";
mysql_query($query) or die (mysql_error());
}
?>
<?php If($hit == '1'){ { $query="INSERT INTO hitshit (song, hit, shit) VALUES ($song, 0, 0)"; } ?>
De error:
Unknown column 'JohnLegendICanChange' in 'field list'
|