[PHP-WIN] Re: MySQL Errors

2004-10-21 Thread Robert Schipper
$sql); $num_ads = mysql_num_rows($res); I did not code this and I'm struggling to understand the applic and PHP! So I'm up to my armpits in alligators! LOL Thanks. Mike "Robert Schipper" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] hello mikea, looks like

[PHP-WIN] Re: MySQL Errors

2004-10-21 Thread Robert Schipper
hello mikea, looks like there is something missing in your sourcecode, which you should have provided. do you give any arguments to mysql_fetch_array() ? Do you check if it is not false? your code should look like this: $sql = "SELECT * FROM example"; $result = mysql_query($sql,$db); if ($result) {

[PHP-WIN] Re: php help

2004-10-19 Thread Robert Schipper
hello, I am very new to php but i already had some Perl/CGI and Tcl experience. I saw the "#!" only on linux plattforms before. It introduces a line which lets the webserver know which interpreter has to be used for the file at hand. I could imagine, that your apache is not correctly configured. Di