- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
Hi Sir Suala, It seems to me that the break command will cause the echo to be skipped every time.
I am also new to php but the following code works for me. [code=php] $sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if($count>0){ session_register("myusername"); session_register("mypassword"); $_SESSION['current_username']=$myusername; $row = mysql_fetch_array($result); $check=$row['ACCOUNT_CODE']; if($check == '0'){ header("location: defaultmember.html"); } else{ header("location: premiummember.html"); } } //other codes below this comment line works …
Any ideas on detecting the current version of the MySQL ODBC driver? Currently I am reading the registry to obtain the version: [code=delphi] Function MySQLVersion:String; Var TR : TRegistry; SL : TStringList; I : Integer; Begin Result := 'ODBC 3.51'; // Default version SL := TStringList.Create; TR := TRegistry.Create; TR.RootKey …
Is there a way in Delphi to open the windows login dialog and (if the user logs in ok) retrieve the user name? Have done much searching on the web without success. Thanks
The End.
KenAs