0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
customtanningbed_dot_com
/
bed
/
Bed
/
[
Home
]
File: GetUserRoom.php
<?php require_once('Connections/Bed.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $maxRows_Recordset1 = 5000; $pageNum_Recordset1 = 0; if (isset($_GET['pageNum_Recordset1'])) { $pageNum_Recordset1 = $_GET['pageNum_Recordset1']; } $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1; mysql_select_db($database_Bed, $Bed); $query_Recordset1 = "SELECT * FROM rooms WHERE UserId=" .$_REQUEST['UserId']; $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1); $Recordset1 = mysql_query($query_limit_Recordset1, $Bed) or die(mysql_error()); $NumberOfRows=mysql_num_rows( $Recordset1); echo "&n=".$NumberOfRows."&"; $i=1; while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)){ echo "RoomId".$i."=".$row_Recordset1['RoomId']."&"; echo "UserId".$i."=".$row_Recordset1['UserId']."&"; echo "RoomType".$i."=".$row_Recordset1['RoomType']."&"; echo "Width".$i."=".$row_Recordset1['Width']."&"; echo "Height".$i."=".$row_Recordset1['Height']."&"; echo "MF".$i."=".$row_Recordset1['MF']."&"; echo "Items".$i."=".$row_Recordset1['Items']."&"; echo "ItemsXs".$i."=".$row_Recordset1['ItemsXs']."&"; echo "ItemsYs".$i."=".$row_Recordset1['ItemsYs']."&"; echo "ItemsWidths".$i."=".$row_Recordset1['ItemsWidths']."&"; echo "ItemsHeights".$i."=".$row_Recordset1['ItemsHeights']."&"; echo "pics".$i."=".$row_Recordset1['pics']."&"; echo "ItemsRotation".$i."=".$row_Recordset1['ItemsRotation']."&"; $i=$i+1; }; ?>