Jump to content

PHP Calendar


wrathican

Recommended Posts

hi ive followed the tutorial located here:

http://www.phpfreaks.com/tutorials/144/0.php

 

i  havin problems with it.

i get this warning:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in F:\wamp\www\test\calendar.php on line 15

 

which i guess means that my query has failed and there is not data in the database...

but i changed the values in the intitial SQL to mirror the current year and so i do have some dates in the database

 

any ideas>?

 

Link to comment
https://forums.phpfreaks.com/topic/61227-php-calendar/
Share on other sites

hey. thanks for the reply.

i tried running the sql in phpMyAdmin and it said that i had an arror in my sql query:

 

 

#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '( event_date ) AS

DAY , COUNT( event_id )

FROM calendar_event

 

^^ is the error it gave me

is this a propper sql statement?

Link to comment
https://forums.phpfreaks.com/topic/61227-php-calendar/#findComment-304735
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.