Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Welcome! killah-city looks like an interesting game, I'm going to check it out after work.
  2. Please change this line to: if (mysql_query($sql)or die(mysql_error())) { and tell me what the output is.
  3. Rather than writing your query and executing it all in one line, use a prepared statement so it can be echoed and put or die(mysql_error()) at the end of sql execution. $sql = "SELECT email FROM `' . $table . '`"; echo $sql; mysql_query($sql) or die (mysql_error());
  4. Works for me...
  5. Just think about it like this, if it kept changing how would you ever be able to determine if the password was correct?
  6. But then when you quote, it doesn't recognize the [nobbc][/nobbc] tags ;( Plus, it's easier to add a period or space in.
  7. So then he would have to do a query every time he wanted to retrieve a record from the database. Just use a multi-dimensional array.
  8. What about every instance?
  9. Then you have an error somewhere before you try to execute the sql statement. Can we see your code? Also put this at the top of your page: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  10. email='$email', Not sure if this is the problem but, you don't need this comma before the WHERE clause. Do you get any errors or it just doesn't update?
  11. Then do what prcollin suggested: echo ""; while ($row = mysql_fetch_array($result)) { echo "{$row['country_name']} } echo "";
  12. Where do you initiate your $db object?
  13. That link prompts you for a phpMyAdmin login...
  14. YW, if you do make sure you create a new thread, rather than posting here!
  15. You need to give more detail. $list = ($row['data'] == "depends") ? "default" : "{$row['data']}";[/code
  16. Don't give up! Why don't you rollback the backup on the live/production server and test it out on a local web server (unless that's what you're on)? Anyway, at least you got past the first part (line 13), now you're all the way down to 312! Side note, please use [.code] tags.
  17. 448191 , Although I didn't really know you, I respect and appreciate you've done for these forums. Thank you. Good luck with everything!
  18. Bold...? I would say it's nearly transparent. Good idea!
  19. Colors are fine I guess, even though I'm not really into pink... just make them darker. I also like the fact that it's simple. I would recommend a small/simple header or at least to add something in the top nav.
  20. Yeah, because you have an extra single quote after the $. $'TEXT_MAIN = ' You need to change it to: $TEXT_MAIN = '
  21. I wouldn't use the [.php] tags because if you ever CnP long code from it, there seems to be large amounts of linebreaks. I always use the regular [.code] tags and just encapsulate my code with <?php ?> tags.
  22. He did... I'm guessing you want the option to be $country_name and the value that you reference the $id. Try something like:
  23. Yes sorry. What I gave you would get all POST fields that were submitted. You just wanted all the 't array' fields. Glad you figured it out
  24. Haha, yeah I know what you mean, now I'm curious... Maybe the OP is too ashamed, I can't blame him though.
  25. Yes, I misread what he wrote. I guess I assumed that he didn't mean that because there is no point to put an assignment operator in an IF statement because it will always be true...
×
×
  • 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.