<?php
$con=mysqli_connect("localhost","root","","uplod");
if (mysqli_connect_error())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
else{
echo work
$sql ="UPDATE tea SET name = ' 8req' WHERE id = '3 ' "or die ("cant update" . mysql_error());
if($sql)
echo"working";
}
?>
Who can tell me which is error is the script?
it isnt update the db, i try in phpmyadmin sql queries it works. This is what i wrote in sqlquery (UPDATE tea SET name = ' 8req' WHERE id = '3 ')