What is the best way to: check if an entry exists, if it doesn't create it, if it does update it?
mysql_fetch_array()/mysql_fetch_assoc()/mysql_fetch_row()/mysql_num_rows etc... expects parameter 1 to be resource