Search found 7 matches

by WOWDesigns
Mon Jun 23, 2014 6:13 am
Forum: PHP General
Topic: Duplicating a current PHP site
Replies: 0
Views: 1454

Re: Duplicating a current PHP site

Hi @Gorrod91 Yeah, I basically back up the entire site (database and files) and then put it either on my testing server or within another folder on the clients website called "test" or something. Then you simply create an additional database (uploading the old content into it) and point your config ...
by WOWDesigns
Mon Jun 23, 2014 4:58 am
Forum: PHP General
Topic: Are These OK For Cleaning/Checking Forms UK?
Replies: 0
Views: 934

Are These OK For Cleaning/Checking Forms UK?

Hi I want to ask the general community if the functions below are good for preventing MySQL injections and for checking and cleaning posted form data. I'm creating them to verify contact details, titles and numbers in the UK. // SECURE FORM FUNCTIONS (PHP 5+) ////////////////////////////////////////...
by WOWDesigns
Sat Sep 29, 2012 3:33 am
Forum: PHP coding => General
Topic: Can anyone crack this code?????
Replies: 0
Views: 628

Can anyone crack this code?????

Hi All I posted this... http://www.php-forum.com/phpforum/viewtopic.php?f=2&t=20962 ...4 days ago and it has been viewed 29 times. Is there anyone out there who can see what is going wrong with the load? Basically the form include is on all pages, including the results pag, that it sends the user to...
by WOWDesigns
Tue Sep 25, 2012 2:56 am
Forum: PHP coding => General
Topic: Session
Replies: 1
Views: 565

Re: Session

Also I don't think you need the semi-colon after your function:

Code: Select all

validateUser(); {
should be

Code: Select all

validateUser() {
Only a guess, I'm no expert on functions :oops:

Glynn
by WOWDesigns
Tue Sep 25, 2012 2:51 am
Forum: PHP coding => General
Topic: Session
Replies: 1
Views: 565

Re: Session

Does this work... <? session_start(); //must call session_start before using any $_SESSION variables $username = $_POST['username']; $password = $_POST['password']; //connect to the database here include('config.php'); $username = mysql_real_escape_string($username); $query = mysql_query("SELECT pas...
by WOWDesigns
Tue Sep 25, 2012 2:37 am
Forum: PHP coding => General
Topic: Included form errors when re-submitted on the results page
Replies: 1
Views: 921

Included form errors when re-submitted on the results page

Hi all I have a search form on every page that goes to a certain page to show the results: <?php require_once('lib/search_box.php'); ?> The issue is that when I'm already on the results page and re-submit the form the page fails to load: PHP: if(isset($_POST['spsearch'])) { $_SESSION['STCode'] = $_P...
by WOWDesigns
Tue Sep 20, 2011 6:15 am
Forum: PHP coding => General
Topic: Display last 3 image files uploaded to a folder
Replies: 1
Views: 517

Display last 3 image files uploaded to a folder

Hi Basically I've built a CMS where by my clients can upload a number of images. On the success page I want to display the images they uploaded by file name. The issue is the number of images can vary. They may upload 2 or 10 or 50 etc. So far I've come up with this: // number of files $UN = 3; //I'...