Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Try: $number = 1000; echo number_format($number, 2); ?>
  2. You can use file(). It returns an array of the lines in the file. So now you can just reference the element key number.
  3. Yes. Can we see the processing code?
  4. Your site looks halfway done. There's no header, large content gaps... Do you have a demo account we can log into?
  5. Maq

    HTML Encryption

    Hehe, same here. OP, maybe if you explain exactly what you're trying to do and accomplish we can suggest a better solution.
  6. $row['client_primary_job'] AND $client_primary_job are two different variables... Anyway, I don't know what's wrong because this works for me: $client_primary_job = 1000; printf ("%01.2f", $client_primary_job) ?> output 1000.00
  7. You can easily dump the results in a text file too, just add > file_name.txt to the end of the command.
  8. Can you post more relevant code?
  9. Yes, we were all suffering yesterday, at least it wasn't a work day for me, I wouldn't know what I would do.
  10. You're using the wrong function you need to use: mysqli_stmt_num_rows
  11. I didn't test this but it should work. SELECT ip_address ,count(*) AS n FROM table GROUP BY username HAVING n > 1
  12. if(num_rows($rsult)==0) NOT if(num_rows($rsult)=0)
  13. Doesn't work? What happens? You need to add or die(mysql_error()) on the end of your query to see descriptive errors.
  14. 1) NEVER use short tags always use <?php. 2) Why are you talking about java functions? 3) I fail to see where you even try to format...
  15. That would defeat the whole idea of using encryption. If you store both why not just store the original? Very bad idea... Are you talking about a "forgot your password" thing? If so, you need to generate a new random password and send it to them. Then MD5 it and store it in your DB.
  16. It's one way encryption so you have to md5 the input from the user and compare it to what the DB has.
  17. $your_date = "03/05/2009"; $con = date("M jS, Y", strtotime($your_date)); echo $con; ?>
  18. Your $write var has a linebreak in it... I think you want to pass it $token.
  19. You're forgetting to close one of these at the end of your file...
  20. Okay now you're referencing two separate scripts... First one you mentioned: service_request.php on line 216 Error in the link: mod_service_request.php on line 216 Which one is it?
  21. Ah nice, that would be a lot more efficient Especially when dealing with text files.
  22. Your code doesn't even have 216 lines... Are you sure that's correct?
  23. I think the default port for IIS is 80 so you have to change Apache's, I personally use 8080. You probably have the same issue with phpMyAdmin, something by default is taking that port, changing the port should work.
  24. $lines = file('your_text.txt'); $hash = "lafl2j23ljlwavjwlvj"; foreach ($lines as $line_num => $line) { if(trim($line) == $hash) { echo $lines[$line_num+1]; break; } } ?> EDIT: added break so it doesn't go through the entire text file unless you want it to. You could also call "in_array()" on $lines to first check if the hash is even in there before you start looping, let me know
  25. Yes this is possible. This looks promising but you may want to Google a little more to find what you're looking for: http://www.hotscripts.com/listing/flashphp-image-gallery/
×
×
  • 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.