Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. If it is left "Public", can anyone tamper with it? TomTees It can be executed (and will instantiate the object), and it can also be overridden.
  2. Making the __construct private means you won't be able to instantiate the class into an object.
  3. PHP can be used for allot more than server-side web applications though don't foget.
  4. trq

    i386 on x64 system?

    Indeed.
  5. Whenever you have an opening double quote, you need a closing double quote. Same goes for single quotes. If you open with a single, you need to close with a single.
  6. echo json_encode($row);
  7. Your mixing single and double quotes.
  8. You can't echo an array. Instead, send it as a json object which can easily be used by Javascript. json_encode
  9. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=311125.0
  10. This.... $_SESSION['hosts[0][0]'] = "hosta"; creates a single dimension array with the key of 'hosts[0][0]' You woould access that via.... $x=0;echo $_SESSION["hosts[$x][0]"]; To create a multi-dimensional array (as you almost got right in your previous post) would be.... $_SESSION['hosts'][0][0] = "hosta"; Then to access it.... $x=0;echo $_SESSION['hosts'][$x][0];
  11. trq

    i386 on x64 system?

    698G sounds about right for a 750G drive. There always smaller than advertised because your system will measure them with 1024M in a gig while the size written is usually rounded to 1000M in a gig.
  12. Your query is poorly formed, you should be getting an error. Your query should be.... $query = "INSERT INTO practice_user (name, email, `password`, location, dob, category, join_date) VALUES ('$name', '$email', '$password', '$location', '$dob', '$category', NOW())"; Make sure you also escape any user inputed data using mysqli_real_escape_string.
  13. Variables are not interpolated within single quotes. Your also not creating a multi-dimensional array if that is indeed how you are accessing it.
  14. 1) Do you mean when you store it? Hash it. See md5 2) You would need to create a method that returns either both of them, or a method for each. 3) The names of the params do not matter. 4) Not unless you create the methods mentioned in #2.
  15. This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=311119.0
  16. trq

    i386 on x64 system?

    I'm not 100% sure, but I'm pretty sure it is the case. 2G might not be the number though. Ive been using x64 for at least 3 years without issue. Surely there is an x64 version of this OS you are installing?
  17. Facebook provides its own api for doing this type of stuff & much more.
  18. trq

    i386 on x64 system?

    Does the new beta not come in a 64bit version? The only other con I can think of is that you may not have access to ram above around 2G. It will likely be easier and more reliable to reinstall from scratch to move from i386 to x64. In theory, it should be possible but it would be a massive task.
  19. You'll want to look into using an SQL JOIN. There is a tutorial on the main site that covers there usage.
  20. I actually have inside information about this server (there are other threads around/ I spoke to ProjectFear on irc) and the Apache server is running as www-data:www-data.
  21. Apache accesses the files as www-data.
  22. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=310984.0
  23. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=310954.0
  24. Have you seen the first line of your script?
  25. Within a function 'this' has different meaning. You will need to retrieve the value outside of your success() callback.... $(document).ready(function() { $(".attendance-box").change(function() { var id = $(this).attr('id'); var val = $(this).val(); $.ajax({ type: "POST", url: "ajaxpages/attendance/send_attendance.php", data: { student_id: val }, cache: false, success: function(html) { alert(val); $('#message').html('attendance sent'); } }); }); });
×
×
  • 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.