Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Or you could see exactly what the error is by changing this line to: $result = mysql_query($selectQuery) or die(mysql_error());
  2. Please read this basic tutorial: PHP File Upload.
  3. I don't see where you actually insert anything, you create the string and that's it, unless you didn't paste all the code... You have to use mysql_query() and mysql_insert_id() gets the resource id from the last inserted record.
  4. Why don't you try it and find out?
  5. One equal sign is assigning, two is comparing. if ($_SESSION['username'] == $author) {
  6. I'm at school/work right now You don't have foil and salad bowls at work? You could show your boss how innovative and cost efficient you are.
  7. redarrow, mysql_num_rows() takes a resource not a string... AND you spelled mysql wrong when you called that function... $sql="SELECT $email FROM $wat_ever WHERE id='{$_SESSION['id']}' "; $result = mysql_query($sql) or die(mysql_error()); if(myslq_num_rows($result)==1){
  8. Missing a quote echo $itemname . " ";
  9. You have to create an environment variable. This is usually done in the bashrc file. What linux distro are you using? General steps: vim ~/.bashrc Add the env var: export LD_LIBRARY_PATH='/user/lib/mysql/lib'
  10. Nice, what's with the McDonald's sign? Making me hungry...
  11. If you got to the link that rhodesa provided, you can customize it yourself, it explains the format for everything.
  12. $your_date = date("D, M d, Y H:i A"); echo $your_date; ?>
  13. There's a Mac download right on the link you posted...
  14. It's going to cause more hassle then help IMO. Using code tags is etiquette and common on almost every coding forum. The only thing that would probably be helpful is making it more obvious to people that don't know. Other than that, I don't know what else you could do. ??? EDIT: And besides, half the code posted don't even start with <?php or tags, so it would start in the middle of the code and be impossible to understand.
  15. Use CAPTCHA, ask a simple question, use email verification. Look at some other sites registration forms to get some good ideas.
  16. Sorry SchweppesAle, we totally destroyed your thread with off topic posts :-\ Did you get everything working properly?
  17. That reminds me.......
  18. Your pages are viewed by the crawler how you view them. PHP is server side but produces HTML in the end so it should have no effect for SEO. The best way to ensure this is to run your site through the W3 Validator.
  19. The slogan, "Get Addicted", has taken effect on me as well, especially while at work.
  20. Typing under the influence again...?
  21. Here's a Basic Example.
  22. You should really format your code... After a function or a foreach loop you should indent a couple spaces to make it easy to read. You can also use $i++ rather then $i = $i + 1
  23. It probably is permissions, but does it say anything when you attempt to CnP?
  24. I think the ones you have now look good. You can understand what they represent, and they fit to the style of your site.
×
×
  • 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.