472,133 Members | 1,169 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

Error message- Notice: Undefined index:

How do I fix this error message below? Thanks.
Notice: Undefined index: key_word in C:\Program Files\Apache
Group\Apache2\htdocs\search010.php on line 55

....
if( $_GET['key_word'] ) { // line 55

// connect to the database
mysql_pconnect("localhost","sarah","password")
or die("ERROR: Could not connect to database!");
mysql_select_db("howto");
....
Jul 17 '05 #1
1 2571
Hal Halloway wrote:
How do I fix this error message below? Thanks.
Notice: Undefined index: key_word in C:\Program Files\Apache
Group\Apache2\htdocs\search010.php on line 55

...
if( $_GET['key_word'] ) { // line 55
Change it into:

if (isset($_GET['key_word']))

// connect to the database
mysql_pconnect("localhost","sarah","password")
or die("ERROR: Could not connect to database!");
mysql_select_db("howto");
...

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Mairhtin O'Feannag | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.