Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. 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.
  2. 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 *i have replaced the username with the proper username Am i writing the command wrong , the exact error in the email is
  3. 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 ?
  4. erm something like $vars = $_REQUEST; foreach($var as $key => $vars) { echo "Passed Name: ".$key."; Value: ".$vars; }
  5. 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.
  6. http://www.google.com/search?hl=en&safe=off&ei=p_eWSZ_sHeCbtwfXma20Cw&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=php+mysql+calendar&spell=1
  7. You are forgetting session_start();
  8. Hmm, and still just printing "Error: " ?
  9. 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
  10. Try (in the hobbies script) putting print_r($_GET); and see if the correct $_GET vars are there
  11. 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'] : "");
  12. $id isn't defined, add error_reporting(E_ALL); to the top to see why there is a problem
  13. 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.
  14. die(ride->ride_spaces_available.' == '.$ride->ride_spaces_taken should be die($ride->ride_spaces_available.' == '.$ride->ride_spaces_taken
  15. Have you tried putting that code at the bottom?
  16. 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
  17. I wrote an image gallery code which might help http://djw-webdesign.awardspace.com/code.php?snippet=15
  18. Have you tred googling?
  19. Hmm ok, looks like i should do some more reading about patterns etc.
  20. 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?
  21. I glanced over them
  22. I would advise learning C++ or C# as a lanaguage as it is very common in alot of computers industrys.
  23. I think the main problem is that these tutorials on OOP all teach you how to use it but none teach you where and why to use it, btw does anyone have a tutorial that does?
  24. Have you even tried this yourself? Show us how far you got and where you got stuck and we can help
  25. Try <?php $src_image = imagecreatefromjpeg($stored_image); $new_thumb_width = 85; $new_thumb_height = 64; list($width, $height) = getimagesize($src); $thumb_w = $new_thumb_width; $thumb_h = $new_thumb_height; $thumb = imagecreatetruecolor($thumb_w, $thumb_h); imagecopyresampled($thumb, $src_image,0,0,0,0,$thumb_w, $thumb_h, $width, $height); imagejpeg($thumb); imagedestroy($src_image); imagedestroy($thumb); echo $thumb_w; echo "<br/>"; echo $thumb_h; ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.