MySQL Forums
Forum List  »  PHP

Re: Php mysql requête aléatoire
Posted by: Peter Brawley
Date: September 26, 2019 11:04AM

For help in French, please use the French forum here.

Your syntax is ferkakta, you need at least something like ...

$conn = mysqli_connect(...) 
        or exit( mysqli_connect_error() );
$reqsql = "update ...";
$result = mysqli_query( $conn, $reqsql );
if( !$result ) 
  exit( mysqli_error($conn) );

and in production code, you need to both provide a graceful message and exit for the user, also log the error for study by the development team.

Options: ReplyQuote


Subject
Written By
Posted
September 26, 2019 10:28AM
Re: Php mysql requête aléatoire
September 26, 2019 11:04AM


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.