href with select
Posted: Mon Aug 18, 2003 9:21 am
my code is like this:
<tr onMouseOver="this.className='GridMOverRow'" onMouseOut="this.className='GridRow'"class="GridRow"><a href="#"><?php
$db_name = "DBMedici";
$table_name = "articoli";
$connect = @mysql_connect("localhost", "root", "") or die("connect che????");
$select_db = @mysql_select_db($db_name, $connect) or die("cannot select db");
$sql = "
select id, titolo, testo, argomenti from $table_name order by argomenti
";
$result = @mysql_query($sql, $connect) or die("non riesco a fare query");
while ($riga = mysql_fetch_array($result)) {
$riga['titolo'];
$riga['articoli'];
}
?>
<?php echo $titolo; ?></a></tr>
i'd like to do the select on click and so print results in the page
how should i do?
<tr onMouseOver="this.className='GridMOverRow'" onMouseOut="this.className='GridRow'"class="GridRow"><a href="#"><?php
$db_name = "DBMedici";
$table_name = "articoli";
$connect = @mysql_connect("localhost", "root", "") or die("connect che????");
$select_db = @mysql_select_db($db_name, $connect) or die("cannot select db");
$sql = "
select id, titolo, testo, argomenti from $table_name order by argomenti
";
$result = @mysql_query($sql, $connect) or die("non riesco a fare query");
while ($riga = mysql_fetch_array($result)) {
$riga['titolo'];
$riga['articoli'];
}
?>
<?php echo $titolo; ?></a></tr>
i'd like to do the select on click and so print results in the page
how should i do?