DW Php update form where one field is menu from another table

This is a discussion on DW Php update form where one field is menu from another table within the PHP General forums, part of the PHP Programming Forums category; I'm using Dreamweaver's "Update Record" form wizard to create a record update page. Most of the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2003
Robb Kerr
 
Posts: n/a
Default DW Php update form where one field is menu from another table

I'm using Dreamweaver's "Update Record" form wizard to create a record
update page. Most of the fields are "text", one is "file" and I want one of
them to be a "menu". The "menu" field should be populated with the fields
of another table.

Here's the problem... If I leave all of the fields as text input fields,
the form works fine. But, as soon as I change the "manufacturers" field to
a drop-down menu populated with entries from another table, I get the
following error when accessing the page...

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in
/home/s/k/user992816/html/RobesonWeb/admin/adminEditSpecials.php on line
106

line 106 reads...

<option value="<?php echo $row_rs_RobesonWebManufacturer['manufacturer']?>"
<?php if (!(strcmp($row_rs_RobesonWebManufacturer['manufacturer'],
"$row_rs_RobesonWebSpecials[\'manufacturer\']"))) {echo "SELECTED";}
?>><?php echo $row_rs_RobesonWebManufacturer['manufacturer']?></option>

Needless to say, this line is embedded in this Php code to create the
drop-down menu...

<select name="manufacturer">
<?php
do {
?>
<option value="<?php echo
$row_rs_RobesonWebManufacturer['manufacturer']?>" <?php if
(!(strcmp($row_rs_RobesonWebManufacturer['manufacturer'],
"$row_rs_RobesonWebSpecials[\'manufacturer\']"))) {echo "SELECTED";}
?>><?php echo $row_rs_RobesonWebManufacturer['manufacturer']?></option>
<?php
} while ($row_rs_RobesonWebManufacturer = mysql_fetch_assoc
$rs_RobesonWebManufacturer));
?>
</select>

What's up? These "drop-downs from another table" work fine in "Add" forms.
They just seem to crap out in "Update" forms. Attached is the entire page
for consulting.

Thanx,

--
Robb Kerr
Digital IGUANA
Helping Digital Artists Achieve their Dreams
http://www.digitaliguana.com
http://www.cancerreallysucks.org
Reply With Quote
  #2 (permalink)  
Old 11-08-2003
Zerof
 
Posts: n/a
Default Re: DW Php update form where one field is menu from another table

Try: news://forums.macromedia.com
macromedia.dreamweaver.
----------------------
zerof
----
"Robb Kerr" <rkerr@digitaliguana.com> escreveu na mensagem
news:136zz1sehzmf4.15zi8yiqusxbp.dlg@40tude.net...
> I'm using Dreamweaver's "Update Record" form wizard to create a record
> update page. Most of the fields are "text", one is "file" and I want one of
> them to be a "menu". The "menu" field should be populated with the fields
> of another table.

----------------
Reply With Quote
  #3 (permalink)  
Old 11-09-2003
Robb Kerr
 
Posts: n/a
Default Re: DW Php update form where one field is menu from another table

Thanx. I placed there as well, but wasn't getting any responses so thought
I'd try this group as it has been invaluable in the past.

Finally got a response on the Macromedia group so I'll try that suggestion.

--
Robb Kerr
Digital IGUANA
Helping Digital Artists Achieve their Dreams
http://www.digitaliguana.com
http://www.cancerreallysucks.org
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:04 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0