Gossamer Forum
Home : Products : DBMan : Customization :

Short/Long-Problem

Quote Reply
Short/Long-Problem
Hello from germany,

again, sorry for my english.

I have a database with short/long, file-upload and "Limit total number of records per user"-mod. I can add, search, modify and delete without problems.

The problem make the delete- and modify-form in the long-display:

- If I have only one record I get no checkbox for deletion.
- If I have more than one record, I have a search result (for delete or modify) with checkbox in the short version. When I click of the link, I come to long version, but I see in this long version a record without a checkbox or radiobox and the record have in all field mistakes.

The search-result for view is in the short and long-version o. k. - i can see all fields and images.

I hope anybody understand it.

Redards ecki

Quote Reply
Re: Short/Long-Problem In reply to
Any idea???

Regards ecki

Quote Reply
Re: Short/Long-Problem In reply to
I'm sorry. I guess I missed your question when I got back.

The only thing I can think of is that I need to see your html.pl file. Please copy the file to a web-accessible directory (one where you would place .html files) and rename the file to html_pl.txt. Then come back and let me know where I can pick it up.


JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Short/Long-Problem In reply to
Dear JpDeni,
I am having this problem too. That is the short,long display
mod, which I am adding after replacing the original html.pl with your uf_html.pl. I have follow according as instructed by your mod. the message returns is unknown problem which the debugging prints to say that my line at 1644 id EOF and it is not closed. At list I have notice that the problem from this forum is that he has everyting working only for some hiccups but mine totally just do not even bring the form at all. This time what i have done is to replace mod as from the initial setup, with cfg, cgi and uf_html as the precedent files. I have mentioned that all mod which i have done with is working individually, but once they are incorporated things start to go funny!. the two mod which iwould very much like to see it work is this short long display mod and the upload file mod. and i have posted my problem which this is the lastest.I do hope that this will be the final phase of the mods and the issue to host this members homepage could commenced. your looking into this matter is greatly appreciate.
So far I have just the uf.html.pl, massmailer,secure password lookup plus the change password mod incorporated and initial testing by self seems to work and i have now to test with my friends and hope that they will be able to get into the database and have all generated and the sendmail from the admin to welcome them working. Therefore with the balance of the two mods as mentioned can be incorporated into the above it would be the database which I think would be in the same which is hosted by this site. It would be lovely if I could ge a hint as to how I can host it in the same method is what is is hosted by dbman, Gossamer Threads, where it is so simple and good. Log on, signup, get your password forwarded to you which basically checks the email and then logon with the password and username, where once into one's page, all the goodies are done and to be able to modify one's profile and etc. What a simple way and straight forward method which all will not find it difficult to use it. This site and you especially have been good to all us greenhorns in a way where we would not have come into any knowledge of perl or how cgi scripts run. I am and sincerely would thank the people from members to all involve in this, and you especially from all the treads read you have been the pillar of dbman and gossamer treads.
yours
david fong

Quote Reply
Re: Short/Long-Problem In reply to
What exactly happens when you try to access the database? One sentence, please. If you get an error message, copy the message into your post.



JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Short/Long-Problem In reply to
Dear jpdeni,
This is what happen as per debug.
CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist,
permissions are set correctly and that they compile.
Reason: Missing right bracket at ./html.pl line 1644, at end of line
syntax error at ./html.pl line 1644, at EOF
yours,
david fong


Quote Reply
Re: Short/Long-Problem In reply to
Hello JP,

thank you for your answer. You find the html.txt here:

http://www.agrarseiten.de/html.txt

Don't work so much - we need you.

Regards Ecki

Quote Reply
Re: Short/Long-Problem In reply to
Ecki, I'm afraid the answer didn't just jump out at me when I looked at your file, as I was hoping it would. Is it possible to see your database in action?

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Short/Long-Problem In reply to
David, I'll need to see your html.pl file. Follow the instructions I gave to Ecki for posting the file to the web and I'll see if I can find where you're missing a bracket.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Short/Long-Problem In reply to
Hello jpdeni,

you can see my database in action under http://www.agrarseiten.de/cgi-bin/technikmarkt/db.cgi

User ID: jpdeni
password: jpdeni

You have 5 records for the demo.

Thanks for your answer.

Regards ecki

Quote Reply
Re: Short/Long-Problem In reply to
I think found it. My fault.

Code:

if (($db_total_hits == 1) || ($maxhits == 1)) {
print qq|
<p><$font>
If you would like to delete this record, check the box and then press "Delete Records":</font>|;

%tmp = &array_to_hash(0, @hits);
print qq|<table><tr><td valign=top><INPUT TYPE=CHECKBOX NAME="$tmp{$db_key}" VALUE="delete"></td><td>|;
&html_record_long(&array_to_hash(0, @hits));
print qq|</td></tr></table>|;
}
That's the only problem I could find.

JPD
http://www.jpdeni.com/dbman/