abisson Posted July 3, 2007 Share Posted July 3, 2007 Hey everyone, I know it will be easy for you to answer this question ! Sorry, but I really need some help. What I am trying to do is simple. A table in html with 4 different columns. Then, in each corresponding column, the php request should... But if you guys try it, nothing shows, even the table in html! Thanks a lot Antoine -= PHP Part=- </head> <body> error_reporting(E_ALL); <?php error_reporting(E_ALL); include "basedonner.inc" $tab=$db->getTableElement("select * from user order by nom"); $sql = 'SELECT * FROM `user` LIMIT 0, 30 '; echo "<table border='1'> <tr> <th>id user</th> <th>nom</th> <th>cpe</th> <th>e-mail</th> </tr>"; foreach($tab as $donnee) { echo "<tr>"; echo "<td>" . $donnee['id_user'] . "</td>"; echo "<td>" . $donnee['nom'] . "</td>"; echo "<td>" . $donnee['id_cpe'] . "</td>"; echo "<td>" . $donnee['courriel'] . "</td>"; echo "</tr>"; } echo "</table>"; ?> </body> </html> Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/ Share on other sites More sharing options...
per1os Posted July 3, 2007 Share Posted July 3, 2007 When you view the source of the page, what does it show. Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/#findComment-288953 Share on other sites More sharing options...
abisson Posted July 3, 2007 Author Share Posted July 3, 2007 I am not sure what you mean.. but when I localhost it, nothing shows up :S! Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/#findComment-288956 Share on other sites More sharing options...
per1os Posted July 3, 2007 Share Posted July 3, 2007 In internet explorer, right click on the page and select "View Source" copy that and paste it here. Just because nothing is displayed on the page does not mean that nothing was written. Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/#findComment-288958 Share on other sites More sharing options...
abisson Posted July 3, 2007 Author Share Posted July 3, 2007 lol ? nothing shows up...?! Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/#findComment-288961 Share on other sites More sharing options...
per1os Posted July 3, 2007 Share Posted July 3, 2007 Thats something, somewhere in your code where it be in the include it is getting killed. Also you said you are running on localhost, you don't by chance have a custom 404 page that is just blank do you? Other than that it seems like the script is dieing somewhere prematurely. Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/#findComment-288965 Share on other sites More sharing options...
abisson Posted July 3, 2007 Author Share Posted July 3, 2007 but why even my table does not show up? :S! Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/#findComment-288968 Share on other sites More sharing options...
AndyB Posted July 3, 2007 Share Posted July 3, 2007 </head> <body> error_reporting(E_ALL); <?php error_reporting(E_ALL); What's the php code before php starts all about?? Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/#findComment-288973 Share on other sites More sharing options...
abisson Posted July 3, 2007 Author Share Posted July 3, 2007 Even if I remove it it does not change anything :S! But I know it does not help for sure.. but still! Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/#findComment-288977 Share on other sites More sharing options...
wildteen88 Posted July 3, 2007 Share Posted July 3, 2007 Add display_errors("1"); too after <?php error_reporting(E_ALL); Looks like something in your code PHP is not liking and is killing the script. If something is wrong PHP should show errors to the screen. Link to comment https://forums.phpfreaks.com/topic/58277-noobie-question-help-please/#findComment-288980 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.