Jump to content

jackpf

Members
  • Posts

    1,410
  • Joined

  • Last visited

    Never

Everything posted by jackpf

  1. But you don't actually need someone to have more gold unless someone is using the game/application or whatever.
  2. Firefox doesn't understand border-radius though. Only -moz-border-radius...
  3. <input type="hidden" name="whatever" value="your string" /> Beware that they are easily modifiable by the user, so I wouldn't store anything important in hidden inputs...
  4. What are you confused with?
  5. -webkit-border-radius as well. Safari also support it
  6. That's weird. Have you got error reporting turned on? Try just putting this in a script: <?php phpinfo(); ?> See what comes up...
  7. The browser doesn't parse PHP, PHP does. What do you mean by "stopped parsing"? It just outputs the PHP to the page?
  8. Ok, $_FILES as an array. For each file uploaded, that filename (name of the form element) is put into the array. So, if you use foreach(), you can go through each file, and do whatever you want with it.
  9. jackpf

    includes

    Or you can use the document_root as an absolute path.
  10. You could use foreach($_FILES as $key => $value) { //your processing } You'll have to refer to $_FILES['filename'] as $_FILES[$key] though.
  11. Well you'll obviously need to connect to the database somehow. Personally, if I know there is a connection to my database already (I also have a class to connect, query etc...) I will just global the connection, if not create it. If I am unsure, I will use isset() to determine whether or not there is a connection. Creating new connections to run concurrently with ones that already exist seems pointless to me. You're just making multiple connections for no reason, thus will slow down your script. Up to you though...
  12. You will need to make use of <input type="file" /> and the $_FILES array. There are undobtedly some good tutorials on google.
  13. This works for me <script> function validateIt() { var quan= document.paypalForm.quantity.value; if(quan>=0) { if(quan<=1000) { alert("The price is 19 cents"); } } else if(quan>=1001) { if(quan<=5000) { alert("The price is 18 cents"); } } else if(quan>=5001) { if(quan<=10000) { alert("The price is 17 cents"); } } } </script> <form name="paypalForm" action="paypal.com" method="post" onsubmit="validateIt();"> <input type="text" name="quantity" value="type your quantity" /> </form>
  14. Oh yeah I didn't notice that
  15. You're running addslashes on the variable. You're supposed to run it on the data.
  16. Try running addslashes on your post data.
  17. SELECT u.userId, u.name, SUM(b.rate) - SUM(z.amount) AS `Total` FROM users u INNER JOIN bookings b ON (u.userId=b.userId) INNER JOIN collection z ON b.bookingId=c.bookingId WHERE b.payMethod='cash' GROUP BY u.userId ORDER BY u.name ASC Can't you just do that? Then `Total` will contain the total amount. Possibly... I have no idea if that'll work.
  18. ../ is one directory up. You should use require() if you're not sure your scripts are being included.
  19. You mean like foreach($myArray as $key => $value) { echo $value[0].'<br />'; }
  20. Well, if you create a table with ID and link, and a page that calls them values from the database, that's all you need. Just point the iframe to that file.
×
×
  • 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.