Hi
I am stocked in a problem that seems quite simple, but now I have been using hours with different solutions and Googling for an answer.
I use JQTouch to create a webapp, the “eventlist” list a number of events and when you click on one, the information on that specific event has to be shown. How can I save the information regarding the users choice? Be onCkick or by using $Get?? There must be an easy way out.
Please help me out. Christian
<!-- eventlist -->
<div id="eventlist" class="current">
<div class="toolbar">
<h1>Events</h1>
<a href="#info" class="button leftButton flip">Info</a>
</div>
<ul class="rounded">
<?php
$customer_id="2";
$query="SELECT * FROM event WHERE (customer_id= ".$customer_id." ) ";
$result=mysql_query($query);
$num_events=mysql_numrows($result);
$i=0;
while ($i < $num_events)
{
$name=mysql_result($result,$i,"name");
$id= mysql_result($result,$i,"id");
?>
<li class="arrow">
<a href= "event" >
<?php echo $id." - ".$name ?>
</a>
</li>
<?php $i++;
}
?>
</ul>
</div>
<!-- event -->
<div id="event" class="selectable">
<div class="toolbar">
<h1> <?php echo $id ?> </h1>
</div>
</div>