Jump to content

codects

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

codects's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That is just soooooooooooo obvious i feel <no words> ... Thank you so very much!
  2. Opps, yeah - they're supposed to be numbered 1, 2, ... etc 'eventually'. Trying first to get the first entry in the db ....
  3. Oh ok ... thanks. Here is the full form <form action="ixxx.php" method="POST"> <table width="84%" border="0"> <tr> <td width="24%">CONTAMINANT</td> <td width="19%">SOIL</td> <td width="19%">SOIL GAS </td> <td width="19%">GROUNDWATER</td> <td width="19%">SURFACE WATER</td> </tr> <tr> <td><select id="contaminant" name="contaminant"> <option>select </option> <option value="benzo(a)pyrene">benzo(a)pyrene </option> <option value="naphthalene">naphthalene </option> <option value="benzene">benzene </option> <option value="ethylbenzene">ethylbenzene </option> <option value="toluene">toluene </option> <option value="xylene">xylene </option> </select></td> <td><input type="text" id="soil" name="soil" /></td> <td><input type="text" id="soilgas" name="soilgas" /></td> <td><input type="text" id="gwater" name="gwater" /></td> <td><input type="text" id="swater" name="swater" /></td> </tr> <tr> <td><select id="contaminant" name="contaminant"> <option>select </option> <option>benzo(a)pyrene </option> <option>naphthalene </option> <option>benzene </option> <option>ethylbenzene </option> <option>toluene </option> <option>xylene </option> </select></td> <td><input id="soil" name="soil" /></td> <td><input id="soilgas" name="soilgas" /></td> <td><input id="gwater" name="gwater" /></td> <td><input id="swater" name="swater" /></td> </tr> <tr> <td><select id="contaminant" name="contaminant"> <option>select </option> <option>benzo(a)pyrene </option> <option>naphthalene </option> <option>benzene </option> <option>ethylbenzene </option> <option>toluene </option> <option>xylene </option> </select></td> <td><input id="soil" name="soil" /></td> <td><input id="soilgas" name="soilgas" /></td> <td><input id="gwater" name="gwater" /></td> <td><input id="swater" name="swater" /></td> </tr> <tr> <td><select id="contaminant" name="contaminant"> <option>select </option> <option>benzo(a)pyrene </option> <option>naphthalene </option> <option>benzene </option> <option>ethylbenzene </option> <option>toluene </option> <option>xylene </option> </select></td> <td><input id="soil" name="soil" /></td> <td><input id="soilgas" name="soilgas" /></td> <td><input id="gwater" name="gwater" /></td> <td><input id="swater" name="swater" /></td> </tr> <tr> <td><select id="contaminant" name="contaminant"> <option>select </option> <option>benzo(a)pyrene </option> <option>naphthalene </option> <option>benzene </option> <option>ethylbenzene </option> <option>toluene </option> <option>xylene </option> </select></td> <td><input id="soil" name="soil" /></td> <td><input id="soilgas" name="soilgas" /></td> <td><input id="gwater" name="gwater" /></td> <td><input id="swater" name="swater" /></td> </tr> <tr> <td><select id="contaminant" name="contaminant"> <option>select </option> <option>benzo(a)pyrene </option> <option>naphthalene </option> <option>benzene </option> <option>ethylbenzene </option> <option>toluene </option> <option>xylene </option> </select></td> <td><input id="soil" name="soil" /></td> <td><input id="soilgas" name="soilgas" /></td> <td><input id="gwater" name="gwater" /></td> <td><input id="swater" name="swater" /></td> </tr> <tr> <td><select id="contaminant" name="contaminant"> <option>select </option> <option>benzo(a)pyrene </option> <option>naphthalene </option> <option>benzene </option> <option>ethylbenzene </option> <option>toluene </option> <option>xylene </option> </select></td> <td><input id="soil" name="soil" /></td> <td><input id="soilgas" name="soilgas" /></td> <td><input id="gwater" name="gwater" /></td> <td><input id="swater" name="swater" /></td> </tr> <tr> <td colspan="5"> </td> </tr> <tr> <td colspan="5"> <input type="submit" value="Save data" /> <input type="submit" value="Compare GAC" /> <input type="submit" value="Compare SSC" /></td> </tr> </table> </form>
  4. Hi guys, thanks for the replies I added and it's still creating empty entries ... The thing is i used the same code for a different page - and it works just fine, could it be because this is in a table and the code is somehow 'confused'?
  5. Thank you ... The form is complete, this was just an excerpt: <form action="xxxx.php" method="post"> </form> It creates entries in the database, but they're all just empty.
  6. Hi, I have a php/mysql form - but the field values are not being inserted into the database, although there are no errors. Here is the code for the form i use: <tr> <td><select id="contaminant" name="contaminant"> <option>select </option> <option>benzo(a)pyrene </option> <option>naphthalene </option> <option>benzene </option> <option>ethylbenzene </option> <option>toluene </option> <option>xylene </option> </select></td> <td><input id="soil" name="soil" /></td> <td><input id="soilgas" name="soilgas" /></td> <td><input id="gwater" name="gwater" /></td> <td><input id="swater" name="swater" /></td> </tr> and the associated php code:<?php $con = mysql_connect("localhost","xxxx","xxxx"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("xxxx", $con); $sql="INSERT INTO xxxx (pid,contaminant,soil, soilgas, gwater, swater) VALUES ('$_POST[pid]','$_POST[contaminant]','$_POST[soil]','$_POST[soilgas]','$_POST[gwater]', '$_POST[swater]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo header("Location: index.php"); mysql_close($con) ?> and the SQL code +-------------+---------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+---------------+------+-----+---------+----------------+ | pid | int(11) | NO | PRI | NULL | auto_increment | | contaminant | varchar(30) | NO | | NULL | | | soil | decimal(10,6) | NO | | NULL | | | soilgas | decimal(10,6) | NO | | NULL | | | gwater | decimal(10,6) | NO | | NULL | | | swater | decimal(10,6) | NO | | NULL | | +-------------+---------------+------+-----+---------+----------------+ I don't know what i'm missing - please help?
  7. I use openSUSE 11.1 on Advent 4211. You only have to tweak the resolution and wifi a bit, and bluetooth doesnt seem to work with kde4. Otherwise, everything works just perfect. Excellent installation and tweak instructions on both MSI website http://wiki.msiwind.net/index.php/OpenSuse_11.0#After_installation and openSUSE website.
  8. OK - Sorry. Will repost elsewhere.
  9. hi, Already posted this in the help section and been told its the wrong forum, so i hope this is the right one ... Im trying to install phlips on windows, following the instructions from the documentation http://phlips.sourceforge.net/documentation.php, but it's just not working I keep getting config error: Quote ./configure: line 2791: php-config: command not found configure: error: Cannot find php-config. Please use --with-php-config=PATH I then use this: Quote > ./configure --with-php-config=/etc/php5/apache2/php.ini And i get these errors: Quote checking if compiler supports -Wl,-rpath,... yes /etc/php5/apache2/php.ini: line 1: : command not found /etc/php5/apache2/php.ini: line 3: syntax error near unexpected token `;;' /etc/php5/apache2/php.ini: line 3: `;;;;;;;;;;;;;;;;;;;' configure: error: Cannot find php-config. Please use --with-php-config=PATH Anyone has a clue what to do please?hi, im trying to install phlips on windows, following the instructions from the documentation http://phlips.sourceforge.net/documentation.php, but it's just not working I keep getting config error: Quote ./configure: line 2791: php-config: command not found configure: error: Cannot find php-config. Please use --with-php-config=PATH I then use this: Quote > ./configure --with-php-config=/etc/php5/apache2/php.ini And i get these errors: Quote checking if compiler supports -Wl,-rpath,... yes /etc/php5/apache2/php.ini: line 1: [code=php:0]: command not found /etc/php5/apache2/php.ini: line 3: syntax error near unexpected token `;;' /etc/php5/apache2/php.ini: line 3: `;;;;;;;;;;;;;;;;;;;' configure: error: Cannot find php-config. Please use --with-php-config=PATH Anyone has a clue what to do please?
  10. hi, im trying to install phlips on windows, following the instructions from the documentation http://phlips.sourceforge.net/documentation.php, but it's just not working I keep getting config error: I then use this: And i get these errors:
×
×
  • 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.