![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
tengo unas tablas dinamicas cuando ago una busqueda me sale 10 por pagina, las tablas se ponen una abajo de la otra que da asi
x
x
x
x
x
x
x
x
x
x
y yo quiero que quede en filas de 2 seria asi
x x
x x
x x
x x
x x
como puedo hacer eso ?
aqui dejo mi codigo.. espero que me ayuden no se que hacer..
Código PHP:
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$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_prueba = 10;
$pageNum_prueba = 0;
if (isset($_GET['pageNum_prueba'])) {
$pageNum_prueba = $_GET['pageNum_prueba'];
}
$startRow_prueba = $pageNum_prueba * $maxRows_prueba;
mysql_select_db($database_audio, $audio);
$query_prueba = "SELECT ID, TITULO FROM audios ORDER BY TITULO ASC";
$query_limit_prueba = sprintf("%s LIMIT %d, %d", $query_prueba, $startRow_prueba, $maxRows_prueba);
$prueba = mysql_query($query_limit_prueba, $audio) or die(mysql_error());
$row_prueba = mysql_fetch_assoc($prueba);
if (isset($_GET['totalRows_prueba'])) {
$totalRows_prueba = $_GET['totalRows_prueba'];
} else {
$all_prueba = mysql_query($query_prueba);
$totalRows_prueba = mysql_num_rows($all_prueba);
}
$totalPages_prueba = ceil($totalRows_prueba/$maxRows_prueba)-1;