|
 |
$username="dlnelson";
$password="Welcome21";
$database="dlnelson";
?>
$URLID = $_GET['URLID'];
mysql_connect('mysql1.hostek.com',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query='SELECT ID, Name, imagename FROM portfolio_pieces WHERE ID = '. $URLID .'';
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
echo "" ;
$i=0;
while ($i < $num) {
$ID=mysql_result($result,$i,"ID");
$Name=mysql_result($result,$i,"Name");
$ImageName=mysql_result($result,$i,"imagename");
$imageID = $ImageName . "_l.jpg";
$imgurl= " $Name<< back | ";
echo "$imgurl" ;
if ( $i == 2 ) {
echo " " ;
}
if ( $i == 5 ) {
echo " " ;
}
if ( $i == 8 ) {
echo " " ;
}
if ( $i == 11 ) {
echo " " ;
}
if ( $i == 14 ) {
echo " " ;
}
if ( $i == 17 ) {
echo " " ;
}
$i++; }
echo " " ;
?>
|
|