Hello im new to php and i cant seems to view my database in my php
<?php
include('../connect.php');
$sds=$_SESSION['SESS_FIRST_NAME'];
$result = mysql_query("SELECT * FROM paymentdetails WHERE idnumber='$sds'");
while($row = mysql_fetch_array($result))
{
echo '<tr class="record">';
echo '<td style="border-left: 1px solid #C1DAD7"><div align="left">'.$row['date'].'</div></td>';
echo '<td><div align="left">'.$row['amount'].'</div></td>';
echo '</tr>';
}
?>
</tbody>
</table>
Here my database im really confuse on what to do
CREATE TABLE IF NOT EXISTS `paymentdetails` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idnumber` varchar(30) NOT NULL,
`date` varchar(30) NOT NULL,
`amount` varchar(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `paymentdetails`
--
INSERT INTO `paymentdetails` (`id`, `idnumber`, `date`, `amount`) VALUES
(1, 'SID-YWU49JU', '2014-08-07', '50000');