Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.