Welcome Guest, Not a member yet? Register   Sign In
Fill forms with db result!
#3

[eluser]LuckyFella73[/eluser]
Usually it should not happen at all that your scripts
call an edit form and no db data is available ..

But you could loop through your db rows in your controller
and set vars like $data['form-title'] = $row->title; (whatever makes sence),
use an if statement to set the var to '' in case no row is returned.

Bur I think it would make more sence to check for results before
calling the edit form at all.


Messages In This Thread
Fill forms with db result! - by El Forum - 12-10-2009, 11:32 AM
Fill forms with db result! - by El Forum - 12-10-2009, 11:37 AM
Fill forms with db result! - by El Forum - 12-10-2009, 11:43 AM
Fill forms with db result! - by El Forum - 12-10-2009, 11:51 AM
Fill forms with db result! - by El Forum - 12-10-2009, 01:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB