Jump to content


This topic is now archived and is closed to further replies.


Annoying Errors

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:

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

[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

Share this post

Link to post
Share on other sites


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.