|
-
May 24th, 2005, 05:17 PM
#1
Thread Starter
Addicted Member
Stupid Question [RESOLVED]
I have a stupid question.....
how do I get the value of a field to display? There is only one record in the table and always will be, I am using an SQL statement to pull the info. But when I try and display it on my page it says Resource id #5 instead of the value of the field? But the query works fine when i do it in MySQL so I think my code must be wrong.
Here is my code:
VB Code:
$getDate="SELECT WeekText FROM viewcal";
$resultDate = mysql_query($getDate) or die(mysql_error());
while ($getDate2 = mysql_fetch_array($resultDate)) {
echo $resultDate;
}
Last edited by espylacopa; May 24th, 2005 at 05:54 PM.
Things fall apart which the center cannot hold...
-
May 24th, 2005, 05:20 PM
#2
Hyperactive Member
Re: Stupid Question
try echo $getDate2(0)
Been a while since I looked at PHP im not 100% sure about the array parenthesis !
-
May 24th, 2005, 05:55 PM
#3
Thread Starter
Addicted Member
Re: Stupid Question [RESOLVED]
Didnt work Duck, but I figured it out on my own. THanks
Things fall apart which the center cannot hold...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|