MySQL Forums
Forum List  »  PHP

Re: Data not being entered into database
Posted by: Peter Brawley
Date: March 13, 2016 06:52PM

> $res = mysqli_query($qry);

Two errors:

1. Check the manual entry for mysqli_query(). Its first param must refer to the object that has been returned by mysqli_connect().

2. To debug your query calls, you need to trap error messages, for example minimally ...

$res = mysqli_query( $conn, $qry ) or exit( mysqli_error($conn) );

Options: ReplyQuote


Subject
Written By
Posted
Re: Data not being entered into database
March 13, 2016 06:52PM


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.