MySQL Forums
Forum List  »  PHP

Re: Assistance with MySQLI Conversion After Upgrade to 5.7
Posted by: Peter Brawley
Date: September 13, 2019 09:31AM

1. All calls that can raise errors need error handling, so you need something like ...

if( !result ) exit( mysqli_error($thecon) );

after the mysqli_query() call and after the mysqli_fetch() loop.

2. Without tabular formatting, output will be hard to read. (If this is for a web page, "\n" doesn't print a newline. )

Options: ReplyQuote


Subject
Written By
Posted
Re: Assistance with MySQLI Conversion After Upgrade to 5.7
September 13, 2019 09:31AM


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.