Changeset 499 for trunk/dictionary.php
- Timestamp:
- Jan 30, 2013, 10:34:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dictionary.php
r466 r499 115 115 $DbRow = $DbResult->fetch_row(); 116 116 $Entry = $DbRow[0] + 1; 117 $System->Database->query('INSERT INTO `Dictionary` ( `Text` , `Entry` , `Description` , `User`, `Language` ) VALUES ("'.$_POST['Original'].'", "'.$Entry.'", "", 0, 0);');117 $System->Database->query('INSERT INTO `Dictionary` ( `Text` , `Entry` , `Description` , `User`, `Language` ) VALUES ("'.$_POST['Original'].'", "'.$Entry.'", "", NULL, 0);'); 118 118 } 119 119 … … 137 137 $DbResult = $System->Database->query('SELECT * FROM `Dictionary` WHERE `User`='.$User->Id.' AND `Entry`='.$_GET['entry'].' AND `Language`='.$_SESSION['language']); 138 138 $DbRow = $DbResult->fetch_assoc(); 139 $DbResult = $System->Database->query('SELECT * FROM `Dictionary` WHERE `User`=0 AND `Entry`='.$_GET['entry'].' AND `Language`=0');139 $DbResult = $System->Database->query('SELECT * FROM `Dictionary` WHERE (`User` IS NULL) AND (`Entry`='.$_GET['entry'].') AND (`Language`=0)'); 140 140 $DbRow2 = $DbResult->fetch_assoc(); 141 141 echo('<form action="dictionary.php?action=save" method="post">'. 142 142 '<fieldset><legend>Upravení slova</legend>'. 143 '<input type="hidden" name="entry" value="'.$_GET['entry'].'"/>'. 143 144 '<table><tr><td>'. 144 145 'Původní anglické slovo:</td><td><input type="text" name="Original" value="'.$DbRow2['Text'].'" /></td></tr>'.
Note:
See TracChangeset
for help on using the changeset viewer.