ok, replacing that with your first suggestion so my code looks like this: $sql="INSERT INTO ". LINKS_TABLE ." (link_category_id, link_name, link_url, link_time, link_poster_ip, link_poster_id, link_poster_username, link_text) VALUES ('$category_id',' $subject', '$url', '$current_time'...