Jump to content

Echo a PHP array into a format


gergy008

Recommended Posts

Hi everyone, Thanks for lookin at the thread :D

 

I was wondering if I could have a little help echoing an array of all the users in my DB into a format of for example

 

'cow' , 'pigeon', 'giraffe'

 

$sql='SELECT `login` FROM `users`;';
$run=$mysql_query($sql, $link);

 

I do know that you need to use the while statement but I am not that confident in using it, It's completely blanked out of my head.

 

Thanks in advance!

 

PS. I will be working on it too, Please don't think I'm just shoving you a job under your nose because I can't be bothered to do it >_<

Link to comment
https://forums.phpfreaks.com/topic/205357-echo-a-php-array-into-a-format/
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.