469,076 Members | 1,422 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,076 developers. It's quick & easy.

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 2460
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
By using this site, you agree to our Privacy Policy and Terms of Use.