PHP Error Message

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
mg66
-


Joined: 15 Aug 2004
Posts: 85
Location: USA, Illinois

PostPosted: Tue Apr 12, 2005 2:47 pm    Post subject: PHP Error Message Reply with quote

Working on a dynamic PHP site and all works with one exception. When I first load the index.php I get a error message flash on screen for about ˝ second and then loads the rest of the pages fine.

The error says its in the first line but I cannot see the problem.

The code is as follows:

<?PHP $x=$_GET['x'];
if (empty($x)) {
$x='bghi_home';
}
?>

Any Ideas??
_________________
mg66

http://sv650.metromain.net
http://photography.metromain.net
http://weather.metromain.net
http://www.metromain.net
http://www.bghi.us


Abyss Web Server X2
Back to top View user's profile Send private message Visit poster's website
mg66
-


Joined: 15 Aug 2004
Posts: 85
Location: USA, Illinois

PostPosted: Tue Apr 12, 2005 4:14 pm    Post subject: Reply with quote

Changed code to ...

<?
if (empty($x)) {
$x='bghi_home';
}else{
$x=$_GET['x'];
}
?>

and now working fine. Thanx for the help trustpunk.
_________________
mg66

http://sv650.metromain.net
http://photography.metromain.net
http://weather.metromain.net
http://www.metromain.net
http://www.bghi.us


Abyss Web Server X2
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group