Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. To elaborate on this, which is 100% correct BTW, there are a handful of words that are "reserved" for MySQL and must be escaped with backticks `. For more information and to see the entire list: Reserved Words.
  2. Depends. Are you just trying see what's in common from the beginning to X or, are you trying to compare all common characters? Is the end always a number? For the first part you could use something like: $s1 = "apple1"; $s2 = "apple2"; $i = 0; $temp = ""; while($s1[$i] != null) { if($s1[$i] == $s2[$i]) { $temp .= $s1[$i]; } $i++; } echo $temp; ?>
  3. We can't really help with seeing the related code for "Choice 2".
  4. - What doesn't work about it? - Errors? What happens? Please provide more information. - Please use tags to format code.
  5. Did you set the BIOS to boot from the CD-ROM?
  6. Maq

    NuSOAP

    Could be a multitude of things. We need more information...
  7. First echo something after your IF statement to see if it's even being executed. If it is, then there's probably something wrong with your query, change it to: $sql = "UPDATE $tab[user] SET status='supporter', statusexpire='$expires', credits=credits+$turns WHERE id='$id'"; echo "QUERY=> " . $sql; mysql_query($sql) or die(mysql_error()); and post what the output is. EDIT: Put query in string, echoed it, then executed the query.
  8. Easier than what? Long? You should look into libraries that have an API to handle XMl such as, "simplexml".
  9. OK, well the GET method is correct as long as the URL is what you posted. Why happens? What tells you it does work? Something doesn't happen, something does happen that's not supposed to? Any Errors? What's the clr() function look like? Are you echoing out testing strings so you know what part got executed? Maybe it's your query? Put or die(mysql_error()) at the end. Maybe it's a syntax error, put this directly after you opening <?php tag: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  10. You should use $_GET. $id = $_GET['snuid']; $turns = $_GET['currency']; Not sure what this exactly means.
  11. You would need to incorporate something such as: WHERE product LIKE '%mica%'
  12. Before examining your code, put this at the top of your page. Blank pages usually occur when you have syntax errors. ini_set ("display_errors", "1"); error_reporting(E_ALL);
  13. Well what is from and to? Are they supposed to be variables?
  14. I don't think the point of, "Hello World" is to teach people about programming but to just get something basic up and running.
  15. It's impossible to tell without code.
  16. http://www.cracked.com/article_17323_if-everything-was-made-by-microsoft.html
  17. I always thought it was like, "Hello programming world, here comes my obfuscated code!".
  18. True, and it's just a warning which, should be suppressed on production servers anyway.
  19. You're using elseif's so if anything before that results to true, than the elseif with == "25" won't execute.
  20. You could use chmod for proper permissions.
  21. Since he was using 'elseif' then if the first 'if' is true, which it always will be in this case, the 'elseif' will never be executed. He needs to use '=='. Your code is also very inconsistent, you're using elseif's with spaces, capital 'I' for if's, very bad.
  22. On php.net, one of the posts mentions: Which sounds like your problem.
  23. Not to be a dick, but what do you think the name, 'variable', refers to? It's because they can vary.
  24. You should test PFMaBiSmAd's UPDATE query first as it will be A LOT faster then selecting all the rows, exploding them, and inserting in 2 different columns.
  25. Because your code is invalid, looks like you just CnP'd my code from above... Anyway, we need to know the exact format of the names. Like premiso mentioned, are the names always going to be [first, space, last], is there ever a middle initial, are there spaces allowed in the first/last name? That's the most important question.
×
×
  • 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.