Jump to content

webbiedave

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

webbiedave's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. http://us.php.net/manual/en/function.sleep.php http://us.php.net/manual/en/function.set-time-limit.php
  2. Here ya go: http://us.php.net/manual/en/function.trim.php
  3. Can you give us the url to the affected page?
  4. Both of those statements have exactly 18 comma separators so, without column names, you need to keep them. Try putting zeros or NULL's in the blank fields. I guess PHP in this thread stands for Pretty Helpful People
  5. This goes to the shared sessions directory mentioned above. Malicious users on the shared server could access the session files. It would be better to store the PK id.
  6. PHP session id's are very difficult to guess (many times username/password combinations can be easier to guess!) and that helps immensely with session hijacking. Keeping the session id out of the url helps with session fixation. If the user is about to access sensitive information, you can have your code re-ask for his/her password. If you're on a shared server, don't store your sessions in the default directory. In fact, if you're really concerned about data security, you shouldn't use shared servers at all. Of course, you must implement SSL to achieve any level of security.
  7. You'll want to post this question in the "PHP Installation" forum and provide a lot more details on what errors you're receiving.
  8. This is a function of HTML/CSS, not PHP. Try googling: two column css
  9. This page contains examples on querying a mysql database and then displaying the results: http://us.php.net/manual/en/function.mysql-query.php
  10. Also check this out: $uploaded = $_SESSION['firsttimeupload']; if ($uploaded == "ok") { // upload code... } else { echo("<span style='color: #000;'><center><b>You can't upload the same image too many times per session!<br>Go back and choose another one!</b><center></span>"); } 1) Learn to program in PHP. You can do that here: http://www.php.net/manual/en/langref.php 2) Try and fix the code. If, after that, you have *specific* questions about *specific* lines of code, we'll be able to more easily point you in the right direction. We love helping people solve PHP problems but we just don't have time to study, debug and program everyone's scripts gratis. Know what I mean?
  11. As mentioned above, you can use £ or look into sending charset=ISO-8859-1 in the header. You can set this header through the web server, PHP or MySQL. For more info, have a look at: http://wiki.joyent.com/shared:kb:change-charset
  12. Just keep in mind PHP's type conversion when comparing strings and numbers. For instance: $a = 3; $b = '3d'; echo ($a != $b); will evaluate to false, while: echo ($a !== $b); will evaluate to true. For more info, see: http://us.php.net/operators.comparison
  13. I will assume you are referring to the $user array. If so, you'll need to ensure that: "SELECT * FROM users WHERE username = '$eusearch'" is returning useful rows. Also try echoing the UPDATE SQL to investigate. If the SQL is: UPDATE users SET rank = '2' WHERE username = '' then you can understand why no rows are being updated.
×
×
  • 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.