I have a parse error on line 12 --
---
?php
include ('config.php');
$link = @mysql_pconnect($location, $username, $password)
or die(Could not connect to the databaseserver. Please go back and
try again or try again later.);
Hi,
Maybe..
$sql = SELECT Title, SubT, Author, Story FROM SiteNews;
should be
$sql = SELECT Title, SubT, Author, Story FROM SiteNews;
-Original Message-
From: Stevie D Peele [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 5:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] help
Hi,
I'm trying to figure out this error I'm getting in my code:
Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9
This is the code on line 9:
$sDate = date('Y-m-d',time());
Does this look valid?
Thanks,
James
--
PHP General Mailing List (http://www.php.net/)
To
-
From: James Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:07 AM
Subject: [PHP] Help with parse error
Hi,
I'm trying to figure out this error I'm getting in my code:
Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9
This is the code
Yup, that was it. Missing a semi-colon on line 8.
Thanks,
James
-Original Message-
From: Peter James [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:17 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Help with parse error
Can you give us a couple lines either side
Hi,
Renze Munnik wrote:
Have you ever checked the $HTTP_USER_AGENT value from IE?
IE says:
"Mozilla/4.0 (compatible; MSIE 5.01; Windows 95)"
(for example)
So, you shouldn't be checking for Mozilla. IE says that to.
You should first check for the existence of "IE" in $HTTP_USER_AGENT.
e: Tuesday, April 03, 2001 7:54 PM
Subject: RE: [PHP] help with parse
?php
if ($HTTP_USER_AGENT = "Mozilla")
^ This needs to be "=="
Actually, it needs to be " if(substr($HTTP_USER_AGENT, "Mozilla"))".
*slap.self*
J
this code isnt parsing like I expect..
?php
if ($HTTP_USER_AGENT = "Mozilla")
{
print ("This site best viewed with IE 4 or
better!\n");
print ("center\n");
print ("a href='http://www.microsoft.com'\n");
print ("img src='lgoIE.gif'/a\n");
print ("/center\n");
}
?
heres what is result in
heres what is result in IE...which shouldnt show up at
this code isnt parsing like I expect..
?php
if ($HTTP_USER_AGENT = "Mozilla")
{
print ("This site best viewed with IE 4 or
better!\n");
print ("center\n");
print ("a href='http://www.microsoft.com'\n");
print ("img src='lgoIE.gif'/a\n");
heres what is result in IE...which shouldnt show up at
this code isnt parsing like I expect..
?php
if ($HTTP_USER_AGENT = "Mozilla")
^ This needs to be "=="
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
: Tuesday, April 03, 2001 7:54 PM
Subject: RE: [PHP] help with parse
?php
if ($HTTP_USER_AGENT = "Mozilla")
^ This needs to be "=="
Actually, it needs to be " if(substr($HTTP_USER_AGENT, "Mozilla"))".
*slap.self*
Jason
--
J
day, April 03, 2001 7:54 PM
Subject: RE: [PHP] help with parse
?php
if ($HTTP_USER_AGENT = "Mozilla")
^ This needs to be "=="
Actually, it needs to be " if(substr($HTTP_USER_AGENT, "Mozilla"))".
*slap.self*
Jason
--
Jason M
12 matches
Mail list logo