Fenhopi Posted November 11, 2010 Share Posted November 11, 2010 Hi, I'm trying to store the first+lastname from my mysql user datababase into arrays like this: // Fill up array with names $a[]="Anna"; $a[]="Brittany"; $a[]="Cinderella"; $a[]="Diana"; $a[]="Eva"; $a[]="Fiona"; $a[]="Gunda"; $a[]="Hege"; $a[]="Inga"; $a[]="Johanna"; $a[]="Kitty"; $a[]="Linda"; $a[]="Nina"; $a[]="Ophelia"; $a[]="Petunia"; $a[]="Amanda"; $a[]="Raquel"; $a[]="Cindy"; $a[]="Doris"; $a[]="Eve"; $a[]="Evita"; $a[]="Sunniva"; $a[]="Tove"; $a[]="Unni"; $a[]="Violet"; Quote Link to comment Share on other sites More sharing options...
litebearer Posted November 11, 2010 Share Posted November 11, 2010 Psuedo 1. connect to db 2. create query - select first, last from table 3. result = mysql_query($query) 4. while row = result $array[] = $row['last'] . ", " . $row['first']; end while Quote Link to comment Share on other sites More sharing options...
Fenhopi Posted November 11, 2010 Author Share Posted November 11, 2010 Thank you, sir! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.