Hi everyone!
I go the problem while inserting data into mysql,I am not getting error but I could not find record in the database table.
my code is:
<body>
<?php
mysql_pconnect("localhost","gopi","test");
mysql_select_db ("gopi");
$name="Bobby";
$salary=8000;
$query = "INSERT INTO employee(name,salary)values($name,$salary)";
mysql_query($query);
echo "successfully added";
?>
</body>
Can you help me what is wrong with code.
Leela