Jump to content

[SOLVED] EZ Array question


drisate

Recommended Posts

hey guys i rarely need to use arrays with databases but i need to get tho this result

 

	$aUsers = array(
	"Ädams, Egbert",
	"Altman, Alisha"
);

 

but in a mysql loop ... i tryed this

 

$safe_check = mysql_query("SELECT * FROM contact where user_id='$_GET[ref]'") or die (mysql_error());
while($temp = @mysql_fetch_array($safe_check)){

$aUsers[] =  "$temp[name]";

}

 

but thats not working

Link to comment
https://forums.phpfreaks.com/topic/154352-solved-ez-array-question/
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.