Jump to content

abisson

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Everything posted by abisson

  1. Guys help!!
  2. Hey guys, This is simple here we go. In my webpage, I have a button at the top, where I want the people to be logged in as Investors to see the content of the page. I would like just a pop-up to show up to login, and if it is right they see the page. Or a new login page appears and if it is right, they are redirect to the page. I also need a checksession on the investor page right?
  3. Hey guys, I am using CakePHP. I just want in my Index to switch my type. I get type = 1, and I would like to change it for admin.. Here is my echo command for my table. Should I add at the end something like... if type =1 echo admin? <td><?php echo $user['User']['type']; ?></td> Thanks!
  4. Here you go! this is the code. I want to change the value of " aprouve ". In my sql data base it is either 1 or 0. What is wrong with this code?! Thanks a lot! -=PHP =- while($donnee = mysql_fetch_array($query)) $donnee['aprouve']=$_POST['aprouve']; if ($donnee['aprouve']=="1") echo "oui"; elseif ($donnee['aprouve']=="0") echo "non"; { echo "<tr>"; echo "<td>" . $donnee['id_nouvelle'] . "</td>"; echo "<td>" . $donnee['titre'] . "</td>"; echo "<td>" . $donnee['text'] . "</td>"; echo "<td>" . $donnee['description'] . "</td>"; echo "<td>" . $donnee['aprouve'] . "</td>"; echo "<td>" . $donnee['date_affichage'] . "</td>"; echo "<td>";
  5. Even if I remove it it does not change anything :S! But I know it does not help for sure.. but still!
  6. but why even my table does not show up? :S!
  7. lol ? nothing shows up...?!
  8. I am not sure what you mean.. but when I localhost it, nothing shows up :S!
  9. 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>
×
×
  • 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.