Jump to content

getting an error from one of the videos


jamie

Recommended Posts

I am following one of the video tutorials - making a php mysql login system by ben faulk and I am getting this error on the login.php

 

Notice: Use of undefined constant MYSQL_REPORT_ERROR - assumed 'MYSQL_REPORT_ERROR' in C:\wamp\www\phpLogin\includes\config.php on line 13

 

Warning: mysqli_report() expects parameter 1 to be long, string given in C:\wamp\www\phpLogin\includes\config.php on line 13

 

here is the config.php

//user authentication
$config['salt'] = 'jk7d?3';

//error reporting
mysqli_report(MYSQL_REPORT_ERROR);
?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...