56 Posted Topics

Member Avatar for marcus03

[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){ …

Member Avatar for mikulucky
0
80
Member Avatar for shielaolid

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.

Member Avatar for mikulucky
0
118
Member Avatar for mikulucky

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]

Member Avatar for thines01
0
133
Member Avatar for geekme

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 …

Member Avatar for mikulucky
0
133
Member Avatar for akhtar.ali803
Member Avatar for phorce
0
167
Member Avatar for blee93

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 …

Member Avatar for mikulucky
0
398

The End.