include_once "configuration.php";
if(isset($_REQUEST["id"]) && ($_REQUEST["id"]<>""))
{
$id=$_REQUEST["id"];
}
else
{
header("Location: index.php?msg=".urlencode("SomeError"));
die();
}
function main()
{
global $statDesc,$config,$id;
$conn = db();
$query=mysqli_query($conn, "select * from pb_orkutcode_images where pbid=$id");
$res=mysqli_fetch_object($query);
?>
|
|
echo $res->pb_image_title; ?> |
|
|
pb_seo_title; else echo $res->pb_image_title; ?>" border="0">
|
|
This Picture was submitted by echo $GLOBALS['info']->memberLinkSmall($res->pbuid); ?> |
|
HTML Code for Graphic
|
|
|
$row=mysqli_fetch_object(mysqli_query($conn, "select count(pbid) as cnt from pb_orkutcode_comments where pb_codeid=".$res->pbid));?>
Leave a Comment |
|
|
$row_q=mysqli_query($conn, "select *,UNIX_TIMESTAMP(ondate) as postdate from pb_orkutcode_comments where pb_codeid='".$id."' order by ondate") or die(mysql_error());
$cnt=mysqli_num_rows($row_q);
?>
|
|
|
Some other orkut codes by echo $GLOBALS['info']->memberLinkSmall($res->pbuid); ?> |
$result_q=mysqli_query($conn, "select pbid,pb_image_title,pb_image,pb_image_small from pb_orkutcode_images where pbuid=".$res->pbuid." and pb_approved='y' ORDER BY rand() LIMIT 9");
$cols = 3; // put the number of columns you want here
$col_width = round(1/$cols * 100,0)."%"; // get column width as %
$extra_cells = "";
$num_rows = mysqli_num_rows($result_q); // get number of records from query
$extra_needed = $cols-($num_rows % $cols); //find out how many blank cells there will be
if($extra_needed!= $cols )
{
for($i = 0; $i<$extra_needed;$i++)
{
$extra_cells .= " | \r\n"; // loop the blank cells in
}
}
if($num_rows>0)
{
$tdcount = 1;
while($result=mysqli_fetch_object($result_q))
{
if($tdcount % $cols == 1) echo "\r\n"; // check to see if new row needs to be started
?>
| | | |
You are not Logged In....