Avatar billede kidrock Nybegynder
14. januar 2002 - 17:40 Der er 1 løsning

CGI Script fejl

Kig på: http://www.bonecter.com/cgi_bin/classifieds/classifieds.cgi?db=n_salg&website=&language=&session_key=3c43076114649ef5&search_and_display_db_button=on&db_id=4&results_format=long&query=retrieval&exact_match=on
Her har brugeren skrevet:
1 i Årstal
2 i Bruttopris
3 i Nettopris

Siden skriver i stedet 3 2 1 i alle felter!
Som om der er et blank felt mellem tallene.

Her kommer scriptet:
Det er  \'28\' => \'29\' => \'30\' => Hvor jeg tror fejlen er. HJÆLP...

--------------------------------------------------

# ID number => \'short name\', \'ascend/descend\', \'user-defined (displayed on posting form)\', \'searchable (displayed  on Advanced Search form)\', \'displayed in headlines format\', \'viewable (displayed on full size ads or records)\', \'Long  name\', \'allow multi inputs\', \'required\', \'limit text\', \'data type\', \'comparison operator\', \'searchable in keywords field\',  \'type (text, textarea, radio, select, checkbox)\', \'form length/rows\', \'maxlength/columns\', \'options (select or radio  only)\', \'autonotify field\', \'display type (regular, bold, email-primary, email-secondary, url, optional, wide)\', \'display  category (general, description, contact, features, options)\', \'maximum characters allowed\'

