Jump to content

ZulfadlyAshBurn

Members
  • Posts

    783
  • Joined

  • Last visited

Everything posted by ZulfadlyAshBurn

  1. please make sure you are using mysqli and not mysql.
  2. after login try viewing the source, if you see the meta tags appears, that means something is not right with your meta tags. try to force display error at the start of the code.
  3. I seriously don't understand the query o.0
  4. check your database if you have the column called date and its case-sensitive.
  5. you can always use chrome developer console by pressing F12. Click on elements tab.
  6. is there any database connection errors? did you import then export to you new db?
  7. opps, i copied the script from some of my script. sorry... <?php $dir = "tt/"; if(!empty($_GET['delete'])) { $filename = $dir . $_GET['delete']; $name = $_GET['delete']; if (file_exists($filename)) { if (unlink($filename)) { echo "File '" .$name."' deleted!"; } else { echo "File '" .$name."' cannot be deleted!"; } } else { echo "File '" .$name."' not found!"; } echo "<hr/>"; } foreach (glob($dir . "*.*") as $filename) { $filename = str_replace($dir, "", $filename); echo $filename . " | <a href='?delete=".$filename."'>delete</a> <br/>"; } ?>
  8. create an array then store it into the session. example <?php session_start(); $carnew = array(); $model = $_GET['model']; $color = $_GET['color']; $price = $_GET['price']; $firm = $_GET['firm']; $carnew['0'] = $model; $carnew['1'] = $color; $carnew['2'] = $price; $carnew['3'] = $firm; $_SESSION['cars'] = array(); $_SESSION['cars']['0'] = $carnew; print_r($_SESSION['cars']); ?>
  9. try implementing this to your code<?php $dir = "tt/"; foreach (glob($dir . "*.*") as $filename) { $filename = str_replace($dir, "", $filename); echo "$filename size <br/>"; } ?>
  10. yes, but bear in mind, he is using a div with a static width from the code given. margin:0 auto; is thus required. he didn't state that he only wants it to be in the center of the div but instead, he wants it center of the page. debate is over bro.
  11. upload your image i think there is white spaces in the image
  12. just set the background-position to center <div style="width: 100%; height: 192px; text-align:center; margin:0 auto; background-image: url(images/header4.jpg); background-repeat: no-repeat;background-position:center;"> </div>
  13. I would recommend using width: 100%; unless you have a parent div which have a static width such as 760px
  14. you must have some contents in the div for the background image to show up. <div style="width: 100%; text-align:center; margin:0 auto; background-image: url(images/header4.jpg); background-repeat: no-repeat;"></div> or you can set a minimum height to the same height as the image <div style="width: 100%; text-align:center; margin:0 auto; background-image: url(images/header4.jpg); background-repeat: no-repeat;min-height:100px;"></div>
  15. there is a need to declare a margin:0 auto; because he wants the div to be at the center of the website. where the width is consent, its probably something to do with the rest of the code, you can predict he don't need it unless you read the whole code.
  16. No problem, please mark topic as solved. If my pleasure to help people xD
  17. If i were you, I would use a mysql db to store all entries, its much easier done with the coding works. I would have the table structure as this ================= || name || email || text || ================= have fun
  18. if (fwrite($file, $name "," . $email)) should be if (fwrite($file, $name . "," . $email))
×
×
  • 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.