I have a script that can desplay all the contents from a database but I need
the result to equil a variable, but when I do this it only desplays one line
from the database. I used to know this but I lost the info that I was given.

this is the script I am using..

$query = "SELECT * FROM content WHERE section='$section' ";
$result = mysql_query($query);

 while($res = mysql_fetch_array($result)) {
  $sub="<a
href='index2.html?section=".$res[section]."&code=".$res[code]."'>".$res[art_
name]."</a><br>
"; }

I know there is something I can add after $sub. Please can you tell me what
it is?
thanks heaps,
Dan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to