Jump to content

scootstah

Staff Alumni
  • Posts

    3,858
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by scootstah

  1. ciaobellaphotography.us - memory is around ~78,000-83,000K, CPU peaks at about 24% briefly, Javascript memory is ~13,000K ciaobellaphotography.us/index2.php - memory is around ~46,000-58,000K - CPU peaks at 18-20% briefly, Javascript memory is ~8,000K So, it looks like index2.php performs a tiny bit better. As far as unresponsiveness or any visual lag, I don't notice any between the two on my machine.
  2. You could just do if ($is_num !== "")
  3. It shouldn't if it is declared outside the function first. That's true for Javascript, but not PHP. To make it work the way you are saying, you'd have to use global.
  4. This topic has been moved to CSS Help. http://forums.phpfreaks.com/index.php?topic=363084.0
  5. You need to remove float: left; from the li styling.
  6. Huh? Your link doesn't work.
  7. You didn't specify a database user.
  8. Please put code in tags. 1. So, what is the output? 2. Is there an error perhaps? Do you have error reporting on? Are you using Apache?
  9. Where are $errors and $typecheck defined?
  10. Use JSON in the jQuery AJAX methods with "post" as the type. Then the $_POST array will be made up from the JSON keys. var name = $('input[name="name"]').val(), email = $('input[name="email"]').val(), address = $('input[name="address"]').val(); $.ajax({ url: example.com, data: { name: name, email : email, address : address }, type: "post" }); $_POST will look like: $_POST = Array ( 'name' => 'bob', 'email' => '[email protected]', 'address' => '123 someplace' )
  11. That wouldn't do anything, since $cmin is already greater than $cmax.
  12. Remove the $. echo cField(0,999999,500);
  13. Really? Do you really think you are going to get help with that kind of douchey attitude? You have been given the correct answer in the first reply. PHP is not obfuscated, it is plain-text. Anyone can remove the credits. Anyone can remove the code that safeguards the credits. It doesn't matter if your client knows PHP or not; it's not too hard to either figure out how to remove something like that or to find someone else who will. So in short: either get paid, or get a contract that makes it illegal to remove the credits. Then run a script on your own server that pings the client's website to make sure the credits are still there.
  14. This one too: http://www.sitepoint.com/hierarchical-data-database/
  15. No, it is an array - use loops. foreach($features_car as $car) { echo '<td style="width:33%">' . $car . '</td>'; }
  16. Why can't you? If you can access $typeofvehicle_category_15 then you can access $typeofvehicle_category[15], which is a much better solution.
  17. Yes.
  18. scootstah

    Loader

    Define loader.
  19. Get rid of value="$size1" <?php echo $size1; ?> inside the select tag. It should just be <select name="size1">
  20. As long as you're using something like PayPal to process the cards, you should be okay. But, don't store any card information on your own servers. If you have to ask, you don't have the experience to do that safely.
  21. You'd probably want to use JOIN's here.
  22. What is the error?
  23. http://www.sitepoint.com/hierarchical-data-database/ http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/
  24. If you are retrieving from a database you need to be using PHP, not Javascript.
×
×
  • 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.