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

[eluser]WebbHelp[/eluser]
Hi!

I want to fill my form with data from the database.
The problem is if there is no row in the database then I got a error message you know!

<input type="text" name="head" value="<?=$query->head?>" size="50" />
<input type="text" name="title" value="<?=$query->email?>" size="50" />

This works, if there is things in the database, but if not, I got errors, how can I solve this?

Thanks //Webbhelp


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