Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by chedder123

  1. chedder123

    Executing a script from .qmal file

    I'm running Linux, Redhat 7.3, and Qmail. I do have procmail installed, however if I don't need to, I don't want to use procmail as it seems just a little more difficult. My question is, how can I setup a mailbox so whenever it receives an email, it runs a perl script? I've read the manuals...
  2. chedder123

    onload event

    You could always set a boolean variable as false at the beginning of the page, and at the end of the page set it as true. Then it would have to wait until everything else is loaded before it would let them clickthrough. I've used that a lot for the same purpose
  3. chedder123

    Database Connection Question

    I appreciate all your help with this. I actually did have it like that, opening the database globally and then just using it in the sub without passing it. I've tried to eliminate that. Here's the code where' I'm having some problems with. It's just incredibly incredibly slow that it's...
  4. chedder123

    Database Connection Question

    I went ahead and added that code in and at least it didn't give me an error. However, when I check the current processes running on the server, I still see a lot of: 0:00 /usr/sbin/httpd -DHAVE_ACCESS -DHAVE_PROXY -DHAVE_AUTH_ANON -DHAVE_AC apache 22195 0.1 1.5 6232 3948 ? S...
  5. chedder123

    Database Connection Question

    I'm having a problem with the database connection using PostgreSQL. Everytime I open a connection, am I supposed to close it in the Perl CGI script? For example: $dbh = &dbh_connect(); $sql = "SELECT mediaid, folder, view_count FROM media ORDER BY folder;"; $sth =...
  6. chedder123

    Modifying table variables

    Ok... I feel really dumb now. I'm going to buy a book. I believe this is the command, however it's not working. ALTER TABLE leads ALTER created SET timestamptz DEFAULT 'now' NOT NULL ALTER TABLE leads ALTER export_counter SET int4 DEFAULT '0' NOT NULL I already have a populated table and...
  7. chedder123

    nuB: How to add a sequence to an already created table?

    Ok, this is my first jump into SQL/Perl stuff and I'm a little lost. I'm running PostgreSQL and already have a populated table, however I need to have an incrementing variable every time a new row is submitted. I also need a time stamp. My question is, once I already have the table created...

Part and Inventory Search

Back
Top