Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. drmsolutions

    Update database with value from listbox (function)

    The values are coming from a seperate table (ctitle) which contains a list of titles (Mr, Mrs, Miss etc). The function goes off and gets those and "selects" the one that matches the 'title' in the customer record. So what I'm trying to do is allow the user to change the title listed in the...
  2. drmsolutions

    Update database with value from listbox (function)

    Actually it gives a value of 'array' too, not 0
  3. drmsolutions

    Update database with value from listbox (function)

    Thanks for your help sleipnir, When I put $_POST[$options['title']] I got the error: Parse error: parse error, unexpected '[' in update.php on line 501 Which makes me think I should be using $_POST$options['title'] but that sets the value to 0 (seems $options['title] doesn't have a value...
  4. drmsolutions

    Update database with value from listbox (function)

    I have the following function to create a listbox which is used several times in my scripts for differnt listboxes: function enhanced_list_box($options){ $sql = "select " . $options['id_field']; $sql .= ", " . $options['value_field']; $sql .= " from " . $options['table']...
  5. drmsolutions

    value not getting passed to function variable

    That was it!! Thanks so much...this one had me stumped for a while...
  6. drmsolutions

    value not getting passed to function variable

    Hi there, I'm passing values to a function, but am finding the value of 'highlight_id' below is not set. I'm only new to PHP so am thinking I've done something wrong, but can't work out what? <? enhanced_list_box(array( table' => 'ctitle', 'id_field' => 'id', 'value_field'...

Part and Inventory Search

Back
Top