Changeset 198 for trunk/registrace.php
- Timestamp:
- Jun 5, 2009, 6:44:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/registrace.php
r138 r198 18 18 if($Pass == $Pass2) 19 19 { 20 $Line = mysql_fetch_row($Database->SQLCommand( "SELECT * FROM user WHERE user = '$User'"));20 $Line = mysql_fetch_row($Database->SQLCommand('SELECT * FROM user WHERE user = "'.$User.'"')); 21 21 if(!$Line) 22 22 { … … 30 30 $_SESSION['Pass'] = $Pass; 31 31 32 $Line = mysql_fetch_array($Database->SQLCommand( "SELECT ID FROM user WHERE user = '".$_SESSION['User']."'"));32 $Line = mysql_fetch_array($Database->SQLCommand('SELECT ID FROM user WHERE user = "'.$_SESSION['User'].'"')); 33 33 $_SESSION['UserID'] = $Line['ID']; 34 34 WriteLog('Uživatel se zaregistroval: '.$User, 3); … … 75 75 '); 76 76 $ID = $Database->SQLCommand('SELECT name,ID FROM team'); 77 while($Line = mysql_fetch_assoc($ID)) { 77 while($Line = mysql_fetch_assoc($ID)) 78 { 78 79 echo('<option value="0'.$Line['ID'].'">'.$Line['name'].'</option>'); 79 } 80 81 80 } 82 81 echo('</select></td> 83 82 </tr>
Note:
See TracChangeset
for help on using the changeset viewer.