Welcome Guest, Not a member yet? Register   Sign In
Updating config/routes.php using mysql
#4

[eluser]mattnewark[/eluser]
Hi,

Thanks for the replies but unfortunately non of the options worked, when I do the below:

Code:
$data = $data.'$route["' . $r['link'] . '"] = "' . $r['route'] . '";';

I get an error advising that I have an undefined variable $data.

and when adding the below I get the same issues, it only writes the last row..

Code:
foreach ($query->result_array() as $r)

I just have no idea why it is not writing all the rows to the file..

Thanks


Messages In This Thread
Updating config/routes.php using mysql - by El Forum - 07-14-2014, 04:44 AM
Updating config/routes.php using mysql - by El Forum - 07-14-2014, 09:03 AM
Updating config/routes.php using mysql - by El Forum - 07-14-2014, 09:55 AM
Updating config/routes.php using mysql - by El Forum - 07-14-2014, 12:14 PM
Updating config/routes.php using mysql - by El Forum - 07-14-2014, 12:27 PM
Updating config/routes.php using mysql - by El Forum - 07-14-2014, 12:51 PM
Updating config/routes.php using mysql - by El Forum - 07-14-2014, 12:53 PM
Updating config/routes.php using mysql - by El Forum - 08-20-2014, 01:51 PM
Updating config/routes.php using mysql - by El Forum - 08-20-2014, 03:12 PM
Updating config/routes.php using mysql - by El Forum - 08-21-2014, 01:46 AM
Updating config/routes.php using mysql - by El Forum - 08-21-2014, 07:34 AM
Updating config/routes.php using mysql - by El Forum - 08-21-2014, 08:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB