Please don't send scripts as attachments to email messages to either me or Alex. There are a whole lot of reasons for this.
They can clog up our mailboxes pretty quickly.
With viruses going around, I usually delete any email with attachments unless I'm already expecting it.
It's a lot easier to connect the problem with the script if you have a link to a web page within the discussion forum. If I get an email with a script attached, I then have to come back to the forum and search for what the problem is so I know what I'm looking for.
If the script is available on the web, anyone can help. Many times a different eye will find something that I or even Alex would miss. You have a better chance of finding a solution to your problem.
When I offer help on the forum, I don't expect anything in return (except for a nice "thank you"!
). But I also would like to be able to answer people's questions on the forum so that others have the opportunity to learn as well. It very well may be that in a week or two someone else will come up with your same problem and be able to read the solution to it right here.
I'm assuming that, if you're going to be using DBMan, you have a website. You just need to copy your files in the same directory where you have your html files and rename them to have a ".txt" extension. If you really don't have any webspace where you can upload your files, you can get space at any number of free sites. Geocities is one that is fast and easy to join and allows you to ftp your files to your free webspace. You just have to be sure that the files have a ".txt" extension.
Please don't think I'm mad at anyone for sending files. I'm not. I hope you understand.
However, since you sent your script to Alex and he forwarded it to me, I'll see what I can answer about your problem.
First off, it's probably not a good idea to rename db.cgi to anything else.
You have
$auth_user_field = 9;
But you don't have a field number 9. This will cause major problems in your database. If you want registered users to be able to modify or delete their own records, you will need to create a field to hold the userid for each record and set the $auth_user_field to the number of that field. You'll also need to set
$auth_modify_own =
1;
If you want registered users to be able to modify or delete any record (not a good idea), you won't need an $auth_user_field. Set
$auth_user_field =
-1;
I went to your database on the web and I didn't see the problem you're talking about. When I used the URL
http://wwwultra.sce.nyu.edu:6306/cgi-bin/phonebk/phone.cgi?db=phone&uid=default
(which is the correct URL for a default user), I was able to view the records with no problem.
I did see something else, though, and I'm not sure why. When I went to
http://wwwultra.sce.nyu.edu:6306/cgi-bin/phonebk/phone.cgi
I got the Main Menu. When I clicked on "List All" I was sent to the login page. The URL above should have sent me directly to the login page. Did you make any changes in db.cgi (or, as you renamed it, phone.cgi)?
------------------
JPD