Jump to content

Recommended Posts

Posted

Hello,

 

I am doing the simple login tutorial. I am currently on video #3. When I test the login.php page I get this error:

 

Fatal error: Call to undefined function mysql_report() in C:\wamp\www\my_php\login\login_project\includes\config.php on line 10

 

 

Here is the config.php code:

 

<?php
/*
* LOGIN.PHP
* Log in members
*/

//start session / load configs
session_start();
include('includes/config.php');
include('includes/db.php');

include('views/v_login.php');

?>

 

 

I am using WAMP and Eclipse. Perhaps I don't have the path to the database configured correctly? Do I need to do something special in WAMP for that? Thank you!

Posted

The code you posted is for your login.php page, not the config... however, off the top of my head, I believe you need to use "mysqli_report()" (note the "i"). If that doesn't work for you, post the config.php code.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...