how do you list 20 or more of the same thing in PHP?

Mike Gambino II

New member
I'm trying to do something on my site where if a person wants to list 20 or more of the same thing all at once, it pops up as this:

1. something
2. something
3. something
4. something
5. something
6. something
7. something

instead of it just listing it one time.

I have been stuck on this and I also want it to do mysql queries to list 1 thing 20 or more times in the database. Can someone help me out?
ok. I tired what you put down and I inserted it differently because I wanted it to insert into the database more than 1 time. It doesn't show anything but this is what I put down.

for($i = 0; $i < $_POST['ticket']; $i++)
{
echo ($i + 1) .'hello' . mysql_query("INSERT INTO tickets (`user_id`) VALUES('{$_SESSION['user_id']}')");'';
}

Please help.
never mind. I found my error and I got it fixed. Thanks man.
 
Back
Top