borrowed Posted August 7, 2014 Share Posted August 7, 2014 Hello Im just new to coding into php and im getting this error? i cant seems to see database into my php ? what wrong need help CREATE TABLE IF NOT EXISTS `payment_details` ( `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=1 ; Here my php code i cant seems to understand what wrong i dont get any error from mysql or from my php please i dont know what wrong <label for="filter">Filter</label> <input type="text" name="filter" value="" id="filter" /> <table cellpadding="1" cellspacing="1" id="resultTable"> <thead> <tr> <th style="border-left: 1px solid #C1DAD7"> Date </th> <th>Amount</th> </tr> </thead> <tbody> <?php include('../connect.php'); $id=$_SESSION['SESS_MEMBER_ID']; $result = mysql_query("SELECT * FROM student WHERE id='$id'"); 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> Link to comment https://forums.phpfreaks.com/topic/290331-mysql-problems/ Share on other sites More sharing options...
Maq Posted August 7, 2014 Share Posted August 7, 2014 What error? Link to comment https://forums.phpfreaks.com/topic/290331-mysql-problems/#findComment-1487126 Share on other sites More sharing options...
Solution Ch0cu3r Posted August 7, 2014 Solution Share Posted August 7, 2014 Question, are you and eyeore part of the same class? They have already posted the same question here. Link to comment https://forums.phpfreaks.com/topic/290331-mysql-problems/#findComment-1487132 Share on other sites More sharing options...
ginerjm Posted August 7, 2014 Share Posted August 7, 2014 your code is impossible to read. What did you do? Did you even look at your post to see it? Link to comment https://forums.phpfreaks.com/topic/290331-mysql-problems/#findComment-1487146 Share on other sites More sharing options...
Barand Posted August 8, 2014 Share Posted August 8, 2014 Question, are you and eyeore part of the same class? They have already posted the same question here. I think they are part of the same person as Borrowed has just replied to Eyore's post to say it is now fixed Link to comment https://forums.phpfreaks.com/topic/290331-mysql-problems/#findComment-1487177 Share on other sites More sharing options...
Ch0cu3r Posted August 8, 2014 Share Posted August 8, 2014 I think they are part of the same person as Borrowed has just replied to Eyore's post to say it is now fixed Agreed. Thread locked Link to comment https://forums.phpfreaks.com/topic/290331-mysql-problems/#findComment-1487178 Share on other sites More sharing options...
Recommended Posts