The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Code:
<?php
include "store_include.php";
////----INDIVIDUAL PRODUCT VIEW ---------------------///
if ($prodid) {
$product = '';
$sql = $DB_site->query = "SELECT * FROM product WHERE prodid=$prodid";
$result = mysql_query($sql);
$myrow = mysql_fetch_array($result);
$prodid = $myrow["prodid"];
$prodname = $myrow["prodname"];
$image = $myrow["image"];
$price = $myrow["price"];
$cost = $myrow["cost"];
$sellerusername = $myrow["username"];
eval("\$product .= \"".gettemplate("store_productbit")."\";");
////----END INDIVIDUAL PRODUCT VIEW ---------------------///
////----VIEW BY CATAGORY---------------------------------///
} elseif ($cat) {
$catbit = '';
$sql = $DB_site->query = "SELECT prodid,prodname,image,price,cost,username FROM product WHERE catid='$catid'";
$result = mysql_query($sql);
while ($myrow = mysql_fetch_array($result)) {
$prodid = $myrow["prodid"];
$prodname = $myrow["prodname"];
$image = $myrow["image"];
$price = $myrow["price"];
$cost = $myrow["cost"];
$sellerusername = $myrow["username"];
eval("\$catbit .= \"".gettemplate("store_catbit")."\";");
}
////----END VIEW BY CATAGORY---------------------------------///
}else{
$content = '';
$sql = $DB_site->query = "SELECT * FROM product";
$result = mysql_query($sql);
while ($myrow = mysql_fetch_array($result)) {
$prodid = $myrow["prodid"];
$prodname = $myrow["prodname"];
$image = $myrow["image"];
$price = $myrow["price"];
$cost = $myrow["cost"];
$sellerusername = $myrow["username"];
eval("\$content .= \"".gettemplate("store_contentbit")."\";");
}
}
eval("dooutput(\"".gettemplate('store_main')."\");");
?>
Quote:
|
|
#2
|
||||
|
||||
|
im pretty sure this doesn't work
PHP Code:
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|