Re: need help with "SHOW Colums"

From: Date: Fri, 01 Nov 2002 01:08:33 +0000
Subject: Re: need help with "SHOW Colums"
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-22868@lists.php.net to get a copy of this message
$table="user"; > > $query = " SHOW COLUMNS FROM $user "; > > > > $result = mysql_query ( $query ) or die( mysql_error () ); > > > > while ( $row = mysql_fetch_array ($result) ){ > > > > $x = 0 ;// i don't know what you're trying to do here, but it's wrong!! It keeps resetting$x to zero and does nothing with the update > > > > echo $row[$x] ; > > > > $x++ ;// > > }

« previous php.db (#22868) next »