Search
Left Quote    Black holes are where God divided by zero.
- Steven Wright    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: some helps please
  This user is offline  firers3
  Subject: "some helps please" Posted: @ 7:46 pm on Jul 19 2008   
Member #: 714
Rank: User - (11)
Since: 07/04/08
Posts: 11

Anyone can help figure out why i keep getting this error? I tried fix but did not work. Thank a lot for helping.

Parse error: syntax error, unexpected T_ENCAPSED_AND_ WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING from this code below:

do {
printf("&l t;a href=\"/ga llery/?id=%s\&q uot;><img
src=\"/gal lery/thumbnails /%s\" hspace=\"5 \" vspace=\"1 0\"
alt=\"Thum bnails\"&g t;</a>&qu ot;, $idetails['ID'] , $idetails['IFil eName']);
} while ($idetails = mysql_fetch_arr ay($result1));< br /> }


Here is the code block if you need to see the code context.


Code:
<?php
# If image ID is empty, display N number of thumbnails
if(empty($image id)) {

# Limits for image ID (Upper and Lower) per page
$limits = 'LIMIT ' .($page - 1) * $perpage .',' .$perpage;
$sql1 = "SELECT ID, IFileName FROM table ORDER BY ID ASC $limits";< br /> $result1 = mysql_query($sq l1);
$idetails = mysql_fetch_arr ay($result1);
do {
printf("&l t;a href=\"/ga llery/?id=%s\&q uot;><img
src=\"/gal lery/thumbnails /%s\" hspace=\"5 \" vspace=\"1 0\"
alt=\"Thum bnails\"&g t;</a>&qu ot;, $idetails['ID'] , $idetails['IFil eName']);
} while ($idetails = mysql_fetch_arr ay($result1));< br /> }
?>

<?phpBold Text Here


    Viewed: 3,687 Times | Reply to This | To top
Viewing Page: 1 of 1



You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank