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 Coding Help. http://www.phpfreaks.com/forums/index.php?topic=334700.0
  2. In the future, please place tags around your code. To loop through the results, use mysql_fetch_array. In pseudo your code will look like: echo ""; while(...) { echo "{$row['city']}"; } echo "";
  3. I'm not sure what's happening in your code but ORDER BY date DESC is the correct way to extract the most recent records first. What's the problem and what's happening?
  4. Hi Alen, welcome to PHPF.
  5. Like everyone else explained, this has nothing to do with us except for the fact that it was decided to use the SMF software. If you really are upset, then take it up with them: http://www.simplemachines.org/
  6. In addition to the above: // Create a new mysqli object which is an interface to be specific $connection = new mysqli('server', 'username', 'password', 'database'); // Invoke the prepare() method with the 'prepared' query string $result = $connection->prepare("SELECT products, usertype, special_pricing_user, special_pricing, pcconly FROM users WHERE username = ?"); // Bind $username to the '?' value field that you see above $result->bind_param("s", $username); // Execute the query $result->execute(); // Fetch the results into the $result array $result->bind_result($userproducts, $usertype, $special_pricing_user, $special_pricing, $pcconly); // Loop through the results while ($row = $result->fetch()) { // } If that's too layman for you, then ask for specifics.
  7. Maq

    PHP or JS

    Yep. A perfectly cromulent sentence, I might add. Cromulent, such a very voluminous word.
  8. Then you have to use Javascript, more specifically, the onClick() event and change the DOM that way.
  9. Sure it's possible. What part do you need help with?
  10. As Nightslyr implied, use Google, it's not that hard, really. Sounds like you might want some sort of e-commerce implementation but it's hard to tell from your awesome description.
  11. Gotcha. I surely see why you would be disappointed. I've never really used public freelance sites so I can't really comment, but I've always been told they're hit or miss (mostly miss ;P).
  12. If you don't mind me asking, what was the "disappointing experience" on these freelance sites? We also provide a freelancing section here, if you're interested: http://www.phpfreaks.com/forums/index.php?board=8.0
  13. If you're trying to monetize the number look at - money_format.
  14. I though it was pretty straightforward, the only part that was a bit hazy: So are these categories & sub-categories ("I_am"=baker "one_of"=localshops "a_type"=shops)? Why do you list them in reverse order?
  15. First run it with firebug and see if there are any errors. You're probably matching on inexistent elements.
  16. cssfreakie.... how many times do I have to tell you, the pics I send you are strictly for personal pleasure. That's it!
  17. I don't know how your images are stored or what you system looks like, but normally you would store the path of the image while storing the physical images on your server so you can just reference them. Then you would sort the array like any normal array.
  18. You'll probably have better luck starting a new thread with your problem. The OP hasn't been active since August 27, 2010, 06:14:09 AM.
  19. What is this magical "Google" you speak of?! http://tinyurl.com/6oh56d
  20. Wow, I copied your question into Google and got thousands of relevant results, imagine that.
  21. Maq

    PHP or JS

    I enjoy watching the yellow angry cephalopods. And Maq exposes himself as a hentai fan. But more importantly, he exposed himself. Yeah... Let's try to stay on topic and not ruin the thread, CV... Ok, I like women's tennis, ZING!
  22. You've been a moderately active member here for 2 1/2 years, surely you know how to insert into a database.
  23. Maq

    PHP or JS

    I enjoy watching the yellow angry cephalopods.
  24. OK, that's a lot of code to go through, which I highly doubt people are going to be willing to do. You need to first figure out what the problem is, then try and isolate it. What happens, what's supposed to happen? Do you get errors? Are you stuck on a particular part of the code/logic? We need more information...
  25. @mx760, In the future, please place tags around your code.
×
×
  • 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.