Hey Guys n Gals,
I want to make login page in which I m taking email ID n password. If user enters email ID & password. Welcome.php should be open. else fail.php opens.Plz, read my attachments,
But I received following warnings.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\webpage\index.php on line 15

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\webpage\index.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\webpage\index.php:15) in C:\wamp\www\webpage\index.php on line 26


Plz, tell me wt the prob.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\webpage\index.php on line 15

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\webpage\index.php on line 16

Make sure you have the correct details for the MYSQL database.

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\webpage\index.php:15) in C:\wamp\www\webpage\index.php on line 26

Only define 'session_start()' at the begging on the page, just after the opening tags and don't define it everytime you want to use it. You have it in multiple places.

first you must have database in mysql and then you must insert data into your database and finally you may get your datas. if you dont have database and table its not possible
Good luck
if any problems again feel free to respond

HI,
I have correct database, also I delete multiple session_start() function from code. But it doesn't work yet.

Hi,
Thanks, its working.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.