Gurk <gu******@hotmail.com> wrote:
how can i add lines into my page
for example
i have this line
.download january
but in my database are more downloads called january.
i have the function to fugure out how much lines there are in my db,
but how can i echo them as much there are lines in my db
Huh? Is your question how to read all rows from a database query?
http://www.php.net/manual/en/functio...etch-array.php
Example 2. mysql_fetch_array() with MYSQL_NUM
<?php
mysql_connect("localhost", "mysql_user", "mysql_password") or
die("Could not connect: " . mysql_error());
mysql_select_db("mydb");
$result = mysql_query("SELECT id, name FROM mytable");
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
printf("ID: %s Name: %s", $row[0], $row[1]);
}
mysql_free_result($result);
?>
Much depends on the actual database used.
--
Daniel Tryba