-
Posts
2,527 -
Joined
-
Last visited
Posts posted by DeanWhitehouse
-
-
Ok, well based on what you said i think i really should re consider my prices.
For a full conversion from ASP to PHP i charged about £300 ( i don't know the dollar amount )
-
If you expect a proper answer then we need to know what services you offer and your skill level
-
Wow, i am way too cheap then
-
It can all depend on your skill, the size of the job, the complexity of the job, etc.
-
Without seeing the whole code we can't really help
-
Yeah maybe put it in a loop?
-
-
Thanks for your thoughts i will pass them onto the designer.
The css thing (which also affects the validation) is due to the fact that making CSS which is browser friendly (for most browsers) and resolution friendly (for most resolutions) is a lot harder than using tables.
But i would prefer CSS so we can implement multiple styles.
-
This should show any errors
<?php error_reporting(E_ALL); ini_set("display_errors",true); mysql_connect(localhost,$username,$password) or die("Cannot connect to db ".mysql_error()); mysql_select_db($database) or die("Cannot find DB ".mysql_error()); $query = "UPDATE registration SET playerfirst = '$playerfirst', playerlast = '$playerlast', playeraddress = '$playeraddress', playercity = '$playercity', playerstate = '$playerstate', playerzipcode = '$playerzipcode', guardianphone = '$homephone', guardiancell = '$cellphone', playeremail = '$playeremail', playerage = '$playerage', playerweight = '$playerweight', playerheight = '$playerheight', playergrade = '$playergrade', playerposition = '$playerposition', playerschool'$playerschool', playerlevel = '$playerlevel', playercoach = '$playercoach', playercountry = '$playercountry', roommate = '$roommate', guardianwork = '$workphone', guardianfirst = '$guardianfirst', guardianlast = '$guardianlast', guardianemail = '$guardianemail', emergencyfirst = '$emergencyfirst', emergencylast = '$emergencylast', emergencyhome = '$emergencyhomephone', emergencycell = '$emergencycellphone', emergencyemail = '$emergencyemail' WHERE user = '$user'"; mysql_query($query) or die("Cannot run query ".mysql_error()); mysql_close(); ?>
-
Remove the @ symbol, and add die statements to the connect and the query.
And please don't put NEEDED ASAP in the title, we are doing this for free and no ones script is more important than the rest
-
Wow that made no sense at all
-
Sessions and variables are not the same
This is where you define the session
$_SESSION['theresumename'] = $nizame;
But with this code
if ( !($_SESSION['theresumename'] === $nizame) )
$_SESSION['theresumename'] = $nizame;
You might be overwriting the session with something new, check all your variables are what you think
-
I get an error trying to access that
-
Just a space should do(i assume), although you can use str_replace before hand to remove spaces
-
I don't mean the session isn't defined i mean the variable called $theresumename isn't defined.
Look at the bottom of your 2nd script
if ( !($_SESSION['theresumename'] === $theresumename) )
$_SESSION['theresumename'] = $theresumename;
What is it comparing against :S
-
What details?
Google numbers and characters php regex
A tutorial
http://www.jellyandcustard.com/2006/06/13/regular-expressions-in-php/
and cheat sheet
http://www.webcheatsheet.com/php/regular_expressions.php
Should point you in the correct direction
-
It isn't set on any of them pages
-
Change var to public (the equivalent), read up on some php 5 OOP tutorials
-
When reading up on some security measures i read about using environment variables for storing the database connection info (password, username etc.).
But it said they are printed in PHP info, so it is a safe measure for storing the db stuff or is their a better way?
-
All of your
$this -> $varName
should be
$this -> varName
Without the $ sign
-
If i understand correct, then like
<?php $i = 5; while($i <= 50) { if($i == $limit) $s = "SELECTED"; else $s = ""; echo '<option value="' . $i . '" ' . $s . '>' . $i . '</option>'; $i += 5; } ?>
Edit ignore that is it practically the same as you have, what function is passing limit? and try echoing limit within the loop to see if it is correct
-
Not sure if it will help but trying echoing the status and the domain name in the loop to check them.
Do they look correct?
-
It makes helping you easier if you use code tags then we can read the code easier
-
Where is $theresumename set?
Whats your freelance rate?
in Miscellaneous
Posted
Well in that it included full login and registration system (one for businesses and one for clients), a way to purchase advertising space (and dynamic advertising categories) and a small admin cp where the admin can review and approve purchases etc.. and edit/add categories.
But for just a small simple login (enter text, validates, creates sessions) i charged £5