Jump to content

Noobie question! Help please !


abisson

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.