Hey guys, I am having yet another problem that I can not figure out. I have a php script that runs a delete command on the database. The only problem is that it says that is has been deleted but it does not delete from the database.
My code is as follows...
<?
// set up some variables
// server name
$server = "localhost";
// username
$user = "$name1";
// password
$pass = "$password1";
// database to query
$db = "barberin_Cars";
// open a connection to the database
$connection = mysql_connect($server, $user, $pass);
// formulate the SQL query - same as above
$query = "DELETE FROM 'inventory' where vin = $vin";
// run the query on the database
$result = mysql_db_query($db,$query,$connection);
echo "<center><strong>The car has been deleted from the database</strong></center>";
?>