Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Read the comments. $result = mysql_query("SELECT adminlevel FROM accounts WHERE name = '".$_SESSION['auth_username']."'") or die(mysql_error()); echo $result; //This is the output for Resource #51 echo mysql_num_rows($result); //This should output the number of rows. Do you see this? if(mysql_num_rows($result) == 1) { //did you want to check how many rows are returned or what the 'adminlevel' is? echo ' Admin Area'; }
  2. That's what it's supposed to output. If you want extract the 'adminlevel' value you must you something like mysql_fetch_array. There are plenty of examples in the manual.
  3. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=322398.0
  4. Do you mind sharing in case some one else runs into a similar problem?
  5. Does the .dll reside in the 'extension_dir'?
  6. Are you sure you have the mysql.dll enabled in your php.ini? Try restarting Apache.
  7. I added tags around your code, please use them next time. Your code is hard to read due to lack of formatting. Try temporarily changing this line to: $result_ex = mysql_query($result) or die(mysql_error());
  8. Do you have any code so far? If so, please post it.
  9. 1) Refrain from titling your threads URGENT, this is under the forum guidelines (Forum Guidelines #2). 2) DO NOT bump posts after 25 minutes. Give adequate time for users to read and answer your post.
  10. Good for you. If this issue has been resolved then mark as so.
  11. Like previously mentioned, no one is going to do your homework for you, which is exactly what you're asking for. We want to help you, after all, that's why we are here. I doubt you'll find the answer elsewhere but you could probably find a tutorial to show and teach you how to build what you need. Good luck...
  12. You should really take the time and learn cron timing. Not sure exactly what you mean by 3rd party cron system as they would all most likely just use cron. But here are some web interfaces for crontabs: http://www.debianhelp.co.uk/cronweb.htm
  13. I'm pretty sure it should.
  14. (Please use tags when posting code)
  15. That error message is very helpful actually. Where did that column come from? There was no mention of it in the first post.
  16. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=322307.0
  17. If you want someone to do this for you then you should post in the Freelance Section (I'll move to PHP Coding help for now). If you want specific help then you must provide specific questions and code. I doubt anyone is willing to sort through all of that.
  18. I really don't understand what you're trying to do, and considering you posted in the PHP Regex section, it's even more confusing what you want. 54k and 63k are pretty big files, you're going to have to isolate some code.
  19. (I placed tags around your code, please use them next time.)
  20. Chances are your query is failing. Temporarily change your query to this to find out what the error and query value is: $sql = "SELECT * FROM diffs WHERE id='$this->id' AND name='$name'"; echo $sql; $result = mysql_query($sql) or die(mysql_error());
  21. You can use mysql_num_rows to find out how many are returned.
  22. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=322184.0
  23. If this issue has been resolved please mark as so.
  24. Please start a new thread for your issue.
  25. What exactly are these lists? HTML lists, text file lists, array lists, what? What have you done so far? Can we see your code? Do you have a question, you haven't asked one yet.
×
×
  • 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.