0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
customtanningbed_dot_com
/
bed
/
Bed
/
[
Home
]
File: Lists.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; } } mysql_select_db($database_Bed, $Bed); $query_Recordset1 = "SELECT * FROM Lists".$_REQUEST['Room']." WHERE 1 ORDER BY ListId"; $Recordset1 = mysql_query($query_Recordset1, $Bed) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); echo "&n=".mysql_num_rows ($Recordset1)."&"; $i=0; do { echo "ListId".$i."=".$row_Recordset1['ListId']."&"; echo "ListNumber".$i."=".$row_Recordset1['ListNumber']."&"; echo "OrederInList".$i."=".$row_Recordset1['OrederInList']."&"; echo "Text".$i."=".$row_Recordset1['Text']."&"; echo "PicturePath".$i."=".$row_Recordset1['PicturePath']."&"; echo "Width".$i."=".$row_Recordset1['Width']."&"; echo "Height".$i."=".$row_Recordset1['Height']."&"; echo "Level".$i."=".$row_Recordset1['Level']."&"; $i=$i+1; } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>