mysqli - My insert doesn't work but i don't get any errors -


my mysqli insert doesn't work reason don't errors.

<?php  $con=mysqli_connect("localhost","root","","dice"); if (mysqli_connect_errno())   {   echo "failed connect mysql: " . mysqli_connect_error();   }  mysqli_query($con,"insert `gamble` (thr,score,tstamp) values ('test123','test123','test123')"); echo "new record has id: " . mysqli_insert_id($con);  mysqli_close($con);   ?> 

i don't know did wrong. thank in advance.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -