I don't know to detect which is the value that I click.
In my index.php i have this:
Code:
<div id="search-wrap"> Seach values:<br> <input name="search-q2" id="search-q2" type="text" onkeyup="javascript:autosuggest2()" value="write a value...."/> <br><br> </div>
Code:
<?php
$searchq = strip_tags($_GET['q']);
$getRecord_sql = "select pkey from TABLE where project = '10000' and pkey like '%".$searchq."%'";
$getRecord = mysql_query($getRecord_sql);
if(strlen($searchq)>0){
echo '<ul>';
while ($row = mysql_fetch_array($getRecord)) {
?>
<li><a href="lib/consultas.php?accion=E" onclick="load('lib/consultas.php?accion=E','consulta');return false;">
<?php
echo $row['pkey'];
?>
</a>
</li>
<?php
}echo '</ul>';
}
?>
But, when I click into one value (into <li>) the results all times are: "Query was empty"
I put the case "E" from "consultas.php":
Code:
case 'E':
echo "<br>";
echo my value is....;
echo "<br>";
echo $which is the value I clicked??????;
echo "<br>";
now, if i change this line:
Code:
<li><a href="lib/consultas.php?accion=E" onclick="load('lib/consultas.php?accion=E','consulta');return false;">
Code:
<li><a href="lib/consultas.php?accion=E&<?php echo $row['pkey']; ?>" onclick="load('lib/consultas.php?accion=E','consulta');return false;">
help....

