RE: [PHP] Maybe a stupid question but can it be done?
| From: | Peter Houchin | Date: | Tue, 24 Sep 2002 03:48:58 +0000 |
| Subject: | RE: [PHP] Maybe a stupid question but can it be done? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117365@lists.php.net to get a copy of this message | ||
if the 2 tables have the same name can't he just go
INSERT INTO table1, table2 (table1.name=$name, table2.name=$name ... blah);
think u can do that .. but again that relies on table names being the same i
guess...
> -----Original Message-----
> From: John Holmes [mailto:holmes072000@charter.net]
> Sent: Tuesday, 24 September 2002 12:21 PM
> To: 'Chuck "PUP" Payne'; 'PHP General'
> Subject: RE: [PHP] Maybe a stupid question but can it be done?
>
>
> Just run two inserts. You can't do it with just one.
>
> I'd have to guess you have design issues if you have to do this
> anyhow...
>
> ---John Holmes...
>
> > -----Original Message-----
> > From: Chuck "PUP" Payne [mailto:cepayne@magidesign.com]
> > Sent: Monday, September 23, 2002 9:45 PM
> > To: PHP General
> > Subject: [PHP] Maybe a stupid question but can it be done?
> >
> > Ok, Let's try this again, for some reason this didn't post from early
> > today.
> >
> > I have db that has two tables that I am needing to post the same
> > information
> > into both tables, I can't use ID. So I am want to see if there is a
> sql
> > statement that will let me or how I can do with a php page.
> >
> > I am sorry to ask, I have looked around to see if there any on the net
> or
> > in
> > my mysql and php books but this seems like a weird task.
> >
> > Chuck Payne
> > Magi Design and Support
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>