Jump to content

[SOLVED] url to database help please


dtdetu

Recommended Posts

hello i am trying to add a url to database but it gives this error, it works for simple urls but now with this one

 

SubmittingYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1', 'http://hosted.ap.org/dynamic/stories/W/WHITE_HOUSE_BARNEY_CAM?SITE=RIPRJ&SE' at line 1

Link to comment
https://forums.phpfreaks.com/topic/137091-solved-url-to-database-help-please/
Share on other sites

yes here it is

 

 $r[url] = mysql_real_escape_string($r[url]);
    $newq=mysql_query("INSERT INTO `dizzedc_dizzed`.`pligg_links` (`link_id`, `link_author`, `link_status`, `link_randkey`, `link_votes`, `link_reports`, `link_comments`, `link_karma`, `link_modified`, `link_date`, `link_published_date`, `link_category`, `link_lang`, `link_url`, `link_url_title`, `link_title`, `link_title_url`, `link_content`, `link_summary`, `link_tags`, `link_field1`, `link_field2`, `link_field3`, `link_field4`, `link_field5`, `link_field6`, `link_field7`, `link_field8`, `link_field9`, `link_field10`, `link_field11`, `link_field12`, `link_field13`, `link_field14`, `link_field15`, `link_editor_pick`) VALUES (NULL, '$sender', 'published', '7500757', '1', '0', '0', '1.00', NOW(), NOW(), NOW(), '1, '1', '$r[url]', '$r[title]', '$r[title]', '$urlnew', '$r[description]', '$r[description]', NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '1')") or die(mysql_error());

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.