Page 1 of 1

Login Error

Posted: Wed Jul 06, 2005 5:25 pm
by C_Calav
hi guys,

back after a 5 week vacation to my homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
       else 
       cross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
       else 
       { 
       	   echo &quote;&lt;br /&gt;wrong password&quote;; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/ ... ignin.php'); 
       } 
      }   
[/php:1haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or  Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right passing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
       else 
       { 
       	   echo &quote;&lt;br /&gt;wrof Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
      ge it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_P

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
       else 
       { 
       	   echo "<br />wrong password"; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/ ... ignin.php'); 
       } 
      }
a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
       else 
       { 
       	   echo &quote;&lt;br /&gtrom a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&amafter a 5 week vacation to my homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) cation to my homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
     correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quoe of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
       else 
       { 
       	   echo "<br />wrong password"; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/ ... ignin.php'); 
       } 
      }
ddress for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Loe skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
       else 
after a 5 week vacation to my homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] ==n to my homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&ame issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /y homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: &' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
       else 
       { 
       	   echo "<br />wrong password"; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/ ... ignin.php'); 
       } 
      }
sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
       eding a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
       else 
       { 
       	   echo "<br />wrong password"; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/ ... ignin.php'); 
       } 
      }
after a 5 week vacation to my homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
       else 
       { 
       	   echo &quote;&lt;br /&gt;wrong password&quote;; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/ ... ignin.php'); 
 code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
       else 
am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sqafter a 5 week vacation to my homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_paf i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#111after a 5 week vacation to my homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
       else 
   y on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote; homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
       else 
       { 
       	   echo "<br />wrong password"; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/ ... ignin.php'); 
       } 
      }
my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
       else 
       { 
       	   echo "<br />wrong password"; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/ ... ignin.php'); 
       } 
      }
ht' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111; am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quote;;
		header('Location: /admin/admin.php'); 

        	$_SESSION&#1111;&quote;name&quote;] = $username; 
        	$_SESSION&#1111;&quote;loggedin&quote;] = &quote;set&quote;; 
       } 
       else 
       { 
       	   echo &aafter a 5 week vacation to my homeland of Greece. sorry if i am a bit rusty on my code skills!

i am uploading a website from a testing enviroment to the web.

and i am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
       else 
       { 
       	   echo "<br />wrong password"; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/error_siange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST&#1111;&quote;username&quote;]; 
$password = $_POST&#1111;&quote;password&quote;]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die (&quote;Could not select database!&quote; .mysql_error()); 
     
     $sql = &quote;select * from tbl_admin where a_username = '$username'&quote;; 
     $result = mysql_query($sql) or die(&quote;Execution failed: &quote;.mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row&#1111;&quote;a_password&quote;] == $_POST&#1111;&quote;password&quote;]) 
       { 
    	 	echo&quote;&lt;br /&gt; right password&quoi am comming accross a strange issue of a 'blank page' i just got the correct address for the connection string from my hosting company so 'might' have something to do with that.

i also thought id could be to do with my path's of pages so i played around with different paths to the error_signin.php page.

thanx for your help!

this is the page it is 'hanging' up on:

Code: Select all

session_start(); 
ob_start();
     
$username = $_POST["username"]; 
$password = $_POST["password"]; 

$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/','**','**') or die (Could not connect to database);
     
     if (!$db)
     {
     echo 'Error: Could not connect to database.  Please try again laterrrrrr.';
     exit;
     }

     mysql_select_db('survey_steelandtube_co_nz') or die ("Could not select database!" .mysql_error()); 
     
     $sql = "select * from tbl_admin where a_username = '$username'"; 
     $result = mysql_query($sql) or die("Execution failed: ".mysql_error())  

     while ($row=mysql_fetch_array($result)) 
     { 
	   if ($row["a_password"] == $_POST["password"]) 
       { 
    	 	echo"<br /> right password";
		header('Location: /admin/admin.php'); 

        	$_SESSION["name"] = $username; 
        	$_SESSION["loggedin"] = "set"; 
       } 
       else 
       { 
       	   echo "<br />wrong password"; 
 	   header('Location: http://survey.steelandtube.co.nz/admin/ ... ignin.php'); 
       } 
      }

Posted: Wed Jul 06, 2005 5:34 pm
by timvw
$db = mysql_pconnect('http://haydn.2day.com/phpmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
r_reporting', E_ALL);
ini_set('display_errors', TRUE);


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
/warnings...

Code: Select all

ini_set('error_reporti


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
igured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
ide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
ct('http://haydn.2day.com/phpmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
2day.com/phpmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
;
;
ini_set('display_errors', TRUE);
d hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
]he production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('displayct('http://haydn.2day.com/phpmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
com/phpmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
E_ALL);
ini_set('display_errors', TRUE);
pmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
s an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
ct('http://haydn.2day.com/phpmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('dily the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
roduction server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
erver is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
ct('http://haydn.2day.com/phpmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
ct('http://haydn.2day.com/phpmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
myadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
stname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reportict('http://haydn.2day.com/phpmyadmin/'


That's an odd hostname...


Probably the production server is configured to hide errors/warnings...

Code: Select all

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
', E_ALL);
ini_set('display_errors', TRUE);

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);

Posted: Wed Jul 06, 2005 6:00 pm
by C_Calav
thanks for that, it is the first time they are hosting php, so im thinking the problems are on there end.

i will get back to them