the search feature is unavailable so hopefully somebody can help me.
I can't always seem to get this to work, here's what I have:
Let's assume there are 3 rows in the table_name table. What should be returned to $result? What I want to do is store the results in an array, but that doesn't seem to work. Sometimes I just get 1 result, sometimes I get an error. Can somebody explain to me how I would go about feeding the results from the above query into an array, and maybe explain to me what exactly mysql_fetch_array does? How is it different from mysql_fetch_row? I've been trying to read up on it, but because I've been dipping in and out of different parts of the book, it doesn't all make sense to me.
thanks in advance
I can't always seem to get this to work, here's what I have:
Code:
$sqlsearch = mysql_query("SELECT * FROM table_name");
$result = mysql_fetch_array($result);
Let's assume there are 3 rows in the table_name table. What should be returned to $result? What I want to do is store the results in an array, but that doesn't seem to work. Sometimes I just get 1 result, sometimes I get an error. Can somebody explain to me how I would go about feeding the results from the above query into an array, and maybe explain to me what exactly mysql_fetch_array does? How is it different from mysql_fetch_row? I've been trying to read up on it, but because I've been dipping in and out of different parts of the book, it doesn't all make sense to me.
thanks in advance