have you looked at the
PHP site on how to use MySQL within PHP
it also depends on which version of PHP you are usingn.. the old style MySQL functions are depracted in favour of the MySQLi in PHP 4.1 and above
agree with quelphdad, there is little point in posting the whole of your script, just the pertinent lines. Its doubtfull people are going to wade through a script to find the 94th line.. if you provide the snipped code its more likely to get an answer.
it may also help posting this sort of question int he PHP thread on this forum.. as its not a MySQL Isssue