Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. This topic has been moved to PHP Freelancing. http://forums.phpfreaks.com/index.php?topic=362718.0
  2. It worked fine with this setup: tim@tim-laptop:~$ mysql --version mysql Ver 14.14 Distrib 5.1.63, for debian-linux-gnu mysql> create table words (word_id int unsigned primary key auto_increment, word char(32)); Query OK, 0 rows affected (0.13 sec) mysql> show tables; +----------------+ | Tables_in_test | +----------------+ | control | | testing | | words | +----------------+ 3 rows in set (0.00 sec)
  3. aery, please use or tags around your code.
  4. This topic has been moved to mod_rewrite. http://forums.phpfreaks.com/index.php?topic=362697.0
  5. Just echo them out: echo $project[$n]->name; echo $project[$n]->company->name; Read: http://php.net/manual/en/function.print-r.php
  6. This topic has been moved to mod_rewrite. http://forums.phpfreaks.com/index.php?topic=362609.0
  7. Congratulations. Experience will be key from here on out. Make sure your job is always challenging and you're learning new and up-to-date skills.
  8. For linux/mac use the cron tab, or for windows you use the task scheduler. There are pretty good tutorials out there but post again if you need specific help.
  9. I use Eclipse on a daily basis with the default theme, slowness/lag is rare for me. They have some nice plugins especially for things like sftp, subversion, remote debugging etc.
  10. Maq

    PHP anthem

    Oh my lord.
  11. Try reading this sticky: HEADER ERRORS - READ HERE BEFORE POSTING THEM
  12. You're in a good place, welcome.
  13. In your php.ini you need to add: windows: entension=libxml2.dll unix based: entension=libxml2.so And as titan said, you can check it running a script with phpinfo() in it (need to restart your web server to take effect).
  14. Going off Barand's example, with implode and a bit of string manipulation you can do: $designation = array ( 'Managing Director', 'Manager', 'Director', 'The Principal', 'Deputy Principal', 'Proprietor', 'Assistant Manager', 'Head Master'); $sql = "SELECT .... FROM mytablename WHERE somecolumn IN('" . str_replace(',', '\', \'', implode(',', $designation)) . "')"; echo $sql; Output: SELECT .... FROM mytablename WHERE somecolumn IN('Managing Director', 'Manager', 'Director', 'The Principal', 'Deputy Principal', 'Proprietor', 'Assistant Manager', 'Head Master') EDIT: This is probably easier to read (replaced single quotes in function with double quotes): $sql = "SELECT .... FROM mytablename WHERE somecolumn IN('" . str_replace(",", "', '", implode(",", $designation)) . "')";
  15. Happy bday Joshua!
  16. Hi and welcome to PHPF.
  17. No thanks, I have enough addicting things in my life.
  18. I was just kidding I don't use twitter, maybe once or twice...
  19. Who cares...
  20. This topic has been moved to MySQL Help. http://forums.phpfreaks.com/index.php?topic=361335.0
  21. Show us your code and don't put urgent in your thread title, it will likely decrease replies.
  22. As gristoi mentioned, we need more information. Honestly, we really don't care that this is for your thesis paper, tell us useful information. What exactly are you trying to do? What happens? What doesn't happen? Errors? If so, what did you try to do to debug them?
  23. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=360986.0
  24. Congrats Mabismad
  25. Why delete this thread? Other people can reference this to solve a similar problem.
×
×
  • 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.