-----SOLVED---------
I am in the middle of creating a search by letter script, except, i have ran into some trouble..
i want the user to be able to click a letter and it show all the results with that letter. no problem.. already done using..
But, now, i want to make a paging script to page the data, but i cannot due that because i cannot count the mysql data in this way. I do not know how to and i am soo confused. every time i make a paging function i used a mysql count
this is what i believe it would have to look like but, we no its not going to work.. lol
I am in the middle of creating a search by letter script, except, i have ran into some trouble..
i want the user to be able to click a letter and it show all the results with that letter. no problem.. already done using..
PHP:
$alp=$_GET[a];
while($row = mysql_fetch_array( $result )) {
$word= $row['title'];
$id=$row['id'];
$ab = substr($word, 0, 1);
$str = strtolower($ab);
if($alp != $str){
}
else{
echo ("<br>" . $id ."-<a href=\"$id/\">" . $data[0] . "</a>");
}
But, now, i want to make a paging script to page the data, but i cannot due that because i cannot count the mysql data in this way. I do not know how to and i am soo confused. every time i make a paging function i used a mysql count
this is what i believe it would have to look like but, we no its not going to work.. lol
PHP:
select title where title="substr($word, 0, 1)"
Last edited:







