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
Post a Comment