View Single Post
Old 07-13-2004, 03:57 PM   #17 (permalink)
FaderMonkey
Psycho
 
FaderMonkey's Avatar
 
Location: Orlando, FL
I ended up doing it this way and it seems to be working:

PHP Code:
$query ="SELECT entrytitle, entrytext, entrydb,";
$query.=" DATE_FORMAT(entrydate, '%M %d, %Y %T') AS date";
$query.=" FROM weblog2 ORDER BY entrydate DESC LIMIT 10";
$result=mysql_query($query);
while (list(
$entrytitle,$entrytext,$entrydb,$entrydate) = 
mysql_fetch_row($result)) 
I have another question about this though. I got this code from someone else....a website about making a simple weblog....so I want to understand exactly how it's working. The seperate lines for defining the query ($query= and then $query.=)....is that just a way of setting different queries to the same variable? Does that question make sense?
FaderMonkey is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46