Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. Ok, then how did you write a registration and login script ? Look at this kinda tutorial which covers login and protected for pages http://djw-webdesign.awardspace.com/code.php?snippet=9
  2. http://www.phpfreaks.com/tutorial/php-security
  3. Yes, do you actually mean can we write it for you? To do this check for a session (which is set when logging in) then use a session to get that users details, if the session is not present then tell them they need to log in
  4. There is one on the main site about security
  5. Ok then run a query to get the details from the database using their id (or whatever you are setting in the session) in the query to get the correct users info
  6. Ok, do you have a question for us, if not this is the wrong section.
  7. one way would be to use PHP to find every monday between the two times, using string to time function, to improve that i would have it loop through the dates going from the start to the end adding one day at a time until it hits the first monday and from there add 7 days at a time, and record the dates for mondays in an array
  8. You should also learn how to name variables with relevant names and write code that can be understood by any programmer, then you will get help quicker
  9. Try running mysql_real_escape_string on the var first
  10. change $f = str_replace('_',' ',$f); echo '<tr><td>'.$f.'</td>'; to echo '<tr><td>'. str_replace('_',' ',$f).'</td>';
  11. Sorry i wrote it wrong Should be $sql = mysql_query("SELECT ".implode(' ,',$fieldArr)." FROM dailypricing") or die(mysql_error());
  12. Yeah i thought it didn't, that's why his question didn't make sense, therefore i was asking him to put that in to see if it is the problem.
  13. To read a text file do echo file_get_contents("file.txt");
  14. It shouldn't do that, but just in case it is caused by what i think try putting an @ symbol in front of the mail function
  15. Ok then try doing $sql = mysql_query("SELECT ".implode(' ,','_',' ',($fieldArr))." FROM dailypricing") or die(mysql_error());
  16. Also use trim to make sure they don't just have spaces
  17. change if($_GET) to if(isset($_GET['submit']))
  18. I thought the names in the db were stored as name_one etc.. So doing implode(' ,',str_replace('_',' ',($fieldArr))) will look for the word as name one not name_one
  19. The first three loops (in the array) are returning no rows, so their is no song called that for the first three.
  20. add echo mysql_num_rows($result); under the query and tell us what it says
  • 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.