%dbfields=(
          \'0\' => [\'db_id\',\'ascend\', \'\', \'\', \'\', \'1\',\'Annonce Nr.\',\'\',\'\', \'\', \'number\', \'=\', \'\', \'text\', \'40\', \'80\', \'\', \'\', \'bold\', \'contact\',  \'80\'],
          \'1\' => [\'who_modified\',\'ascend\', \'\', \'\', \'\', \'\',\'\',\'\',\'\', \'\', \'string\', \'=\', \'\', \'text\', \'40\', \'80\', \'\', \'\', \'\', \'\', \'80\'],
          \'2\' => [\'group_modified\',\'ascend\', \'\', \'\', \'\', \'\',\'\',\'\',\'\', \'\', \'string\', \'=\', \'\', \'text\', \'40\', \'80\', \'\', \'\', \'\', \'\', \'80\'],
          \'3\' => [\'modification_time\',\'descend\', \'\', \'13\', \'\', \'2\',\'Dato Indrykket|Indrykket Efter (MM/DD/YYYY)|Indrykket  Før (MM/DD/YYYY)\',\'\',\'\', \'\', \'date\', \'<>\', \'\', \'text\', \'10\', \'20\', \'\', \'\', \'bold\', \'contact\', \'80\'],
          \'4\' => [\'status\',\'ascend\', \'\', \'\', \'\', \'\',\'\',\'\',\'\', \'\', \'string\', \'=\', \'\', \'text\', \'40\', \'80\', \'\', \'\', \'\', \'\', \'80\'],
          \'5\' => [\'ad_duration\',\'ascend\', \'\', \'\', \'\', \'\',\'\',\'\',\'on\', \'\', \'number\', \'<>\', \'\', \'text\', \'40\', \'80\', \'\', \'\', \'\', \'\', \'80\'],
          \'6\' => [\'times_renewed\',\'ascend\', \'\', \'\', \'\', \'\',\'\',\'\',\'\', \'\', \'number\', \'<>\', \'\', \'text\', \'40\', \'80\', \'\', \'\', \'\', \'\', \'80\'],
          \'7\' => [\'sitename\',\'ascend\', \'\', \'\', \'\', \'\',\'\',\'\',\'\', \'\', \'string\', \'=\', \'\', \'text\', \'40\', \'80\', \'\', \'\', \'\', \'\', \'80\'],
          \'8\' => [\'adlanguage\',\'ascend\', \'\', \'\', \'\', \'\',\'\',\'\',\'\', \'\', \'string\', \'=\', \'\', \'select\', \'40\', \'80\', \'\', \'on\', \'\', \'\', \'80\'],
          \'9\' => [\'visibility\',\'ascend\', \'\', \'\', \'\', \'\',\'\',\'\',\'\', \'\', \'string\', \'=\', \'\', \'select\', \'40\', \'80\', \'\', \'\', \'\', \'\', \'80\'],
          \'10\' => [\'priority\',\'descend\', \'\', \'\', \'\', \'\',\'\',\'\',\'\', \'\', \'number\', \'<>\', \'\', \'select\', \'40\', \'80\', \'\', \'\', \'\', \'\', \'80\'],

          \'11\' => [\'name\',\'ascend\', \'1\', \'\', \'\', \'3\', \'Navn\',\'\',\'on\', \'\', \'string\', \'=\', \'on\', \'text\', \'30\', \'80\', \'\', \'\', \'regular\', \'contact\',  \'80\'],
          \'12\' => [\'company\',\'ascend\', \'2\', \'\', \'\', \'4\', \'Firma\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'text\', \'30\', \'80\', \'\', \'on\', \'regular\',  \'contact\', \'80\'],
          \'13\' => [\'street\',\'ascend\', \'3\', \'\', \'\', \'5\', \'Adresse\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'text\', \'30\', \'80\', \'\', \'\', \'optional\',  \'contact\', \'80\'],
          \'14\' => [\'city\',\'ascend\', \'4\', \'\', \'\', \'6\', \'By\',\'\',\'on\', \'\', \'string\', \'=\', \'on\', \'text\', \'30\', \'80\', \'%%cities%%\', \'\', \'regular\',  \'contact\', \'80\'],
          \'15\' => [\'zip\',\'ascend\', \'5\', \'\', \'\', \'7\', \'Post Nr.\',\'\',\'\', \'\', \'number\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'\', \'regular\', \'contact\',  \'80\'],
          \'16\' => [\'country\',\'ascend\', \'6\', \'\', \'\', \'8\', \'Land\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'\', \'regular\', \'contact\',  \'80\'],
          \'17\' => [\'phone\',\'ascend\', \'7\', \'\', \'\', \'9\', \'Telefon Nr.\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'\', \'optional\',  \'contact\', \'80\'],
          \'18\' => [\'display_address\',\'ascend\', \'8\', \'\', \'\', \'\', \'Ønsker Du At Følgende Skal Vises (Eller Bliver Det Skjult) I Din  Annonce ?\',\'\',\'\', \'\', \'string\', \'=\', \'\', \'checkbox\', \'\', \'\', \'\', \'\', \'\', \'contact\', \'5\'],
          \'19\' => [\'email\',\'ascend\', \'9\', \'\', \'\', \'10\', \'E-mail Adresse\',\'\',\'on\', \'\', \'string\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'\',  \'email-primary\', \'contact\', \'80\'],
          \'20\' => [\'url\',\'ascend\', \'10\', \'\', \'\', \'11\', \'Hjemmeside URL\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'\', \'url\',  \'contact\', \'80\'],

          \'21\' => [\'category\',\'ascend\', \'11\', \'1\', \'\', \'12\', \'Kategori\',\'on\',\'on\', \'\', \'string\', \'=\', \'on\', \'select\', \'\', \'\', \'Bolig Salg Hovedstadsområdet|Bolig Salg Odense|Bolig Salg Århus|Bolig Salg Aalborg|Bolig Salg Sjælland|Bolig Salg Fyn|Bolig Salg Jylland|Andet\', \'on\', \'bold\', \'general\', \'80\'],

          \'22\' => [\'property_neighborhood\',\'ascend\', \'13\', \'3\', \'\', \'15\', \'Omegn\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'text\', \'40\', \'80\', \'\',  \'on\', \'regular\', \'features\', \'80\'],
          \'23\' => [\'property_city\',\'ascend\', \'12\', \'\', \'2\', \'14\', \'By\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'text\', \'40\', \'80\',  \'%%cities%%\', \'on\', \'regular\', \'features\', \'80\'],
          \'24\' => [\'property_zip\',\'ascend\', \'14\', \'6\', \'\', \'16\', \'Post Nr.\',\'\',\'\', \'\', \'number\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'on\',  \'regular\', \'features\', \'80\'],
          \'25\' => [\'bedrooms\',\'ascend\', \'15\', \'\', \'3\', \'18\', \'Værelser|Mindste Antal Værelser|Flest Antal Værelser\',\'\',\'\', \'\',  \'number\', \'<>\', \'on\', \'select\', \'\', \'\', \'0|1|2|3|4|5|6 +\', \'on\', \'regular\', \'features\', \'10\'],
          \'26\' => [\'price\',\'ascend\', \'18\', \'\', \'\', \'20\', \'Kontant Pris|Mindste Kontant Pris|Højeste Kontant Pris\',\'\',\'\', \'\', \'number\', \'<>\', \'on\',  \'text\', \'20\', \'80\', \'\', \'on\', \'regular\', \'features\', \'80\'],
          \'27\' => [\'building\',\'ascend\', \'16\', \'\', \'\', \'19\', \'Bolig Type\',\'on\',\'\', \'\', \'string\', \'=\', \'on\', \'select\', \'\', \'\',  \'Lejlighed|Andel|Hus|Villa|Andet\', \'on\', \'regular\', \'features\', \'20\'],
          \'28\' => [\'deposit\',\'ascend\', \'19\', \'\', \'\', \'21\', \'Netto Pris\',\'\',\'\', \'\', \'number\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'\', \'regular\',  \'features\', \'40\'],
          \'29\' => [\'deposit\',\'ascend\', \'20\', \'\', \'\', \'22\', \'Brutto Pris\',\'\',\'\', \'\', \'number\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'\', \'regular\',  \'features\', \'40\'],
          \'30\' => [\'deposit\',\'ascend\', \'21\', \'\', \'\', \'23\', \'Årstal\',\'\',\'\', \'\', \'number\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'\', \'regular\',  \'features\', \'40\'],
          \'31\' => [\'square\',\'ascend\', \'17\', \'\', \'\', \'24\', \'Størelse I M2|Mindste Antal M2|Højeste Antal M2\',\'\',\'\', \'\', \'number\',  \'<>\', \'on\', \'text\', \'20\', \'80\', \'\', \'on\', \'regular\', \'features\', \'40\'],
          \'32\' => [\'available\',\'ascend\', \'22\', \'\', \'\', \'25\', \'Ledig Indflynings Dato ?\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'text\', \'20\', \'80\', \'\', \'\',  \'regular\', \'features\', \'80\'],
          \'33\' => [\'metro\',\'ascend\', \'25\', \'\', \'\', \'26\', \'Nær Off. Trafik\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'checkbox\', \'\', \'\', \'\', \'on\',  \'regular\', \'options\', \'20\'],
          \'34\' => [\'exercise\',\'ascend\', \'26\', \'\', \'\', \'27\', \'Have\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'checkbox\', \'\', \'\', \'\', \'on\', \'regular\',  \'options\', \'30\'],
          \'35\' => [\'tennis\',\'ascend\', \'27\', \'\', \'\', \'28\', \'Køkken\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'checkbox\', \'\', \'\', \'\', \'on\', \'regular\',  \'options\', \'20\'],
          \'36\' => [\'sauna\',\'ascend\', \'28\', \'\', \'\', \'29\', \'Bad\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'checkbox\', \'\', \'\', \'\', \'on\', \'regular\',  \'options\', \'20\'],
          \'37\' => [\'garbage\',\'ascend\', \'29\', \'\', \'\', \'30\', \'Vaskemaskine\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'checkbox\', \'\', \'\', \'\', \'on\',  \'regular\', \'options\', \'20\'],
          \'38\' => [\'ac\',\'ascend\', \'30\', \'\', \'\', \'31\', \'Kælder\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'checkbox\', \'\', \'\', \'\', \'on\',  \'regular\', \'options\', \'30\'],
          \'39\' => [\'cable\',\'ascend\', \'31\', \'\', \'\', \'32\', \'Kabel TV\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'checkbox\', \'\', \'\', \'\', \'on\', \'regular\',  \'options\', \'20\'],
          \'40\' => [\'furnished\',\'ascend\', \'32\', \'\', \'\', \'33\', \'Møbleret\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'checkbox\', \'\', \'\', \'\', \'on\', \'regular\',  \'options\', \'20\'],
          \'41\' => [\'pets\',\'ascend\', \'33\', \'\', \'\', \'34\', \'Husdyr Tilladt\',\'\',\'\', \'\', \'string\', \'=\', \'on\', \'checkbox\', \'\', \'\', \'\', \'on\', \'regular\',  \'options\', \'20\'],

        \'42\' => [\'caption\',\'ascend\', \'23\', \'\', \'1\', \'35\', \'Overskrift\',\'\',\'on\', \'\', \'string\', \'=\', \'on\', \'text\', \'40\', \'80\', \'\', \'\', \'\', \'general\',  \'80\'],
          \'43\' => [\'text\',\'ascend\', \'24\', \'12\', \'\', \'36\', \'Beskrivelse\',\'\',\'on\', \'on\', \'string\', \'=\', \'on\', \'textarea\', \'5\', \'40\', \'\', \'on\',  \'regular\', \'description\', \'1000\']
        );


# The following variable specifies the default field above that the
# program will sort the search results by if no field is specified
# by the user as the sortable field.

$index_of_field_to_be_sorted_by = 3;

Avatar billede kidrock Nybegynder
14. januar 2002 - 18:17 #1
kidrock din torsk
Short name er det samme i alle 3!!!

Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester