MovePrevious MoveNext using links
Posted: Wed Nov 26, 2008 9:15 am
Hi guys I'm kinda new to php and i need some help. I've goggled around but with no success.
I have a table "employees":
id | name | email | address | job
1 | agnes | agnes...com | new york | accounting
2 | jose | jose...com | california | manager
3 | robert | robert...com | new jersey | IT
4 | anderson | anderson...com | new york | IT
5 | kelvin | kelvin...com | california | IT
I want to look through this data on my form but using links previous or next.
How can this be done guys?
[/size]
I have a table "employees":
id | name | email | address | job
1 | agnes | agnes...com | new york | accounting
2 | jose | jose...com | california | manager
3 | robert | robert...com | new jersey | IT
4 | anderson | anderson...com | new york | IT
5 | kelvin | kelvin...com | california | IT
I want to look through this data on my form but using links previous or next.
How can this be done guys?
Code: Select all
<?php
include 'confgTableTest.php';
include 'opendb.php';
$sql ="SELECT * FROM $tbl_tableTest";
$result =mysql_query($sql);
$row =mysql_fetch_array($result);
...
?>
<form method=post>
ID:<input type="text" name="id" value="<?php ?>"><br /><br />
Name:<input type="text" name="name" value="<?php ?>"><br /><br />
Address:<input type="text" name="address" value="<?php ?>"><br /><br />
Job:<input type="text" name="job" value="<?php ?>"><br /><br />
City:<input type="text" name="city" value="<?php ?>"><br /><br />
<a href="nextPrevious.php?ID=<?php ?>">Previous</a>
<a href="nextPrevious.php?ID=<?php ?>">Next</a>
</form>