i want to store the result of an mysql_fetch_array function in an array for future use. here is my code
- $sql= "SELECT parameters FROM rules WHERE type='prerequisite' ";
- //$result=mysql_query($sql);
- if ($result=mysql_query($sql))
- echo '<p>nice</p>';
- else
- echo 'good shit';
- //$row = mysql_fetch_row($result)
- //
- while ( $row = mysql_fetch_array($result))
- {
- $parm= array ($row[0]); }
how can i achieve this