I create this code to add some data in my db without repeat.
but that is not work and I can\'t add data create by this php to my table.
what\'s the problem ?
P.S: I
I am surprised that this does not throw any errors. One as Barmar mentioned, you cannot mix sqli
and sql
functions.
Also logically, I do not see you select any database.
Try this first
$con=mysqli_connect("localhost","my_user","my_password","my_db") or die('error message');
then use
mysqli_query($con,"your query here");
let me know the results.