Posted by Ja NE on 12/16/36 11:50
Kimmo Laine <spam@outolempi.net> wrote:
> I think something like this could work:
>
> $query1 = "SELECT id,text FROM...";
> $result1 = mysql_query($query1);
> $query2 = "SELECT name FROM... ORDER BY RAND()";
> $result2 = mysql_query($query2);
>
> while((list($id,$text) = mysql_fetch_array($result1)) && (list($name) =
> mysql_fetch_array($result2)) ) {
> echo"<tags>$id<>$name<>$text</tags>";
> }
that hepled, tnx :)
--
Ja NE
http://fotozine.org/?omen=janimir
--
Navigation:
[Reply to this message]
|