Re: lenght of a record

From: Date: Fri, 28 Sep 2001 11:11:22 +0000
Subject: Re: lenght of a record
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-12815@lists.php.net to get a copy of this message
hi huh ? do ya mean this ? $result = mysql_query($sql, $conn); $num = mysql_num_rows($result); for($i=0; $i<$num; $i++) { $somcol = mysql_result($result, $i, "somecol"); print $somecol; } Best regards Attila Strauss > how can i get the length of a record: > to make something like this: > > $result=mysql_query($sql,$conn); > $row=mysql_fetch_row($result); > for($i=0;$i<record_length;$i++) > { > echo $row[$i]; > } > > i need it like this as i don't want to use mysql_fetch_array > > > > ------------------------------------------------------------ > ------------------------------------------------------------ > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#12815) next »