Analysis of your Keirsey Temperament Sorter Results.
The overall results shown are the averages of everybody's results.
include('/usr/home/spod/dbstuff/spods_r_connect.inc');
$query="select EI,SN,TF,JP from keirsey_p";
$result=mysql_query($query);
$bars=1;
$time[1]="Overall";
$E[1]=100-round(10*(mysql_result($result,0,"EI")));
$S[1]=100-round(5*(mysql_result($result,0,"SN")));
$T[1]=100-round(5*(mysql_result($result,0,"TF")));
$P[1]=round(5*(mysql_result($result,0,"JP")));
#if user logged on / details passed over, populate variables.
#else put in prompt to put in username / psw
if (isset($ssepsosdison)||(!$email==""))
{
if (isset($ssepsosdison))
{
$email=$ssepsosdison;
$psw=$sppaosdss;
}
else
{
$psw=crypt($psw,"sn");
}
$query = "SELECT id FROM users WHERE (email='$email' AND password='$psw')";
$result = MYSQL_QUERY($query);
$rows = mysql_num_rows($result);
if ($rows==0)
{
print "Your email / password have not been typed in correctly or you";
print "have not Registered yet";
print " |