sarahAria Posted October 23, 2008 Share Posted October 23, 2008 hi guys I want to add usernames from mysq; database to an array like this $existing_users=array('roshan','mike','jason'); mysql table looks like this CREATE TABLE `Secure` (`id` int(11) NOT NULL auto_increment,`name` varchar(50) NOT NULL default '',`password` varchar(50) NOT NULL default '',`cookie_pass` varchar(50) NOT NULL default '',`state` char(1) NOT NULL default '0',`mail` varchar(100) NOT NULL default '',`active` char(1) NOT NULL default '0',`actcode` varchar(15) NOT NULL default '',`lastactive` datetime NOT NULL default '0000-00-00 00:00:00',PRIMARY KEY (`id`)) TYPE=MyISAM AUTO_INCREMENT=1; could yu plz help? my problem is I don't know about arrays Link to comment https://forums.phpfreaks.com/topic/129839-adding-data-from-sql-to-array/ Share on other sites More sharing options...
DarkWater Posted October 23, 2008 Share Posted October 23, 2008 If you don't mind me asking, why'd you post this in the regex board? >_< Anyway, just put them into an array when you do your query. Can I see your current query code? Link to comment https://forums.phpfreaks.com/topic/129839-adding-data-from-sql-to-array/#findComment-673120 Share on other sites More sharing options...
sarahAria Posted October 24, 2008 Author Share Posted October 24, 2008 I just don't know how to insert into array it's a username availability check (ajax) Link to comment https://forums.phpfreaks.com/topic/129839-adding-data-from-sql-to-array/#findComment-673578 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.