Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. trq

    What is ::

    They allow you to access the static properties & methods of a class.
  2. Of course its possible. I would start by learning how to use curl to login to another site.
  3. Hopefully not for that much longer. html5 is coming!
  4. stripslashes is not needed on the way out if your data is properly escaped on the way in. The escape chars are only there to get the data into a valid query.
  5. $user_string = "'". implode("','", $user_id) . "'"; The error is quite clear, $user_id is not an array.
  6. There is nothing syntactically wrong with the function.
  7. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=313639.0
  8. You might want to trim the returned value of whitespace. if (xmlhttp.responseText.replace(/^\s*/, "").replace(/\s*$/, "") == "success") { document.getElementById("abcd").innerHTML = "success"; loadXML(2); }else{ document.getElementById("abcd").innerHTML = "Error"; }
  9. You still have [] around host and your path. mysqldump --opt -Q -h host --user=user --password=password database | gzip -v9 - > /home/content/a/l/m/almo10000/html/casting-call-db/_DailyBackups/MySQL-`/bin/date +\%a`.sql.gz
  10. Actually, having another look at your code, it looks like you very much attempted to do so, you just have syntax errors. if ($numresults=mysql_query($query)) { if (mysql_num_rows($numresults)) { // successfullu use $numresults } else { // no results found } } else { // query failed }
  11. Or use a well established framework. That's a difference, .Net is a framework not a language itself.
  12. host, user, password & database and your path aren't actually surrounded by [] are they? They shouldn't be.
  13. Also, remove all the [] from your processing code. foreach($_POST['name'] as $row=>$name_) { $name=mysql_real_escape_string($name_); $empno=mysql_real_escape_string($_POST['empno'][$row]); $start=mysql_real_escape_string($_POST['start'][$row]); $end=mysql_real_escape_string($_POST['end'][$row]); $comment=mysql_real_escape_string($_POST['comment'][$row]);
  14. You need to execute the queries within the loop as well.
  15. Obviously the mail function is failing. Have you tried sending a simple email? Do you have a mail server configured?
  16. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=313584.0
  17. Whatever this script is meant to do, I'd find another one. This is some of the worst code I've seen in a long while.
  18. You'll need to post your PHP code in the PHP Help forum. You should really look into moving your css out of your markup as well.
  19. In your code, where you have "/enquiry.php", you need to put the code contained within enquiry.php there. Making another request is a waste of resources.
  20. <?php file_put_contents('file.html', file_get_contents('http://example.com/file.html')); ?>
  21. Your ajax request isn't failing so checking your http status won't help you. You need to send back an appropriate error message.
  22. mysql_fetch_assoc expects a valid result resource, you need to check that $numresults is not falase (which is a bool) before trying to use it.
  23. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=313606.0
×
×
  • 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.