I have this script and i can not get it to insert the Carimg it just dosnt insert anything
Here is my code [ i have removed a few of the cars to make it shorter ]
Code:
if ($cars[$win] == "Ferrari F430"){
$carimg = "..images/gta/f430.jpg";}
//
if ($cars[$win] == "Pagani Zonda F"){
$carimg = "..images/gta/zonda.jpg";}
//
$for=round($for);
mysql_query("INSERT INTO `garage` ( `id` , `owner` , `car` , `damage`,`origion`,`location`,`worth`,`carimg`)
VALUES (
'', '$username', '$cars[$win]', '$damage','$info->location','$info->location','$for',`$carimg`
)"); And to prove the if car win works ill show you a code just above which it works on
Code:
if ($cars[$win] == "Pagani Zonda F"){
echo("<p class='success'><img src=\"../images/gta/zonda.jpg\" /></p>");
$max="100000";
if ($damage == "0"){
$for=$max;
}elseif ($damage == "100"){
$for = "0";
}else{
$for = $max / $damage *2;
}
}