Hi All,
I am newbie to php and mysql, so need some help from you guys. I have a page under tabs menu where it will display alphabet from A-Z and it is clickable.
When user click any of the alphabet, it will display customer name started from whatever alphabet the user click. But what i want is when user click from any alphabet to another alphabet(eg: user view customer name started from 'N' and then click to 'Y'), the system will auto update the previous selection of customers name started with 'N' into the mysql database and then display the next list of customer name started with 'Y'. So that when user go back to 'N' again, he will still see his selection of customer.
Here is the code but a bit crap:
<table width='75%' border='0' align="center" cellpadding='1' cellspacing='1'>
<tr>
<td align="center" bgcolor="#CCCCCC"> <a href="">A</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">B</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">C</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">D</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">E</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">F</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">G</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">H</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">I</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">J</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">K</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">L</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">M</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">N</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">O</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">P</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">Q</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">R</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">S</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">T</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">U</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">V</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">W</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">X</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">Y</a></td>
<td align="center" bgcolor="#CCCCCC"> <a href="">Z</a></td>
</tr>
</table>
<table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan='3'> </td>
</tr>
<tr>
<td width="8%" align="center" bgcolor="#FF9900"><input type='checkbox' name='user' id='user' onClick=''></td>
<td width="64%" align="center" bgcolor="#FF9900"><p>Full Name</p></td>
<td width="28%" align="center" bgcolor="#FF9900"><p>Status</p></td>
</tr>
<?
$query = mysql_query("SELECT * FROM user_table WHERE user_fullname LIKE '".$char_sel."'";
$i = 0;
while($row_sel = mysql_fetch_array($query))
{?>
<tr>
<td align="center" bgcolor="#CCCCCC"><input type='checkbox' name='sel_name'></td>
<td align="center" bgcolor="#CCCCCC">$row_sel["user_fullname"]</td>
<td align="center" bgcolor="#CCCCCC">$row_sel["status_user"]</td>
</tr>
</table>
I was stuck here and don't how to continue. Hope anyone here could help me.