I'm having trouble trying to write this correctly. I've done very little with mysql and I can't think of how to do this right.
$result = mysql_query("Select
DATE_FORMAT(evfrom, '%m-%d-%Y') as evfrom_formatted,
DATE_FORMAT(evto, '%m-%d-%Y') as evto_formatted,
evid, evname, evdesc ORDER BY evfrom_formatted ASC",$link);
I know my $link is setup correctly as i've selected "all" and retrieved and printed everything fine with php, etc. i'm just having a really big problem grabbing these dates and putting them all in the results array. Can somebody please tell me what i'm doing wrong 🙁 thank you.
I'm getting:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource
if that helps at all.