Changeset 30814 for extensions
- Timestamp:
- Dec 23, 2014, 9:15:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AddInfo/admin/admin.php
r30813 r30814 63 63 if (pwg_db_num_rows($result)) { 64 64 while ($info = pwg_db_fetch_assoc($result)){ 65 $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo1.',"'. $info['info1'].'");';65 $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo1.',"'.htmlspecialchars($info['info1']).'");'; 66 66 pwg_query($q); 67 $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo2.',"'. $info['info2'].'");';67 $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo2.',"'.htmlspecialchars($info['info2']).'");'; 68 68 pwg_query($q); 69 $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo3.',"'. $info['info3'].'");';69 $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo3.',"'.htmlspecialchars($info['info3']).'");'; 70 70 pwg_query($q); 71 71
Note: See TracChangeset
for help on using the changeset viewer.