Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Bottom left, right above "Quick Reply".
  2. I know that. I'm telling you to add it in.
  3. First off, why are you using a counter? Just put an extra condition that takes care of this. Second, why can't you just sort by adding ORDER BY cat to your query? $query = "SELECT * FROM user_ach WHERE user_id = $cookie AND ach_id > 0 and ach_id NOTE - You will have to iterate through a while loop instead of the for loop.
  4. Nice, but you should really properly indent and space your query for readability, you can look in the MySQL manual to see the conventional formatting. Please mark as solved.
  5. On the processing page, add this after the first opening <?php tag: ini_set ("display_errors", "1"); error_reporting(E_ALL); Try adding singe quotes around $category: $query = "SELECT id FROM category WHERE type = '{$category}'"; If that doesn't work, temporarily add an or die clause after your query to diagnose it: $result = mysql_query($query,$connection) or die(mysql_error());
  6. In addition to what taquito suggested, you're not outputting anything on the processing page. Why would it display anything?
  7. YW. This really doesn't have to do anything with PHP, except the fact that you're changing the permissions of a .php file.
  8. Good. You could have still kept the same field name but just put backticks around it. $sql="INSERT INTO logins (`key`, username, password) You should take out the or die clause when putting this on your production server.
  9. Can we see more of your code? There is a multitude of reasons that could cause this.
  10. can you do that in puTTy? i though you had to follow oug rwx commands? I don't use putty but I'm almost positive you can. Try it.
  11. Why not just use: chmod 444 configure.php
  12. 'key' is a reserved word you need backticks around it in your query.
  13. That, and echo out the variables before you pass them to the mail function to see what's actually being passed.
  14. Yes. Found this piece of code here, should do what you want. $imgname = "image.jpg" $im = @imagecreatefromjpeg($imgname); /* Attempt to open */ header("Content-type: image/gif"); imagegif($im, "image.gif"); ?>
  15. Why don't you try it first?
  16. Have you read through the manual - foreach. You will need two of them because you have a 2d array.
  17. You know there is a native function - array_reverse?
  18. Yes, the proper syntax is in the MySQL manual - DELETE. Multiple-table syntax:
  19. You're welcome. Did that work the way you wanted it to? If so, mark as solved.
  20. Change your query to only select the ones with options of 'yes'. $sql = "SELECT * FROM crackz WHERE options = 'Yes' ORDER BY id DESC LIMIT 30";
  21. Read this thread - convert string to date.
  22. mysql_fetch_row returns an array, it isn't one. Implement what? Not sure what else there is to discuss here.
  23. Temporarily store it, if it doesn't equal the temp var, then do something.
  24. Then you should read the manual first, foreach.
×
×
  • 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.