PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
if ($num_results == 0)
{
echo "No name in the database.";
exit;
}
else
{
for ($i=0; $i < $num_results; $i++)
{
$row = mysql_fetch_array($result);
echo '<p><strong>'.($i+1).'.ClientID: ';
echo htmlspecialchars($row['id']);
$id=htmlspecialchars($row['id']);
echo "<p><a href='http://localhost/ewan2.php?id=$id'>Enter query for this client</a></p>";
echo '<p><strong><br /> Name:';
?>
<input type="text" value="<?php echo $row['name']?>">
<?php
echo htmlspecialchars($row['name']);
echo "</br>-=-=-=-=-=-=-=";
}
}
?>
i would just like to know if it is possible? if it is i would put a submit button at the end of the page and it would trigger an update function in mysql.
thanks n00b was planning to use javascript as i will be including the code in the same page. javascript will capture the onClick (or is it onSubmit?) event.
BDKR wrote:He could use asynchronous javascript calls to a call back function that could affect change to the array server side without a page refresh.
However, that's beyond the scope of what we're talking about here I suspect.
So, err....., yeah.... Just use Javascript and a form to capture the changes you want made to the array then submit it back.
Sometimes, you are too much... you would confuse him thoroughly
*thinks: Maybe I should start using geek, techy terms now onwards. its pretty fun*
So.. um..yeah... He could use asynchronous javascript calls to a call back function that could affect change to the array in the database on the server side without a page being submitted to the server