3D Store
This is a list of available products, you can purchase them through:





|
$page_count ) {
$requested_page = 1;
}
if ( $requested_page == 1 ) {
$limit = 0;
}
else {
$limit = $PAGE_LENGTH * ( $requested_page - 1 );
}
//
// perform database query
//
$result = mysqli_query( "SELECT page_name, image_url, page_id FROM 3dshops ORDER BY page_id DESC LIMIT $limit, $PAGE_LENGTH" );
//
// read query result
//
if ( $result ) {
echo '' . "\n";
$rownum=0;
while( $query_data = mysqli_fetch_array( $result ) ) {
$page_name=str_replace( "'", "\'", $query_data[page_name] );
if ( $query_data[image_url] ) {
list( $img_width, $img_height, $img_type, $img_attr ) = getimagesize( $query_data[image_url] );
}
//
// format data for HTML
//
$html = ' ![' . $query_data[page_name] . '](' . $query_data[image_url] . ') | ';
echo $html . "\n";
if ( ++$rownum % 3==0 ) { echo ' ' . "\n"; }
}
echo ' | ' . "\n";
echo ' ' . "\n";
mysqli_free_result( $result );
}
//
$nav_string = generate_pagination( $_SERVER['PHP_SELF'], $record_count, $PAGE_LENGTH, $requested_page );
/*///////////////////////////////////////////////////////////////////////////////////////////*/
?>
|