hello bluetac,
i have found ur code and test but when i used variables in my query. huh! doesnt work anymore. the first page shows the right one but once you go to other pages it shows all the database (see below code):
this is ur code:
$sqlstr = "SELECT column1, column2 FROM yourtable";
my code:
$sqlstr = "SELECT * FROM $table WHERE FNAME='$fname' ORDER BY LNAME, FNAME";
i tried not using the variables & it works. i need to use the variables coz the the design of my php has an authentication. im using their usernames as their table name as well as their search input.
pls help me... i've been working on this for 3weeks already & tried several sample codes but i encountered the same problem..
hope for ur immediate reply. thank you in advance.
army
army@idess.com
i have found ur code and test but when i used variables in my query. huh! doesnt work anymore. the first page shows the right one but once you go to other pages it shows all the database (see below code):
this is ur code:
$sqlstr = "SELECT column1, column2 FROM yourtable";
my code:
$sqlstr = "SELECT * FROM $table WHERE FNAME='$fname' ORDER BY LNAME, FNAME";
i tried not using the variables & it works. i need to use the variables coz the the design of my php has an authentication. im using their usernames as their table name as well as their search input.
pls help me... i've been working on this for 3weeks already & tried several sample codes but i encountered the same problem..
hope for ur immediate reply. thank you in advance.
army
army@idess.com