-
Posts
783 -
Joined
-
Last visited
Everything posted by ZulfadlyAshBurn
-
please make sure you are using mysqli and not mysql.
-
Modified login post but after modified its is blank page
ZulfadlyAshBurn replied to shebbycs's topic in PHP Coding Help
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. -
I seriously don't understand the query o.0
-
check your database if you have the column called date and its case-sensitive.
-
HAHA. no problem
-
you can always use chrome developer console by pressing F12. Click on elements tab.
-
is there any database connection errors? did you import then export to you new db?
-
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/>"; } ?>
-
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']); ?>
-
try implementing this to your code<?php $dir = "tt/"; foreach (glob($dir . "*.*") as $filename) { $filename = str_replace($dir, "", $filename); echo "$filename size <br/>"; } ?>
-
you can use cookie too.
-
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
@Frank P I cant be bothered with you anymore... -
google is your bestfriend xD
-
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
I don't understand your question o.0 -
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
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. -
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
upload your image i think there is white spaces in the image -
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
so now is there anymore problems? -
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
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> -
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
I would recommend using width: 100%; unless you have a parent div which have a static width such as 760px -
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
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> -
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
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. -
how do i center everything on the page and inside the divs ?
ZulfadlyAshBurn replied to jasonc's topic in CSS Help
No problem, please mark topic as solved. If my pleasure to help people xD -
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
-
if (fwrite($file, $name "," . $email)) should be if (fwrite($file, $name . "," . $email))