Re: [PHP-DB] Select a table inside a db

2002-12-24 Thread Michal Stankoviansky
z> mysql_query("INSERT INTO news (author, posted, body) VALUES($author, z> $posted, $body) "); I don't really know what the problem is, but you definitely need to include quotation marks around the variables: mysql_query("INSERT INTO news (author, posted, body) VALUES('$author', $posted

Re: [PHP-DB] Select a table inside a db

2002-12-24 Thread Jason Wong
On Wednesday 25 December 2002 00:10, zeroked wrote: > Hi I am a newbie to PHP so please help > > How do I add information into my mysql db? > I have a db called sitedb and I want to insert datat into my news table > inside my sitedb. Merry Christmas. You forgot to say what the problem is. -- Jas

[PHP-DB] Select a table inside a db

2002-12-24 Thread zeroked
Hi I am a newbie to PHP so please help How do I add information into my mysql db? I have a db called sitedb and I want to insert datat into my news table inside my sitedb. code snippet: Untitled Document NAME your news -- PHP Database Mailing List (http://w