[PHP-DB] Re: [PHP] New to PHP Need Help

2002-04-04 Thread Philip Olson
umerated array (numerical) print $row[1]; Or use a function like mysql_fetch_assoc instead: $row = mysql_fetch_assoc($result); print $row['id']; // with id being a column name // selected via the query print $row['name']; And lastly, if you're

[PHP-DB] Re: mysql_fetch_array problem

2001-07-09 Thread Philip Olson
What's your code look like, something like this? $result = mysql_query("SELECT name FROM tablename"); while ($row = mysql_fetch_array($result)) { print "Name : ". $row['name'] . "\n"; } The above is the most standard way at least. Share your appropriate snippet of code, could be a few rea

[PHP-DB] Re: [PHP] printing php variable into html > print $result; ?

2002-01-03 Thread Philip Olson
here: http://www.php.net/manual/en/language.types.resource.php Regards, Philip Olson On Fri, 4 Jan 2002, louie miranda wrote: > Hi, is it possible to print the sql query? i mean > i want to print the output of the command "SELECT * FROM members;" > and output it into html, i

[PHP-DB] Re: recommending a PHP book?

2005-03-15 Thread Philip Olson
Do. Not. Cross. Post. Use ONE mailing list at a time. Please have all further replies to this unfortunate thread go to php-general and only php-general. Regards, Philip -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php