56 Posted Topics
Re: [CODE] //This is where the problem starts $query="SELECT ACCT_CODE FROM $tbl_name WHERE username='$myusername' and password='$mypassword'"; if($query==0){ {header("location: changepassword.php");} else {header("location:login_success.php");} } //This is where the problem ends else { echo "Wrong Username or Password"; } [/CODE] First of all this part [CODE]$query="SELECT ACCT_CODE FROM $tbl_name WHERE username='$myusername' and password='$mypassword'"; if($query==0){ … | |
Re: I think you would be better off using JQuery to check the form before you pass it to the PHP script. It is better design, easier coding and generally better all round. | |
This is just a little bit of fun, mine would be HFS+ because of the following; [LIST] [*]Seek Speed for files [*]Auto Optimisation [*]Journalling (Although technically HFSJ) but is in HFS+ [/LIST] Dislikes [LIST] [*]Compatibility [*]Slows down when reading many files ( Badly ) [/LIST] | |
Re: Apache is installed on all macs. Do the following: [LIST=1] [*]Open a terminal [*]type "cd /etc/apache2/" [*]type "sudo pico httpd.conf", enter your password when requested [*]find the line #LoadModule php5_module libexec/apache2/libphp5.so and remove the '#' [*]save the file [*]then go to system preferences, sharing and turn on 'Web Sharing' or … | |
Re: Have you checked the permission tables of the database, making sure that the user has access. | |
Re: It might be your apache configuration, sometimes PHP is not enabled. Within the httpd.conf file there is a sections called modules, find the line for loading the PHP module, and remove the '#' at the beginning. Save the file, and restart the web server. This should solve it. However we … |
The End.