Jump to content

Loop and MySQL


Lamez

Recommended Posts

i am assuming there is a row in your table called user or something similar make some code like this

<?php
$result=mysql_query('SELECT * FROM users');
while($row=mysql_fetch_array($result)){
$user=$row['user'];
//code to use $user
}
?>

 

Scott.

Link to comment
https://forums.phpfreaks.com/topic/93033-loop-and-mysql/#findComment-476630
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.