[PHP-WIN] Re: MySQL Errors

2004-10-21 Thread Robert Schipper
Hello Mikea. You have to know that i am new to php, too. And i am also struggling to understand the code. Well, i would suggest you take something less complex to start up. But if you still want that code for the beginning.. make sure the database xy (that part is missing in the code) has a table a

[PHP-WIN] Re: MySQL Errors

2004-10-21 Thread MikeA
This is an applic that I got off the internet that I am trying to install. An example of the code follows. if ($action=="memberlist") { /* get the total number data and find out what the grand total is */ $sql = "select id, title, price from ad_details where member_id=" . $_SESSION['login_id'];

RE: [PHP-WIN] Re: MySQL Errors

2004-10-21 Thread David Hamilton
, October 21, 2004 7:49 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: MySQL Errors 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

[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) {