function
| From: | Bartosz Aninowski | Date: | Sat, 01 Jul 2000 18:57:17 +0000 |
| Subject: | function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4285@lists.php.net to get a copy of this message | ||
when I call this function browser shows
Warning: 0 is not a MySQL result index in /home/public_html/test.htmls on
line 17
14 function checklink($name)
15 {
16 $result=mysql_db_query($SQLDB,"SELECT listname,tablename FROM info WHERE
user='bart'");
17 $rows = mysql_fetch_array($result);
18 rows[$name];
19
20 }
21
22 $var = checklink(listname);
23 print ("$var");
when I am not using function everything is ok
Bart