Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. If you want it in your query, MySQL also has a substring function - SUBSTRING(). You should post in the appropriate section so people will give you appropriate feedback.
  2. A bit late? I would say very late, like over 2 years late...
  3. Maybe there's an easier way but you can explode it with a comma delimiter, reverse the the array, and implode it back together. $str = "10,8,6,4,2"; $p = explode(",",$str); $str = implode(",",array_reverse($p)); echo $str; ?>
  4. Echo out your query to see what you're actually executing.
  5. I see. Sorry, I'm not aware of any services of the sort off the top of my head. I know SVN has an option where you can disable multiple check outs. Good luck.
  6. This is something you're going to have to either read a tutorial about or figure out on your own. You can use any editor to edit PHP code. Please Google for an uptodate tutorial of your liking. Good luck.
  7. There should be version control plug-ins for each one. After that, it doesn't matter, it's the files that are under version control, not the software. When you open your editor it's a good idea to update from the HEAD first to ensure you have the latest copy from the repository. As long as you both are using the same type of version control and are checked out from the same repo, it shouldn't matter if you are using different editors.
  8. Yes, or click on the link I provided. It is just a easy to install bundle for Apache, MySQL and PHP on Windows.
  9. If you haven't set anything up yet I would suggest WAMP (windows) or LAMP (linux). Complete this step first, these bundles are meant to be easy to install and configure. If you have trouble, post in the "Installation and Configuration" section with your specific problem.
  10. Great. Please mark this thread solved.
  11. Maq

    Email remove

    Can you show us your current regex?
  12. Try this: $numlines=count(file($filename));
  13. There could still be some collision. You should check against your database, if it's there, create another one, if not, proceed.
  14. Maq

    Can't Update

    So... what exactly happens? Have you debugged anything? Does the $id get passed correctly? Does it echo "SORRY TRY AGAIN"? Are there any errors? Have you echoed out the update sql statement to see what's actually being executed? NOTE - Use <?php tags never short-hand...
  15. I guess I'm confused as to why you need two unique ids for 1 registration. You already have the auto-increment "userid", why do you need another unique value?
  16. EDIT: Nevermind. What does the "siteid" refer to? Can users have multiple siteids?
  17. Can you post the relevant code please?
  18. Yes sorry, you need single quotes around values that aren't INTs. Either use what alco has or put: (if id is an interger, which is should be, then you don't need single quotes there) comment_field = '$i' WHERE id='0'"); If that doesn't, work you could use or die to see what the error is (take this off as soon as it goes live): mysql_query("UPDATE announcements SET comment_field = '$i' WHERE id='0'") or die(mysql_query());
  19. Okay. Thanks. Sure, if you wanted to do this, then follow PFMaBiSmAd's post.
  20. The only other thing you can do is convert it into ternary to only make it one line. Other than that, there is no native function, if that's what you're asking.
  21. Please don't triple post ever again... In the future this could result to lack of replies.
  22. Put backticks around `text`. I believe it's a reserved word.
  23. Change the type to password.
  24. Your page just hangs for me...
×
×
  • 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.