Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. This doesn't make sense to me. WHERE ".$bedrijfsnaam." ".$provincie."
  2. You need single quotes around your variables/values in the INSERT statement.
  3. Can you post the query and the entire error?
  4. That's still not helpful. What I meant was, do you get an error? What happened and what was supposed to happen? Glad you solved it.
  5. Define "wrong".
  6. Maq

    T_WHILE

    Next time post the FULL error and the line number.
  7. Maq

    T_WHILE

    ';' after your $costs array.
  8. The correct syntax is: SELECT COUNT(DISTINCT territory_id) FROM roster It may be faster to use GROUP BY rather than DISTINCT.
  9. Did you run mysql_real_escape_string on it?
  10. Well the OP posted in the "PHP Help" section and stated, "sorry if this is in the wrong forum but i don't know which i need to change the PHP or CSS". So it's kind of confusing for people trying to help when the language he's referring to, aren't even in his thread. (Moving to CSS unless you discover the problem is actually JS)
  11. Do you want to create a 2D array? You can just put them all into a single array, put the values you want to delete in another array, and use the function array_diff to 'abolish' them. i.e. $array = array("value 1","value 2","value 3"); $array2 = array("value 2"); print_r(array_diff($array, $array2)); ?>
  12. Wow, I've never heard of nor seen of an SEO college before. Do you know anyone who's actually graduated?
  13. Your topic = fail.
  14. That's what sudo is for. You assign settings for certain users to execute as root. You can Google sudoers, like I mentioned before, and get all the information you need.
  15. It's called a ternary operator. It is shorthand for an if/else. Converted to if/else it looks like: if($col > $longcols) { $thiscolcats = $percol_short; } else { $thiscolcats = $percol_long; }
  16. It must be a bug between the chair and the computer... Please mark as solved.
  17. Not sure, have you checked the Apache error log?
  18. That doesn't have anything to do with MySQL anyway. It's just the way PHP interpolates strings.
  19. Test it. Echo something inside of your IF statement to make sure it's correct. You should also try to email something simple to yourself to make sure it's not the email.
  20. Then the above syntax should work, and should be applied to the rest of your MySQL operations.
  21. How PHP effects global warming... I have no clue what you're talking about. EDIT: Reread because I read it incorrectly, but still doesn't make any sense.
  22. Because you need to tell it to: SET `exp` = exp + $newexp, `money` 'exp' is an integer type, correct? EDIT: Looking at it again, you have to change all of your updates to this format.
  23. You don't need single quotes around the field names: (username1, time1, time, trackid, trackname, dowload1)
  24. You need single quotes around $name, and $filename. If that doesn't work try adding this or die clause at the end: mysql_query("INSERT INTO race ('username1', 'time1', 'time', 'trackid', 'trackname', 'dowload1') VALUES ('$username', '$replaytime', '$date', '$id', $name, $filename)") or die(mysql_error());
  25. The best way to find out is to test it.
×
×
  • 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.