-2
I’m having difficulty creating a page with two tabs but each with a different query.
<ul>
<li><a href="#tabs-1">TAB1</a></li>
<li><a href="#tabs-2">TAB2</a></li>
</ul>
<?php
include("conectar.php");
echo'<div id="tabs-1">
$sql = "select * from Tabelas
where Campo1 and campo2"';
echo' $qr = mysql_query($sql) or die(mysql_error())';
echo' while($exibe = mysql_fetch_array($qr)){
<li class="ui-widget-content"><h3><a href="NaoautorizadoMostrar.php?id='.$exibe['id'].'">'.$exibe['Nome'].'</h3></a></li>;
} </div>';
echo'<div id="tabs-2">
$sql = "select * from Tabelas
where Campo3 and campo4"';
echo' $qr = mysql_query($sql) or die(mysql_error())';
echo' while($exibe = mysql_fetch_array($qr)){
<li class="ui-widget-content"><h3><a href="NaoautorizadoMostrar.php?id='.$exibe['id'].'">'.$exibe['Nome'].'</h3></a></li>;
} </div>';
error:
Notice: Undefined variable: displays in.
Thank you
by the error you posted, the "displays" variable was not defined. Where you set the "displays"?
– Filipe Moraes
There are many syntax errors because you treat php as a string and want to display them
– Silvio Andorinha