PDA

View Full Version : Can you help with this


MJS
04-26-2007, 02:46 PM
Hi
got this problem when I run a php page it give me this error

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\wamp\www\web_root\South_West_Herts_RAYNET\Conne ctions\connection.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\web_root\South_West_Herts_RAYNET\Conne ctions\connection.php:8) in C:\wamp\www\web_root\South_West_Herts_RAYNET\Login .php on line 27

it was working gust fine .

domedia
04-26-2007, 02:50 PM
Is there supposed to be a space in 'Conne ctions'?

davidj
04-26-2007, 03:05 PM
im thinking the space was a typo


the first part of the error isnt really an error its a warning.

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\wamp\www\web_root\South_West_Herts_RAYNET\Conne ctions\connection.php on line 8

this bit of the error is a result of the first part of the error pushing text to the page advising of an ERROR! (confused?) hehe

just think of the second part as an error which is part of the first. So by sorting the first part the second will resolve.

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\web_root\South_West_Herts_RAYNET\Conne ctions\connection.php:8-) in C:\wamp\www\web_root\South_West_Herts_RAYNET\Login .php on line 27

to resolve the problem just do the following

in the connections script you have this function...

mysql_select_db():

just add a suppressor to the function like this...


@mysql_select_db():