multiple lin

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

how can i add lines into my page

for example
i have this line 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



Re: multiple lin

Quoted text here. Click to load it

Huh? Is your question how to read all rows from a database query?

Example 2. mysql_fetch_array() with MYSQL_NUM
mysql_connect("localhost", "mysql_user", "mysql_password") or
   die("Could not connect: " . mysql_error());

$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]);  


Much depends on the actual database used.


  Daniel Tryba

Re: multiple lin

tkank jou verry much

kind regards Maarten

Quoted text here. Click to load it

Re: multiple lin

thanks for the code, it works but it wont display the first value of the db.

can someone give me an explenation of this code, so i can figure out what's

thanks Maarten

Quoted text here. Click to load it

Site Timeline