Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. it was a test to check the data being sent!! can you post the results!
  2. The Example i posted should work but it depends on the format you accept UK Postcodes are as follows NE7 1QA SW4 0LH etc IF you don't have a space then remove the \s if you only want to search for the first letter then use '^\w' hope this helps NOTE: the REGEXP should be '^\w+[\s0-9]+'
  3. did you try anyones examples ?
  4. OK ono the form you have a submit button and a method just say the button is called add and the method is post add this to the admin_update_resident_info.php if( isset($_POST['add']) ) { //do all the update stuff } if that makes sense but from what you have its not secure!
  5. http://php.net/mail User Contributed Notes
  6. your need another script to rebuild the image if its stored in the database..
  7. movie_id is wrong in the from <td><input type="text" id="movie_id" name="movid_id" value="<?=$only_id?>" disabled /></td> change name="movid_id" to name="movie_id" Add print_r($_POST); to the top of the script..
  8. IF your storing the file (contents ) in the database your need a field for that and one for the name.!
  9. sessions stay alive until you destory them or until the server clears them,
  10. whatever dude..
  11. LOL again.. Try ini_set('default_socket_timeout', 120); $content=file_get_contents("http://www.google.com",FALSE,NULL,0,20); anything special about the URL you are trying to connect to ?
  12. welcome.. no idea what Lumio was chatting about but he does that :-\
  13. echo what ever field you have in the database!
  14. your need to do the select then check mysql_num_rows($result); for the number of records found then if more than one apply update.. i think some research may help
  15. Personally i dont see a problem, if you echo $newturns after setting it, it should work, but as you stated $newturn in the first post i think you should double check, also echoing the SQL statement and and adding some error handleing m ay help $SQLq= "UPDATE users SET turns = '$newturns', lastclaim = '$nowtime' WHERE uname = '$uname' LIMIT 1"; echo $SQLq; mysql_query($SQLq)or die(mysql_error());
  16. show the code that is used to print the $turn also what does var_dump($turn); display ?
  17. please tell me that was a joke!!!
  18. What makes you say the problem is in that section of code ? can't you just destory the sessions after use ?
  19. register_globals are probably off try using sessions insead
  20. Thats not a valid SQL statement.. infact what are you traying to do ?
  21. this is a bad route but ok... but you just need to use the exact same idea as before in the shopping_basket.inc.php
  22. Add AND status = 1 to the SQL Statment on the login script
×
×
  • 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.