-
Posts
2,527 -
Joined
-
Last visited
Everything posted by DeanWhitehouse
-
logged in users only accessing certain pages? (please help)
DeanWhitehouse replied to alf's topic in PHP Coding Help
wrong way round $_SESSION['username'] = $username; should be $username = $_SESSION['username']; -
It is but why would you want to remove the slashes first :s You can always disable magic quotes
-
[SOLVED] how to uploadonly jpegs and gifs?
DeanWhitehouse replied to shadiadiph's topic in PHP Coding Help
Maybe this one will explain it in a way that is clearer to you http://www.w3schools.com/PHP/php_file_upload.asp -
[SOLVED] Adding to MultiDimensional Arrays - Frustrating.
DeanWhitehouse replied to UpcomingPhpDev's topic in PHP Coding Help
try removing the implode. -
[SOLVED] Adding to MultiDimensional Arrays - Frustrating.
DeanWhitehouse replied to UpcomingPhpDev's topic in PHP Coding Help
Hmm not sure when you are using custom keys like that. Maybe look through this http://djw-webdesign.awardspace.com/code.php?snippet=8 If that doesn't help i might be able to make a code to do it. -
[SOLVED] Adding to MultiDimensional Arrays - Frustrating.
DeanWhitehouse replied to UpcomingPhpDev's topic in PHP Coding Help
What does this give you <table cellspacing="0"> <form method="POST"> <tr> <td><input value="Ny" name="City[Ny][]" /></td> <td><textarea name="City[Ny][]"></textarea></td> </tr> <tr> <td><input value="Ca" name="City[Ca][]" /></td> <td><textarea name="City[Ca][]"></textarea></td> </tr> <input type="submit" /> </form> </table> <?php $City = $_POST['City']; $Ny = explode("/n", $City[Ny][0]); $Ca = explode("/n", $City[Ca][0]); print_r($Ny); print_r($Ca); ?> -
[SOLVED] how to uploadonly jpegs and gifs?
DeanWhitehouse replied to shadiadiph's topic in PHP Coding Help
Have a read through http://www.plus2net.com/php_tutorial/php_file_upload.php -
[SOLVED] Adding to MultiDimensional Arrays - Frustrating.
DeanWhitehouse replied to UpcomingPhpDev's topic in PHP Coding Help
ok, i understand try <tr> <td><input value="Ny" name="City[Ny][]" /></td> <td><textarea name="City[Ny][]"></textarea></td> </tr> <tr> <td><input value="Ca" name="Country[Ca][]" /></td> <td><textarea name="City[Ca][]"></textarea></td> </tr> -
logged in users only accessing certain pages? (please help)
DeanWhitehouse replied to alf's topic in PHP Coding Help
well you can lock pages to the user's ID(which would be unique) and then on the page check their ID against the one stored in the db for that page. to generate new folders and content you will need to look into fwrite() and some similar PHP functions -
Use addslashes(); and mysql_real_escape_string(); and then when you recall the data use stripslashes(); to remove the slashes
-
[SOLVED] Adding to MultiDimensional Arrays - Frustrating.
DeanWhitehouse replied to UpcomingPhpDev's topic in PHP Coding Help
cam you post the result of the print_r -
GOOGLE Please, stop asking for code to be handed to you.
-
logged in users only accessing certain pages? (please help)
DeanWhitehouse replied to alf's topic in PHP Coding Help
So.. Whats the question? -
http://google.com Just to help you on the way
-
Toggling Radio Button and Checkboxes
DeanWhitehouse replied to OldManRiver's topic in PHP Coding Help
Please at least try it on your own instead of expecting us to hand it to on a plate -
http://uk.php.net/file_exists
-
Why? $plan = "$row['simple']"; //is this ok?will it get table simple? $plan2 = "$row['combo']"; simpler if you do $plan = $row['simple']; //is this ok?will it get table simple? $plan2 = $row['combo']; for this you could do if ( $plan == "on" ) { //if that table's value is on then it should get page x echo file_get_contents("filename.php"); //or include("file.php"); } elseif($plan2 == "on") { //if this one is on then it gets page b echo file_get_contents("filename.php"); //or include("file.php"); } or header("Location:filename.php"); would work, as long as there is no whitespace of HTML before the header
-
then start on one and when you get a problem/question post here
-
[SOLVED] PHP $_Post $Get Function Help Needed Please
DeanWhitehouse replied to lewisstevens1's topic in PHP Coding Help
If you want a session login, here is how http://djw-webdesign.awardspace.com/code.php?snippet=9 -
[SOLVED] Using include() and image URLs.
DeanWhitehouse replied to bdicasa's topic in PHP Coding Help
Seriously , go and learn HTML and read up on how to put images into web pages. http://w3schools.com or http://tizag.com You just put the image location to go back one folder do ../image.jpg .../image.jpg = back two folders etc. -
[SOLVED] Using include() and image URLs.
DeanWhitehouse replied to bdicasa's topic in PHP Coding Help
Using the image tags and try doing include($_SERVER['DOCUMENT_ROOT'].'\Classes\Business\register.php'); -
Mod Rewrite dynamic URLS and Static rewrites
DeanWhitehouse replied to DeanWhitehouse's topic in Apache HTTP Server
Tried But not working when i enter mysite.com/Updates/1/the new thing/