Jump to content
Fórum Script Brasil
  • 0

While horizontal


Agencia cube / A-brainstor

Question

Pessoal estou com um problema,

gostaria que o codigo em negrito abaixo se repetisse na forma horizontal , alguém

pode me dar uma ajuda ? Se me ajudarem ficarei muito grato.

<?php require_once('Connections/nuss.php'); ?>

<?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;

}

}

$currentPage = $_SERVER["PHP_SELF"];

mysql_select_db($database_nuss, $nuss);

$query_total = "SELECT * FROM acompanhantes";

$total = mysql_query($query_total, $nuss) or die(mysql_error());

$row_total = mysql_fetch_assoc($total);

$totalRows_total = mysql_num_rows($total);

$maxRows_results = 5;

$pageNum_results = 0;

if (isset($_GET['pageNum_results'])) {

$pageNum_results = $_GET['pageNum_results'];

}

$startRow_results = $pageNum_results * $maxRows_results;

//inicio da query dos resultados

$busca= isset($_POST["local"])?$_POST["local"]:"";

mysql_select_db($database_nuss, $nuss);

$query_results = "SELECT * FROM acompanhantes WHERE local LIKE '%$busca%' AND sexo=Feminino'";

$query_limit_results = sprintf("%s LIMIT %d, %d", $query_results, $startRow_results, $maxRows_results);

$results = mysql_query($query_limit_results, $nuss) or die(mysql_error());

$row_results = mysql_fetch_assoc($results);

if($row_results <1){

header('location:index.php');

}

//fim da query de busca

if (isset($_GET['totalRows_results])) {

$totalRows_results = $_GET['totalRows_results'];

} else {

$all_results = mysql_query($query_results);

$totalRows_results = mysql_num_rows($all_results);

}

$totalPages_results = ceil($totalRows_results/$maxRows_results)-1;

$queryString_results = "";

if (!empty($_SERVER['QUERY_STRING'])) {

$params = explode("&", $_SERVER['QUERY_STRING']);

$newParams = array();

foreach ($params as $param) {

if (stristr($param, "pageNum_results") == false &&

stristr($param, "totalRows_results") == false) {

array_push($newParams, $param);

}

}

if (count($newParams) != 0) {

$queryString_results = "&" . htmlentities(implode("&", $newParams));

}

}

$queryString_results = sprintf("&totalRows_results=%d%s", $totalRows_results, $queryString_results);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns=http://www.w3.org/1999/xhtml">

<head>

&lt;script src="funcoes.js"></script>

&lt;script type="text/javascript">

<!--

function MM_preloadImages() { //v3.0

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}

}

//-->

</script>

</head>

<body>

<table width="961" border="0">

<tr>

<td width="249"><img src="images/logo.png" width="214" height="53" /></td>

<td width="728" height="90" bgcolor="#FFFFFF"> </td>

</tr>

</table>

<table width="958" height="1139" border="0" align="left" cellpadding="0" cellspacing="0" background="images/bg oval page center.png">

<tr>

<td width="958" height="1139" valign="top"><table width="949" height="1100"border="0" align="center" cellpadding="0" cellspacing="0" background="images/Layou1lt site.png">

<tr>

<td width="949" height="99" valign="top"><table width="949" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="949" height="127" valign="top"><table width="943" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="943" height="105" valign="top"><table width="944" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="944" height="104" valign="bottom"><table width="943" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="943" height="105" valign="top"><table width="959" border="0">

<tr>

<td width="953" height="72" valign="bottom"><table width="950" border="0" background="images/topo bg search.gif">

<tr>

<td height="66" valign="top"> </td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table>

<table width="900" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="392" valign="middle"><table width="389" border="0" cellpadding="0" align="center">

<tr class="style1">

<td width="55" valign="bottom"><a href="index.php">Home</a></td>

<td width="67" valign="bottom"><a href="homens.php">Homens</a></td>

<td width="63" valign="bottom"><a href="mulheres.php">Mulheres</a></td>

<td width="78" align="center" valign="bottom"><a href="travestis.php">Travestis</a></td>

<td width="114" align="center" valign="bottom"><a href="makings.php">Makings OFFS</a></td>

</tr>

</table></td>

<td width="114" valign="middle" class="style1"><a href="contos.php">Contos eroticos</a></td>

<td width="109" align="center" valign="middle" class="style1"><a href="nusstv.php" >NUSSTV</a></td>

<td width="285" valign="middle" class="style1"><a href="moteis.php">Moteis</a></td>

</tr>

</table></td>

</tr>

</table>

<table width="947" border="0" cellspacing="0" cellpadding="0">

<tr> </tr>

</table>

<table width="942" border="0" bgcolor="#666666">

<tr> </tr>

</table>

<table width="955" border="0">

<tr>

<td width="567" style="font-family:Verdana, Geneva, sans-serif; font-size:11px; color:#CCC">Encontramos em nosso banco de dados <?php echo $totalRows_total ?> garotas de <?php echo $busca ?> </td>

<td width="378"><form id="form2" name="form2" method="post" action="results.php">

<span style="font-family:Verdana, Geneva, sans-serif; color:#FC0; font-size:11px">Classificar por:</span>

<select name="local" id="local">

<option value="Goiânia">Goiânia</option>

<option value="Anapolis">Anapolis</option>

<option value="Brasilia">Brasilia</option>

<option value="São Paulo">São Paulo</option>

<option value="Rio de Janeiro">Rio de Janeiro</option>

<option value="Belo Horizonte">Belo Horizonte</option>

<option value="Fortaleza">Fortaleza</option>

</select>

<input type="submit" name="button" id="button" value="Buscar modelo" />

</form></td>

</tr>

</table>

<p> </p>

<!-- Quero que repita essa região na horizontal-->

<table width="180" border="0" bgcolor="#999999">

<tr>

<td height="158" valign="top"><table width="175" border="0">

<tr>

<td width="169"><?php echo $row_total['nome_fantasia]; ?></td>

</tr>

</table>

<table width="172" border="0">

<tr>

<td width="166" height="128"><table width="172" border="0">

<tr>

<td width="166"><img src="" width="170" height="101" /></td>

</tr>

</table></td>

</tr>

</table>

<!-- fim da repetição na horizontal-->

</td>

</tr>

</table>

<p> </p></td>

</tr>

</table></td>

</tr>

</table>

<table width="951" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#333333">

<tr>

<td height="161" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="139"><span class="style1">Home</span></td>

<td width="244"><span class="style1"><a href="java script:criarcadastro('forms/acompanhantes/cadastro/check age.php');">Anuncie conosco</a></span></td>

<td width="143"> </td>

<td width="556"> </td>

</tr>

<tr>

<td><span class="style1">Homens</span></td>

<td><span class="style1">Cadastre-se </span></td>

<td> </td>

<td> </td>

</tr>

<tr>

<td><span class="style1">Mulheres</span></td>

<td class="style1">Termos de uso</td>

<td> </td>

<td> </td>

</tr>

<tr>

<td><span class="style1">Travestis</span></td>

<td class="style1">Midia KIT</td>

<td> </td>

<td align="right" class="style2">Site para maiores de 18 anos </td>

</tr>

</table>

<table width="946" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="946" class="style3" align="justify">................</td>

</tr>

</table></td>

</tr>

</table>

</body>

</html>

<?php

mysql_free_result($total);

mysql_free_result($results);

?>

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...