Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > Php problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-04, 05:07
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
Php problem

I think I have problem about setting.
When I run code I got message like this.
"Notice: Undefined variable: id in C:\Interpub\wwwroot\ASP\PHP_WORK\employee\edit.php online 1

Warning: Cannot modify header information-headers already sent by (output stated at C:\Interpub\wwwroot\ASP\PHP_WORK\employee\edit.php :1) in C:\Interpub\wwwroot\ASP\PHP_WORK\employee\edit.php on line 1

Notice: Undefined variable: id in C:\Inetpub\wwwroot\ASP\PHP_WORK\employee\edit.php on line 5
select * from employee where id=

Warning mysql_fetch_arrat(): supplied argument is not a valid MySql result resource in C;|Inetpub\wwwroot\ASP\PHP_WORK\employee\edit.php on line 8"

I didn't have an idea why I got the message like this because I clicked link Edit from index.php. I think the problem is setting (Php, mysql , phpmyadmin) because when I run this code in my old computer it work.
Reply With Quote
  #2 (permalink)  
Old 10-05-04, 11:36
rajesh_r_r rajesh_r_r is offline
Registered User
 
Join Date: Jan 2004
Location: India
Posts: 168
I think first you have to make this in your php.ini file
error_reporting= E_ALL & ~E_NOTICE
This will avoid the notice that are not relevent.
The second warning in due to the first notice.
For the 3rd look your select stament. What is the variable you are passing there? The values in empty or use `` whe you specify id.. menas when you us the filed name id use like this `id`. Id is a keyword so normally gives error id not used properly. This error is from mysql.
the last error is due to the 3rd error once you solve the 3rd error the 4th one will automatically disappear.
If still you have any problem get back to us.
Regards

Rajesh
__________________
Freelance and Technology Consultant
-------------------
Dreams are for ever
-------------------
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On