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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: cgilover
  • Order by date
  1. cgilover

    Determining what my MySQL tables need

    So I need 6 fields? Well that's a start, thanks for that information! But now I feel very discouraged because if it's adding NULL to some fields and values to some others (without names), that means everything has to be in a set proper order. There's no way I can figure all that out :( Thanks...
  2. cgilover

    Determining what my MySQL tables need

    Yep. I know what the error means, I just don't know what's wrong and what to add/change. This is the actual code that's failing <code> my $sth = $dbh->prepare("INSERT INTO $categories_table VALUES (NULL, '$catname', '$catdesc', NULL, NULL, '$caticon')"); $sth->execute; if...
  3. cgilover

    Determining what my MySQL tables need

    I bought a premade site years ago and decided to put it back up. Sad to say, I don't have the original database and the original programmer changed their email address. I can't get my CGI scripts to work anymore because they require special MySQL "stuff". Sorry for my impressive knowledge on...
  4. cgilover

    file upload problem

    Looks like you need to use binmode.
  5. cgilover

    a download script problem

    I would forget about the header, redirect/post to a THANK YOU page and use a regex if you must to break your file name and location into a link. I have to do this all the time.
  6. cgilover

    Meta tag syntax

    I love how most people believe meta tags are dead and I find it very silly. Meta tags are still important today even though they're not used the same way they used to. So is this still related to SEO? Of course it is. And there are still thousands of meta engines out there which still use...
  7. cgilover

    Meta tag syntax

    I am writing another script to help with SEO and I need to know every possible syntax-correct way to make a meta tag. Below is what I have so far. don't worry about doing mixed up quotes (ie: name='name"...). Can you think of any more? <meta name = "name" content = "content" \> <meta...
  8. cgilover

    What's a real server to pull keyword suggestions from?

    I looked through their site and am very unimpressed by their "beliefs" on SEO in general. Actually I'm not looking for a keyword suggestion tool but instead a tool that displays how often that word was searched. I've used word tracker but that's what I'm wondering about. Where are THEY...
  9. cgilover

    What's a real server to pull keyword suggestions from?

    I am trying to write a script that parses content from a REAL server which has search results. I tried using http://inventory.overture.com/d/searchinventory/suggestion/ but you can't search pluralized words (such as scripts or women). Anyone know of another HUGE place that does something...
  10. cgilover

    Getting ASCII values

    <i>"I can't believe that PERL makes this function difficult."</i> <b>it's not!</b> Here's another way. # convert from number to letter # using chr() my $number = chr(65); # A # convert from letter to number # using ord() my $letter = ord(A); # 65
  11. cgilover

    file parsing/pattern matching/one big headache...

    Why not store into a hash so you don't have to check to see if the GUID already exists?
  12. cgilover

    Getting ASCII values

    $a= join ' ', unpack 'C*', $a; Hope this helps.
  13. cgilover

    How do I change this character &quot; to ' ?

    I can tell you right now exactly what the error is. It's a premature end of script headers. This wasn't meant to be a CGI script but instead just Perl. Try using this one on your website instead. #!/usr/bin/perl use warnings; use strict; use CGI qw/:standard/; print header...
  14. cgilover

    Beginners help to creating their first perl module!

    Oh wow, that works awesome. I am not a huge fan of OOP but it got rid of the exporter function and enables them to create any variable they want. Can you explain what this is doing? sub new{ my $pkg = shift; my $obj = {@_}; $obj = bless {%$obj},$pkg || die 'unable to bless object!'...
  15. cgilover

    Pattern Matching

    I hate regexes, they give my nightmares and people always correct me on them. But here I go! This is untested. $string =~ m/<a href="([^"]+)">([^<\/a>]+)<\/a>/gi;
  16. cgilover

    How can I get a hash to print all of it's contents to a file??

    Where's the strict? *shifty eyes* Bad Paul! :) One thing I haven't seen before is "values" print NEWFH values %Links; I deal with hashes on a daily basis and when I need them to spit output to a file, I always use foreach my $key (%hash) { print "$hash{$_}\n"; } But I guess if...
  17. cgilover

    How do I change this character &quot; to ' ?

    This code definitly works on my system and MikeLacey says it works on his. I don't know why it doensn't work on yours, even if you have an extremely outdated Perl package it should work. Maybe you need to reinstall Perl? That's the only solution I can come up with without knowing what the...
  18. cgilover

    How do I change this character &quot; to ' ?

    #!/usr/bin/perl use warnings; use strict; my $string = qq(<p align="right">); $string =~ s/"/'/g; print $string; Yields <p align='right'>
  19. cgilover

    How do I change this character &quot; to ' ?

    $string =~ s/"/'/g;
  20. cgilover

    Beginners help to creating their first perl module!

    Sorry, I am even more confused. Can any of you tell me what's wrong with my code now? Or from here tell me how I can make it work? Module package MetaParser; use Exporter; @ISA = 'Exporter'; @EXPORT_OK = qw(getm); use strict; use LWP::Simple; sub getm { my $url = @_; print "url is...

Part and Inventory Search

Back
Top