Gossamer Forum
Home : Products : DBMan SQL : Discussion :

userfriendly_html.pl

Quote Reply
userfriendly_html.pl
Hi. I'm using JPDeni's userfriendly_html.pl and have problem when i try to modify a record. Everything seems O.K. but when search for that record i see record have NO data! i have no problem if i use

# Auto generate HTML forms?
$db_auto_generate = 1;

in .cfg. Can it be related to userfriendly_html.pl? or what???

Best Regards




Quote Reply
Re: userfriendly_html.pl In reply to
If you have added any database calls in the html.pl (like for WHAT's NEW MOD), then yes, you have a problem using the user friendly html.pl.

Try using the default html.pl that comes with DBMAN SQL.

Regards,

Eliot Lee
Quote Reply
Re: userfriendly_html.pl In reply to
I ve searched the forum and found some people had experienced the same problem. They solved the problem by changing

# Set the userid to the logged in user.
($auth_user_field >= 0) and ($in{$db_cols[$auth_user_field]} = $db_userid);

*****To*****
# Set the userid to the logged in user.
($auth_user_field >= 0) and ($in{$auth_user_field} = $db_userid);

in the db.cgi file (sub add_record and sub Modify_record).

But i couldn't find this part in my db.cgi!!! my script version is 1.01

is that a bad joke or what?

please help

Best Regards