Jump to content

rizmah

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by rizmah

  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
  15. Can someone provide me with a good tutorial on how to create really nice looking buttons please. Not just crap ones, like real nice ones. XD Thanks in advance
  16. Thanks for the recommendations but my course manager said that I have to host it online, otherwise it would ruin all my assignment up :/ They don't allow us to install XAMPP/WAMP/MAMP on college computers, they said it will "interfere with the network" or something along those lines.
  17. I don't want paid hosting because it's just going to be for me, no one else but I want it to be like I have premium. I want this so I can practice for college. Maybe I did get confused, idk :3 I didn't pay for it, my college course did. The Xenforo is on the college computers, I am not aloud to use them without permission (password protected).
  18. If 000webhost are doing it free, then there sure will be more doing it free.
  19. "I don't want to spend a penny." "but for free"
  20. I currently am hosting with 000webhost (Shittest thing ever) but I want to change hosts for a much more updated one but for free. I need them to supply me with free cpanel, phpmyadmin, mysql and sub-domain. I don't want to spend a penny. Reason for upgrade: The Xenforo I was installing said it wasn't compatible because the phpMyAdmin was outdated. Thanks.
  21. I want a free alternative to 000webhost. I don't want to use something like xampp because eugh I don't get on with it. Thanks
  22. Done it now, I had an SQL database already setup it was just a stupid problem that took 2 secs to fix. Please close staff.
  23. I didn't make this code, im editing to fit my needs. I tried your code, still white screen. P.S. I'm a newb.
  24. So I am hosting from 000webhost and when I goto my index.php it shows a blank white screen. I view the source of the screen and it said Fatal error: Call to a member function fetchColumn() on a non-object in /home/*REMOVED*/public_html/staff/header.php on line 2 So I check this line of code and it's... <title> <?php echo $odb->query("SELECT `Tab` FROM `SiteConfig` LIMIT 1")->fetchColumn(0); ?> </title> I don't know how to fix it? I am using phpmyadmin too and have siteconfig in there. Thanks.
×
×
  • 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.