- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
7 Posted Topics
Re: use jquery: [CODE]$(".content").load("file.html");[/CODE] | |
Re: i would say learn javascript before php, javascript makes php allot easyer. ![]() | |
| |
Re: when they login, add true into the online row in the database, then just check if online is true in php. | |
Re: jquery: (not tested but should work) [CODE] if ($(".content").load('page.html')){ //code for file existing } [/CODE] I based this on the fact that the file wont return as true if its not there, but the problem is if the file thats its trying to get returns false it might not work=[ ![]() | |
So, when i click a button my jQuery dosent change the value of the div, this onaly happens in safari in all other browsers it works! Javascript: [CODE]$(document).keypress(function(){ if (event.keyCode==13) key('='); if (event.keyCode==42) key('*','x'); if (event.keyCode==43) key('+','+'); if (event.keyCode==45) key('-','-'); if (event.keyCode==46) key('.'); if (event.keyCode==47) key('/','÷'); if (event.keyCode==48) key(0); if … | |
Re: <?php session_start(); include('connection.php'); $username = $_POST['username']; $password = $_POST['password']; $remember = $_POST['remember']; $sql = ("SELECT * FROM users WHERE username='$username'"); $result = mysql_query($sql); if ($result){ $rows = mysql_fetch_array($result); $passwordx = $rows['password']; if ($password == $passwordx){ $_SESSION[ses_id] = session_id(); $_SESSION[ses_username] = $username; echo "<meta http-equiv='refresh' content='0;url=session.php'>"; } else { echo "รหัสผ่านไม่ถูกต้อง"; … |
The End.