MySQL Forums
Forum List  »  PHP

Re: Cannot connect to Database
Posted by: Peter Brawley
Date: January 01, 2015 05:56PM

when a call can fail, always poll for errors, eg minimally ...

$result = mysqli_query($link, "SELECT * FROM test_cntl_match")
or exit( mysqli_error($link) );

Ditto for fetches.

> bool mysqli_close ( mysqli $link );

mysqli_close( $link );

Options: ReplyQuote


Subject
Written By
Posted
December 10, 2014 06:24PM
December 10, 2014 09:39PM
January 06, 2015 02:08AM
December 20, 2014 02:28AM
December 20, 2014 10:04AM
December 30, 2014 10:18PM
Re: Cannot connect to Database
January 01, 2015 05:56PM


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.