Re: creating a link....

From: Date: Fri, 25 Aug 2000 17:26:18 +0000
Subject: Re: creating a link....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13695@lists.php.net to get a copy of this message
Dude you are going to have to make the "next" button a form button where you do something like this... This goes in your .html or .php file with the rest of the html <form method=post action=mypage.php> <input type=submit value='next'>Next 400</input> </form> next you have to handle the submit button... you can call your the same page and check if you need todo anything like this... if($submit) or if(strcasecmp($submit, 'next') == 0) { do your sql statement here and output the results.... } if this is all foreign to you, I suggest going to webmonkey.com or phpbuilder.com and reading their tutorials... TaoX Michael Roark wrote: > how would i turn the following query(contained in bleh.php) into a link > > $sql="select * from table1 where (var >= '$var1' && var <= > '$var2') order by $var3 desc limit 400"; > > I want to build a next 400 at the bottem of the page so I need to be able > to call bleh.php from a link and change the limit bit of the sql > statement. > > Thanks, > > Michael > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#13695) next »