spewn
Programmer
- May 7, 2001
- 1,034
i'm using mysql.
here's the code i'm trying to get to work:
this just does not work. any ideas why?
i believe the syntax is just not right.
thanks!
- g
here's the code i'm trying to get to work:
Code:
$sth = $dbh->prepare("SELECT DATEDIFF(yyyy,mDOB,CURRENT_DATE) from my_table");
$sth->execute;
use constant AGEX => 0;
$i=0;
while (@row = $sth->fetchrow_array()){
$age1 = $row[AGEX];
print $age1.'<br>';
$i++;
}
this just does not work. any ideas why?
i believe the syntax is just not right.
thanks!
- g