Jump to content

phpNoobee

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

phpNoobee's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. And my SQL Table Schema: [code]CREATE TABLE `view_bids` (   `col_id` varchar(0) NOT NULL,   `parent` varchar(0) NOT NULL,   `date_scrapped` varchar(0) NOT NULL,   `item_number` varchar(0) NOT NULL,   `title` varchar(0) NOT NULL,   `description` varchar(0) NOT NULL,   `url` varchar(0) NOT NULL,   `max_bid` varchar(0) NOT NULL,   `currency` varchar(0) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;[/code] That is the code i am using and also the table in the db
  2. hello, what is wrong with this code: [code] function db_insert() { $title = mysql_real_escape_string($title); $desc = mysql_real_escape_string($desc); $url = mysql_real_escape_string($url); $maxBid = mysql_real_escape_string($maxBid); $sql = "INSERT INTO view_bids(col_id, parent, date_scrapped, item_number, title, description, url, max_bid, currency) VALUES (0, '', '', 0, '$title', '$description', '$url', '$max_bid', '$mkg')"; mysql_query($sql); $title = ''; $description = ''; $url = ''; $max_bid = ''; $currency = ''; }[/code] it wont insert when i click a button to the db.
×
×
  • 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.