can i skip a page?
Posted: Sat Mar 11, 2006 3:37 pm
hi,
I need help with this.
I have this
which uses this
now is there a way to do this without reading another file from the disk?
(mission = fewest disk reads per page view)
I need help with this.
I have this
Code: Select all
$out .= "<img src=\"thumbnail.php?id=12345\" width=\""."80"." height="."60".">";Code: Select all
<?php
header("Content-type: image/jpeg"); // act as a jpg file to browser
$oDatabase = mysql_connect("localhost", "user_id", "password");
mysql_select_db("your_database_name", $oDatabase);
$sQuery = "SELECT thumbnail FROM your_table WHERE id = $nId";
$oResult = mysql_query($sQuery, $oDatabase);
$oRow = mysql_fetch_array($oResult);
$sJpg = $oRow["thumbnail"];
echo $sJpg;
?>(mission = fewest disk reads per page view)