Jump to content

rizmah

Members
  • Posts

    54
  • Joined

  • Last visited

rizmah's Achievements

Member

Member (2/5)

0

Reputation

  1. Fixed! Done it thanks for your help anyway!
  2. I changed the code to one while, but now it displayed it on same row but in separate places. <tbody> <tr> <?php $methodssql = $odb -> query("SELECT * FROM `methods`"); while($row = $methodssql ->fetch()) { echo '<td>' . $row['m_title'] . '</td>'; echo '<td>' . $row['sub_date'] . '</td>'; echo '<td>' . $row['author'] . '</td>'; echo '<td>' . $row['tutorial'] . '</td>'; echo '<td> <span class="label label-table label-success"> ' . $row['status'] . ' </span> </td>'; } ?> </tr> </tbody>
  3. <tbody> <tr> <td><?php $methodssql = $odb -> query("SELECT `m_title` FROM `methods`"); while($row = $methodssql ->fetch()) { echo "<tr>" . $row['m_title'] . "</tr>"; } ?></td> <td><?php $methodssql = $odb -> query("SELECT `sub_date` FROM `methods`"); while($row = $methodssql ->fetch()) { echo $row['sub_date']; } ?></td> <td><?php $methodssql = $odb -> query("SELECT `author` FROM `methods`"); while($row = $methodssql ->fetch()) { echo $row['author']; } ?></td> <td><?php $methodssql = $odb -> query("SELECT `tutorial` FROM `methods`"); while($row = $methodssql ->fetch()) { echo $row['tutorial']; } ?></td> <td> <span class="label label-table label-success"><?php $methodssql = $odb -> query("SELECT `status` FROM `methods`"); while($row = $methodssql ->fetch()) { echo $row['status']; } ?></span> </td> </tr> </tbody> Thats the table one. I was thinking of concatenation look at the top one of the code above ( echo "<tr>" . $row['m_title'] . "</tr>"; ). It works but its made it all weird
  4. First off, I am not 100% sure how I would do this that is why I am posting on here. I want to draw each row of database data and put it in a table kind of thing but when I have multiple things in the database it goes in the same row of the table. Instead of it going into the same one I want it to have a different section. Below is an example:
  5. Basically a custom youtube video searcher. I know you could probably do something like this https://m.youtube.com/results?q= . $link . &sm=3 but i want it to use the actual search bar to automatically write things.
  6. "This is a pre-made login system that I am modifying."
  7. With the code you provided, I got a white screen with "Array" on it.
  8. Because it is meant to display the text but it doesn't when a attempt to login.
  9. SOrry I am a newb, what other code do you want? This is a pre-made login system that I am modifying.
  10. So I am trying to make an incorrect password message but the message never appears. My code: <? require "./includes/config.php"; $LS->init(); if(isset($_POST['act_login'])){ $user=$_POST['login']; $pass=$_POST['pass']; if($user=="" || $pass==""){ $msg=array("Error", "Username / Password Wrong !"); } else { if(!$LS->login($user, $pass)){ $msg=array("Error", "Username / Password Wrong !"); } } } ?>
  11. I am close to pulling my hair out! I cannot seem to fix it. I am trying to make a HTML dropdown menu, this is what it looks like at the minute. Non-clicked: Clicked: The problem I am having at the minute is the title "Question One goes here?", I cannot seem to position it right on the grey bar. I have tried padding but it doesn't work -.- Here is my code: HTML: <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title> </title> <link href="css/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="collapsible-panels"> <h2><a href="#">Question One goes here?</a></h2> <div>Answer to Question One goes here.</div> </div> <script src="js/lib/jquery-1.9.0.min.js" type="text/javascript"></script> <script src="js/jquery.index.js" type="text/javascript"></script> </body> </html> CSS: body { font: 80% Arial, Helvetica, sans-serif; } #collapsible-panels h2 { width: 1134.614173228px; height: 60.094488189px; margin: 0; padding: 0px 0; background: url(../images/bar1.png) no-repeat left center; border-top: 10px solid #FFFFFF; } #collapsible-panels h2.active { background: url(../images/bar2.png) no-repeat left center; } #collapsible-panels h2 a { padding: 35px; text-decoration:none; color: #1869AE; } #collapsible-panels div { width: 851px; height: 45px; background-image: url("../images/bardrop.png") } You should be able to match which css # matches the HTML code, I can that's why I don't put comments in -.- Please help me !
  12. Dont matter now, please delete or close
  13. I did search this up but all of them were lists. I want to make a menu drop down like so.... Non-clicked... Clicked... The grey boxes would be images (unless it is easier to code them). I am a complete noob so please don't use technical terms Thanks
  14. Thanks dude! Im not sure how to close the thread though
×
×
  • 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.