im new to this php and mysql stuff, im still trying to know them..but as i start in the basics, i encounter a problem.I try to insert new records to a table i named "all_users"..the SELECT function is working but as i try the INSERT and DELETE function they aren't. this is my codes:
<?
$host="localhost";
$username="root";
$password="";
$dbase="all_users";
$conn = mysql_connect($host, $username, $password) or die ("unable to connect");
$select = mysql_select_db($dbase, $conn);
$result = mysql_query("INSERT INTO 'users' VALUES(users_id,'$users_name','$users_password','$users_email')");
?>
only users_id is inserted on the table, (for INSERT function) the rest of the fields is blank. The DELETE function is not totally working and this is the codes:
<?
$host="localhost";
$username="root";
$password="";
$dbase="all_users";
$conn = mysql_connect($host, $username, $password);
$select = mysql_select_db($dbase, $conn);
$result = mysql_query("DELETE FROM users WHERE users_id='$users_id'");
?>
Please help me, i really want to learn..please?🙁 🙁 🙁