MySQL Forums
Forum List  »  PHP

Re: PHP & MySQL database insertion problem
Posted by: Peter Brawley
Date: February 19, 2015 12:48PM

<?php
$sql = 'INSERT INTO table1 (id,firstname) VALUE (4,'Dino')';
$res = mysqli_query( $sql ) or exit( mysqli_error($connect) ); // call the query
if( !$res ) exit( exit( mysqli_error($connect) ); // $res=0 if Insert failed
...

?>

Options: ReplyQuote


Subject
Written By
Posted
Re: PHP & MySQL database insertion problem
February 19, 2015 12:48PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.