Re: Parse Error

From: Date: Wed, 10 Oct 2001 16:52:23 +0000
Subject: Re: Parse Error
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13200@lists.php.net to get a copy of this message
This is the group of code that is giving me problems, starting with line 61 (the parse error indicated line 64 as being the "troublemaker"). $query2 = $DB_site->query($sql); while ($row = $DB_site->fetch_array($query2)) { if($row['PostTemplate']!="" AND $row['PostImage']!=""){ $link = "f=$row['PostImage']"; } I will try changing line 65 to read the new code and see what happens. Thanks for your response. Matthew Cloner Mulitmedia Graphic Designer Hynomics Corporation Beau Lebens wrote: > can you also please post line 63, but try changing 65 to read; > > $link = "f=" . $row['PostImage']; > > // -----Original Message----- > // From: Matthew Cloner [mailto:cloner@feynman.hybrithms.com] > // Sent: Wednesday, 10 October 2001 9:51 AM > // To: PHPGalaxy.com > // Cc: php-db@lists.php.net > // Subject: Re: [PHP-DB] Parse Error > // > // > // Sure. Here are lines 64 & 65, which kind of go together. It > // might help if you > // saw the code: > // > // if($row['PostTemplate']!="" AND > $row['PostImage']!=""){ > // $link = "f=$row['PostImage']"; > // > // > // And here's that error message again: > // > // > // > Parse error: parse error, expecting T_STRING' or ƒÔÜ” > ä•7Ã"�>¡T_VARIABLE' or > // > `T_NUM_STRING' in > // > C:\Inetpub\wwwroot\ecard\index.php on line 64 > // > // > // It would be really great if you or someone else on this list > // could figure out > // a solution for this thing. Thanks for responding. > // > // > // Matthew Cloner > // Multimedia Graphic Designer > // Hynomics Corporation > // > // > // > // > // > // > // "PHPGalaxy.com" wrote: > // > // > Hey...would it be possible for you to copy/paste line 64 > // and reply? I had > // > this error once before, it was when I did some sorta > // getenv() function, and > // > I had it slightly off. If I saw what you were doing, I'll > // probably remember > // > =) > // > > // > Matthew Cloner wrote: > // > > // > > This is my first post to this list. I'm in the process > // of installing a > // > > "virtual e-card" system on our Windows NT server. It > // involves using both > // > > PHP4 and MySQL. > // > > The installation process was a success, but I've been > // having problems > // > > viewing the index.php file. I keep getting the following > // Parse error > // > > message: > // > > > // > > Parse error: parse error, expecting T_STRING' or > T_VARIABLE' or > // > > `T_NUM_STRING' in > // > > C:\Inetpub\wwwroot\ecard\index.php on line 64 > // > > > // > > I was advised by the creator of this virtual e-card > // system to add the > // > > following piece of code to the second line: > // > > > // > > error_reporting(0); > // > > > // > > Unfortunately, this didn't solve the problem. I was > // hoping that someone > // > > on this list might know the answer. I have a feeling > // that it might be a > // > > simple solution. Thanks in advance to anyone who knows > // the answer. > // > > > // > > Matthew Cloner > // > > Multimedia Graphic Designer > // > > Hynomics Corporation > // > > > // > > -- > // > > PHP Database Mailing List (http://www.php.net/) > // > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > // > > For additional commands, e-mail: php-db-help@lists.php.net > // > > To contact the list administrators, e-mail: > // php-list-admin@lists.php.net > // > > // > -- > // > - Tim > // > PHP Galaxy: http://www.phpgalaxy.com/ > // > The LavaWarp Engine: > http://www.phpgalaxy.com/engine.php3 > // > BitSearch: http://www.phpgalaxy.com/bitsearch.php3 > // > MetaWarp: http://www.phpgalaxy.com/metawarp.php3 > // > PhotoRate: http://www.phpgalaxy.com/photorate.php3 > // > Earn $10 per order selling these scripts on your site! > // > http://www.phpgalaxy.com/aff/ > // > // > // -- > // PHP Database Mailing List (http://www.php.net/) > // To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > // For additional commands, e-mail: php-db-help@lists.php.net > // To contact the list administrators, e-mail: > // php-list-admin@lists.php.net > //

« previous php.db (#13200) next »