Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

Php, Mysql, Mysqladmin install (Seriour problem)

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

Php, Mysql, Mysqladmin install (Seriour problem)

Postby gop373 » Tue Oct 05, 2004 12:03 am

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.
:(
gop373
New php-forum User
New php-forum User
 
Posts: 4
Joined: Tue Sep 28, 2004 12:32 am
Location: uk

Postby bezmond » Tue Oct 05, 2004 12:04 am

Your code most likely relies on Global variables being set to 'on'

Is this your own personal code?

Andrew
User avatar
bezmond
Moderator
Moderator
 
Posts: 312
Joined: Sat Apr 05, 2003 4:33 am
Location: Mansfield, UK

Re: Php, Mysql, Mysqladmin install (Seriour problem)

Postby WiZARD » Wed Oct 13, 2004 4:54 am

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
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.