geekwannabe Posted October 2, 2006 Share Posted October 2, 2006 Whats the standard technique for walking through a database and processing each record? It seems that I need a php script that generates a php script. But then how do I get it to call the script created and then return to the originating script and continue processing. This kind of scenario was not a problem in Foxpro, the language I am most familiar with. I tried setting up an odbc connection and doing the processing from foxpro. That method has serious performance problems! Quote Link to comment Share on other sites More sharing options...
thedarkwinter Posted October 2, 2006 Share Posted October 2, 2006 Hiim afraid im only familiar with mySQL connections - but something like this may be helpful$host = "localhost";$user = "??";$pass = "??";mysql_connect($host,$user,$pass);mysql_select_db("mydb");$SQL = "SELECT * FROM mytable;";$result = mysql_query($SQL);while ($row = mysql_fetch_row($result)){ echo $row[0] . $row[1];} 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.