Jump to content

slate

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

slate's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. slate

    n00b question

    Show me lines 10-25 of forum.php please
  2. Figured it out myself... There\'s a bug in mysql (according to mysql.com) so I have to do this: $valsToInsert = \"\"; if ($point_id != \"\") { $valsToInsert = $valsToInsert . \"\'$point_id\'\"; } else { $valsToInsert = $valsToInsert . \"NULL\"; } for each $string i need to check it.
  3. slate

    n00b question

    CREATE DATABASE your_db; CREATE TABLE `yourtable` ( `code` INT(9) NOT NULL AUTO_INCREMENT, `parentcode` INT(9) NULL , `title` VARCHAR(30) NULL , `description` VARCHAR(30) NULL , `uname` VARCHAR(30) NULL , `email` VARCHAR(30) NULL , UNIQUE ( `code` ) );
  4. In this piece of a line of code: $result = sql_query(\"INSERT INTO map_points VALUES (\'$point_id\', \'$point_title\', \'$point_desc\', etc... it $point_title is empty (null) in the form, and the default value is NULL, why is it being inserted as 0 into the database?
×
×
  • 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.