ceceil_felias wrote in php 😯confused

Listens: Front Mission 3 - Plain (China)

I'm not sure if this is the right place to ask or not, but I'm working on a simple PHP script to track direct/total pageviews for certain pages. I'm using MySQL in this script as well, which is why I'm unsure, especially since the error the script is giving me (mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/*****/public_html/****/test/inc_base.php on line 11) apparently is related to the MySQL database...

$charname is set by the parent file, as this script is called in an include() command.



I'm a newbie at this stuff, so I'm probably missing something important. Does anyone know what I'm doing wrong? >_>