hello, i need some help with my source code. can anyone explain how to create a button to view next record from my database in php? sorry for my bad english
<?php
session_start();
if(isset($_SESSION['id']))
echo "Selamat Datang,".$_SESSION['id']."!";
else
die('Tiada maklumat yang dicapai. Sila <a href="../index.php">login</a></h1> semula!');
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect to database: ' . mysql_error());
}
mysql_select_db("db_ikerja",$con);
$result = mysql_query("SELECT * FROM profile");
$row = mysql_fetch_array($result)
?>
<html>
<td><?php echo['name']; ?></td>
<td><?php echo['age']; ?></td>
<td><?php echo['gender']; ?></td>
<input type=button onClick="" value='Next'>
</html>