MySQL Forums
Forum List  »  Newbie

Re: mysql_fetch_row() error
Posted by: Peter Brawley
Date: June 10, 2016 05:38AM

Change to the mysqli API; the mysql API is deprecated and will go away.

And you need to code for errors that may occur, eg ...

$con = mysqli_connect(...) ;

if( !$con ) exit( mysqli_connect_error() );

$res = mysqli_query( $con. "select ..." ) or exit( mysqli_error($con) );

Options: ReplyQuote


Subject
Written By
Posted
June 10, 2016 01:57AM
Re: mysql_fetch_row() error
June 10, 2016 05:38AM


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.