Hi
Your question is not clear. 1. You can't get result without fetch result. a. mysql_query or mysqli_query or etc. b. if (mysql_num_rows($resource)) or if(mysqli_num_rows($resource)) c. mysql_fetch_array or mysql_fetch_result or etc.. Thanks, Muthukumar Selvarasu, Project Manager (Web Development), Webmasters Ltd. _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Israel Sent: Monday, December 31, 2007 6:32 AM To: [email protected] Subject: [php-list] PHP/MySQL question Hi all, Happy New Year. I'm working on an application and had a couple of related PHP/MySQL questions. 1. When I do a MySQL query, is there a way to get the returned columns in the query without fetching a row? Currently, what I'm doing is fetching a row of data and getting the keys from the array. I'd like to do it without fetching the row. Is this possible? 2. If #1 above is indeed possible, is this only possible when I get returned rows or can I do it when there are no matching rows in the query? Thanks for any help! -D. Israel [EMAIL PROTECTED] <mailto:dan%40ebji.org> http://www.customco <http://www.customcodebydan.com> debydan.com AIM: JudoDanIzz [Non-text portions of this message have been removed]
