Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~1K People Reached
Favorite Tags

4 Posted Topics

Member Avatar for smoothe19

Hi Sir Suala, It seems to me that the break command will cause the echo to be skipped every time.

Member Avatar for Member #120589
0
206
Member Avatar for marcus03

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 …

Member Avatar for marcus03
0
704
Member Avatar for KenAs

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 …

0
124
Member Avatar for KenAs

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

Member Avatar for KenAs
0
89

The End.