![]() |
Alexey admin 7/28/2006 |
Hi, $strSQLExists = "select * from dbo.WEBUsers where Username='".$_SESSION[UserID]."' and CustomerID='125'"; |
P
|
pdherring author 7/28/2006 |
thanks for that unfortunatly it still doesnt work |
![]() |
Alexey admin 7/28/2006 |
I'm sorry, here is the correct line: $strSQLExists = "select * from dbo.WEBUsers where Username='".$_SESSION["UserID"]."' and CustomerID='125'";
|
P
|
pdherring author 7/28/2006 |
dosnt work im afraid just takes me straight to the main page rather than redirecting me to the http://www.google.co.uk that i am using for testing, |
![]() |
Alexey admin 7/31/2006 |
Pete, function AfterSuccessfulRegistration() { //** Check if specific record exists **** global $conn; global $strUsername; $strSQLExists = "select * from dbo.WEBUsers where Username='".[b]$strUsername[/b]."' and CustomerID='125'"; $rsExists = db_query($strSQLExists,$conn); $data=db_fetch_array($rsExists); if($data) { // if record exists do something //** Redirect to another page **** header("Location: http://www.google.co.uk");;) exit(); } else { // if dont exist do something else } } |
P
|
pdherring author 7/31/2006 |
thats great guys and girls thanks for you help. |