Looping through mysql queries? |
[eluser]Dirk Einecke[/eluser]
Hi, don't forget the "SELECT" in your $sql string. "DISTINCT" is just to say that the mysql server should stop searching after he has found a record. With "result_array()" your are converting the result of the query into a php array (see: http://ellislab.com/codeigniter/user-gui...sults.html). Dirk |
Messages In This Thread |
Looping through mysql queries? - by El Forum - 02-14-2010, 06:03 AM
Looping through mysql queries? - by El Forum - 02-14-2010, 07:38 AM
Looping through mysql queries? - by El Forum - 02-14-2010, 08:00 AM
Looping through mysql queries? - by El Forum - 02-14-2010, 08:26 AM
Looping through mysql queries? - by El Forum - 02-14-2010, 01:56 PM
Looping through mysql queries? - by El Forum - 02-15-2010, 12:35 PM
|