Jump to content

Recommended Posts

[size=3]Annoying Errors[/size]

[quote]Warning: main(): Failed opening '/home/the-whom/public_html/layout.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/the-whom/public_html/join.php on line 2[/quote]
[b]Solution:[/b]  Make sure that the file you are trying to include() is named correctly, and is pointing to the right path, such as
[i]include 'includeFolder/file.php';[/i]
[quote]Warning: mysql_result()/mysql_fetch_assoc/mysql_num_rows/mysql_fetch_object: supplied argument is not a valid MySQL result resource in /home/the-whom/public_html/join.php on line 78[/quote]
[b]Solution:[/b]  Check your SQL syntax and make sure that there is indeed a row (or rows) that match the criteria.  For example:
[code]
<?php

$sql = mysql_query("SELECT name, id FROM users WHERE name='Jacko'");
//if there is no field called "name" you'll get an error.

?>
[/code]
[quote]Error inserting your information into MySQL: No Database Selected[/quote]
[b]Solution:[/b] Connect to the Database, and if you have connected, make sure that you have selected which DB you want to use with mysql_select_db().
[quote]Fatal error: Call to undefined function: footer() in /home/the-whom/public_html/join.php on line [/quote]
[b]Solution:[/b]  Make sure the function exists.

Acknowedgement: steveo31
Link to comment
https://forums.phpfreaks.com/topic/11577-annoying-errors/
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.