From: Adam M. <ad...@tu...> - 2002-10-29 19:00:49
|
> I have rewritten the sqlImport function. It now parses the file and then > sends the information to the proper core function. Very cool! > One note: I created a function named newCreateTAble. It is different > from sqlCreateTable in that you pass just an indexed array, not an > associative array. What this allows is that you just enter the text for > the columns, one per row. That way you do not have to plug the index and > primary key information into the array. Could we add a test inside the current sqlCreateTable function that tests the first key in the array to see if it's an integer or a string and act accordingly? Or we could add a third parameter that denotes an indexed or associative array? Adam --------------------------------- Adam Morton Developer - Electronic Student Services http://phpwebsite.appstate.edu Founder - ASU Linux Users Group http://lug.appstate.edu |