[PHP] help with parse error

2003-08-26 Thread Stevie D Peele
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.);

RE: [PHP] help with parse error

2003-08-26 Thread Paul Fitzpatrick
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

[PHP] Help with parse error

2003-08-20 Thread James Johnson
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

Re: [PHP] Help with parse error

2003-08-20 Thread Peter James
- 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

RE: [PHP] Help with parse error

2003-08-20 Thread James Johnson
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

Re: [PHP] help with parse

2001-04-04 Thread Harshdeep S Jawanda
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.

Re: [PHP] help with parse

2001-04-04 Thread Lindsay Adams
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

[PHP] help, with parse

2001-04-03 Thread WD
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

[PHP] help with parse

2001-04-03 Thread WD
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");

RE: [PHP] help with parse

2001-04-03 Thread Jason Murray
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

Re: [PHP] help with parse

2001-04-03 Thread Wade DeWerff
: 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

Re: [PHP] help with parse

2001-04-03 Thread Wade DeWerff
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