Re: how can i get field-informationof a table?

From: Date: Fri, 24 May 2002 09:09:54 +0000
Subject: Re: how can i get field-informationof a table?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-19414@lists.php.net to get a copy of this message
use the function mysql_list_fields in url http://www.php.net/manual/en/function.mysql-list-fields.php Cheers Steve "Hermann Otteneder" <h.otteneder@gerstl.at> wrote in message news:20020524085611.69085.qmail@pb1.pair.com... > hi, > i'm using a mssql-database. now i want update a record with the information > given in a form. i want use the following sql statement: > $SQL = "update <tablename> set '<fieldarray[$index]>' = > 'HTTP_POST_VARS[$index]' WHERE PKID = 'HTTP_POST_VARS[0]'"; > mssql_query($SQL); > > my problem is i cannot find a function which gives me an array of the fields > of a table -> <fieldarray[$index]> > > I guess this is for sure very simple - haves anyone the solution? i would be > very thankfuly for this! > > lg hermann > >

« previous php.db (#19414) next »