-
Posts
2,527 -
Joined
-
Last visited
Posts posted by DeanWhitehouse
-
-
-
What bit?
The saving the image bit?
If so then i think this will either need to be done manually or using file_get_contents maybe, with some php image functions to create an image from the image.
I am just throwing some ideas around
-
Google?
-
One bad way (kinda hack) to do it would be to store a session when the user first visits the page and submits the form, then in the form validation code check if the session is there.
-
Hey,
I have set up a cron using cpanel, and for some reason the email i get with the output says it came across a 404 page.
The php cron page is in a folder in the main directory called Crons, the file is cron_tab_main.php
I am trying this as the command to run
php /home/[username]/public_html/Crons/cron_tabs_main.php
*i have replaced the username with the proper username
Am i writing the command wrong , the exact error in the email is
Status: 404 Not Found
X-Powered-By: PHP/5.2.8
Content-type: text/html
No input file specified.
-
O yeah sorry about that, i started writing then looked at the manual (php one) then started again :s
print_f would be better than print_r ?
-
erm something like
$vars = $_REQUEST; foreach($var as $key => $vars) { echo "Passed Name: ".$key."; Value: ".$vars; }
-
If you can tell me excatly what it should do i might be able to make one.
Although try learning how to use the ones on the google search results as they are simple to implement and use.
-
-
You are forgetting session_start();
-
Hmm, and still just printing "Error: "
?
-
get rid of the die on the mysql_num_rows
also try echoing $query12 to check if its correct, also try chaning the and to AND
-
Try (in the hobbies script) putting print_r($_GET); and see if the correct $_GET vars are there
-
You should use some if statments for the $_GET vars, or use a ternary (or whatever it is) like
$var = (isset($_GET['id']) ? $_GET['id'] : "");
-
$id isn't defined, add error_reporting(E_ALL); to the top to see why there is a problem
-
Without seing more (most) of your script we can't really help much, as we don't know where you are placing the code n relation to the rest of the page.
-
die(ride->ride_spaces_available.' == '.$ride->ride_spaces_taken
should be
die($ride->ride_spaces_available.' == '.$ride->ride_spaces_taken
-
Have you tried putting that code at the bottom?
-
PHP is run on the server and not the browser, so browser type doesn't affect it.
This should of been posted in the CSS or HTML forum
-
I wrote an image gallery code which might help
-
Have you tred googling?
-
Hmm ok, looks like i should do some more reading about patterns etc.
-
Hmm from a brief read would i be correct to say that it is kind of like using CSS instead of HTML for layouts, for example you can have a page laid out usng CSS and you can then you can adjust the design easly using just CSS instead of writing the HTML.
Is that the right kind of concept?
-
I glanced over them
what the hell is going on????
in PHP Coding Help
Posted
Do not ignore the errors, or turn them off (while developing), fix them, it will make you a better coder and make the code better.
All you need to do is make sure that all the variables are defined before using them.
E.g.
if(!isset($Var))
$Var = "";