Changeset 1836027
- Timestamp:
- 03/08/2018 08:19:43 AM (8 years ago)
- File:
-
- 1 edited
-
odlinks/trunk/odl_posts.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
odlinks/trunk/odl_posts.php
r1034341 r1836027 149 149 } 150 150 if ($makepost==true){ 151 mysql_query("INSERT INTO {$table_prefix}odnew_links (n_url, n_title, n_description, n_email, n_category) VALUES ('$url', '$title', '$description', '$email', $category)"); 151 $sql = "INSERT INTO {$table_prefix}odnew_links (n_url, n_title, n_description, n_email, n_category) VALUES ('$url', '$title', '$description', '$email', $category)"; 152 $wpdb->query($wpdb->prepare($sql)); 152 153 $msg = $odl_lang['ODL_SUBMITTED'] . "<P>"; 153 154 $out=_odl_email_notifications($url, $title, $description, $email, $category); … … 339 340 if ($makepost==true){ 340 341 $sql = "UPDATE {$table_prefix}odlinks SET l_url='$url',l_title='$title',l_description='$description',l_author_mail='$email',l_c_id=".$category." WHERE l_id=".$id; 341 mysql_query($sql);342 $wpdb->query($wpdb->prepare($sql)); 342 343 343 344 $msg = $odl_lang['ODL_SUBMITTED'] . "<P>";
Note: See TracChangeset
for help on using the changeset viewer.