Jump to content
Larry Ullman's Book Forums

Evy

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Evy

  • Rank
    Newbie
  1. The User Defined Function is not being undefined on the login page. Its shoeing this error message : Fatal error: Call to undefined function is_administrator() in /home/moshpjkm/public_html/templates/footer.html on line 3. This is the function.php page and I save it in includes directory <?php // Script 13.2 - functions.php /*This page defines custom functions*/ //This function checks of the user is the administrator //This function take two optional values //This function returns the Boolean value if((function is_administrator($name= 'Samuel', $value='Clemens')){ //Check for
  2. I have done all the coding perfect for 'Script 12.5 - add_entry.php. But if I add details to the title and entry fill in space it shows me the following errors: Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\add_entry.php on line 14 Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\add_entry.php on line 15 Warning: mysql_error() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\add_entry.php on line 38 Warning: mysql_close() expects parameter 1 to be resource, b
×
×
  • Create New...