Forum for you who has PHP installation issues
2 posts • Page 1 of 1
- Posts: 1256
- Joined: Thu Jun 20, 2002 10:14 pm
- Location: Ukraine, Crimea, Simferopol
gop373 wrote: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.
1 see your code and find ID variable. try use quotes like ` its help. You have a mistake in your SQL query.
2 try find what you send to browser firstly. I mean what you somehow send some to browser first and after that trying use header function
Who is online
Users browsing this forum: No registered users and 1 guest