Vraag : probleem het dragen variabele door een lijn

Hallo, code
The in bijlage de gebruiker toe die stadsnamen in te voeren door komma in de eerste doos en dan de sleutelwoorden worden gescheiden door komma's in de tweede doos wordt gescheiden: produceert het aanvankelijke resultaat

The een lijst van urls
bijvoorbeeld

if u
Portland (in de hoogste doos)
and
attorney (in de bodemdoos)

it produceert de volgende lijst van urls ingaat die kan worden gezien of is het volgende gedeelte dat met online 35 begint uncommented: de

//TO MENING LEIDDE tot URLS UNCOMMENT THIS
//foreach ($urls als $key => $value) {
// echo $value. „
“;
//}
//exit ();

here is de steekproeflijst produced
http://www.google.com/sear ch? q=portland+attorney+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "
http://www.google.com/sear ch? q=attorney+portland+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "

(merk op dat het manuscript een versie voor „de procureur van Portland“ en „procureur Portland“) produceert

If ik aan enter
Portland, Spokane (hoogste doos)
attorney was, de advocaat (bodemdoos)
the na urls worden geproduceerd:

http://www.google.com/sear ch? q=Portland+attorney+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "
http://www.google.com/sear ch? q=attorney+Portland+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "
http://www.google.com/sear ch? q=Portland++lawyer+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "
http://www.google.com/sear ch? q=+lawyer+Portland+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "
http://www.google.com/sear ch? q=+Spokane+attorney+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "
http://www.google.com/sear ch? q=attorney++Spokane+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "
http://www.google.com/sear ch? q=+Spokane++lawyer+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "
http://www.google.com/sear ch? q=+lawyer++Spokane+&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: official "

(merk op dat het manuscript enkel elke combinatie neemt en tot een url) leidt

Now het tweede deel van het manuscript verondersteld is om specifieke stukken gegevens te schaven van het voortvloeien url.  Zo zal ik de commentaren terug naar de sectie zetten die bij lijn 35 begint dat ik… hierboven

and vermeldde als het I enter
attorney (in de bodemdoos)

the manuscript/>Portland het correcte output (eigenlijk in lijstformaat)

Position Domein Phone
1 www.portlandattorneyatlaw.org (503) 308-1291
2 www.stahancyk.com (503) 222-9115
3 www.gevurtzmenashe.com (503) 227-1515
4 www.yourinjurylawyers.com (503) 224-1106
5 www.goldbergjones-wa.com (503) 731-8888
6 www.baxterlaw.com (503) 297-9031
7 www.portlandlegalservices.com (503) 222-7401
1 www.portlandattorneyatlaw.org (503) 308-1291
2 www.stahancyk.com      (503) 222-9115
3 www.gevurtzmenashe.com (503) 227-1515
4 www.yourinjurylawyers.com (503) 224-1106
5 www.goldbergjones-wa.com (503) 731-8888
6 www.baxterlaw.com (503) 297-9031
7 www.portlandlegalservices.com (503) heeft 222-7401

It elke url genomen (herinner me er geproduceerde twee waren voor de versie wanneer er slechts één ingevoerd in elke doos) zijn en geschaafde gegevens van het voortvloeien page.

If die ik, is

Portland, Spokane (hoogste doos) ben binnengegaan
attorney, advocaat (bodemdoos) resultaat

The als volgt dat is:

Position Domein Phone
1 www.laymanlawfirm.com (509) 455-8883
2 www.maxeylaw.com (509) 458-0183
3 www.lukins.com (509) 455-9555
4 thegaiahouse.com (509) 327-2560
5 www.denniscronin.com (509) 328-5600
6 ewinganderson.com (509) 838-4261
7 www.wkdtlaw.com (509) 624-5265
1 www.laymanlawfirm.com (509) 455-8883
2 www.maxeylaw.com (509) 458-0183
3 www.lukins.com (509) 455-9555
4 thegaiahouse.com (509) 327-2560
5 www.denniscronin.com (509) 328-5600
6 ewinganderson.com (509) 838-4261
7 www.wkdtlaw.com (509) 624-5265
1       www.laymanlawfirm.com (509) 455-8883
2 www.maxeylaw.com (509) 458-0183
3 www.lukins.com (509) 455-9555
4 thegaiahouse.com (509) 327-2560
5 www.denniscronin.com (509) 328-5600
6 ewinganderson.com (509) 838-4261
7 www.wkdtlaw.com (509) 624-5265
1 www.laymanlawfirm.com (509) 455-8883
2 www.maxeylaw.com (509) 458-0183
3 www.lukins.com (509) 455-9555
4 thegaiahouse.com (509) 327-2560
5 www.denniscronin.com (509) 328-5600
6 ewinganderson.com (509) 838-4261
7 www.wkdtlaw.com (509) 624-5265
1 www.laymanlawfirm.com (509) 455-8883
2 www.maxeylaw.com (509) 458-0183
3 www.lukins.com (509) 455-9555
4 thegaiahouse.com (509) 327-2560
5 www.denniscronin.com (509) 328-5600
6 ewinganderson.com (509) 838-4261
7 www.wkdtlaw.com (509) 624-5265
1 www.laymanlawfirm.com (509) 455-8883
2 www.maxeylaw.com (509) 458-0183
3 www.lukins.com (509) 455-9555
4 thegaiahouse.com (509) 327-2560
5 www.denniscronin.com (509) 328-5600
6 ewinganderson.com (509) 838-4261
7 www.wkdtlaw.com (509) 624-5265
1 www.laymanlawfirm.com (509) 455-8883
2 www.maxeylaw.com (509) 458-0183
3 www.lukins.com (509) 455-9555
4 thegaiahouse.com (509) 327-2560
5 www.denniscronin.com (509) 328-5600
6 ewinganderson.com (509) 838-4261
7 www.wkdtlaw.com (509) 624-5265
1 www.laymanlawfirm.com (509) 455-8883
2 www.maxeylaw.com (509) 458-0183
3 www.lukins.com (509) 455-9555
4 thegaiahouse.com (509) 327-2560
5 www.denniscronin.com (509) 328-5600
6 ewinganderson.com (509) 838-4261
7 www.wkdtlaw.com (resultaat 509) 624-5265

This is slechts correct gedeeltelijk. De resultaten voor rijen 1-14 (1 door 7 en opnieuw 1-7) zijn correct voor Spokane en advocaat maar anderzijds herhaalt het enkel het zelfde ding voor volgende (42) rows.

What zou moeten gebeurd zijn is:

1-7 zou resultaten moeten geweest zijn want procureur "
8-14 de „van Portland resultaten voor „procureur Portland "
15-21 zou moeten geweest zijn zou moeten resultaten voor advocaat "
22-28 geweest zijn de „van Portland zou moeten resultaten voor „advocaat Portland "
29-35 geweest zijn zou moeten resultaten voor procureur "
36-42 geweest zijn de „van Spokane zou moeten resultaten voor „procureur Spokane "
43-49 geweest zijn zou moeten resultaten voor advocaat "
50-56 geweest zijn de „van Spokane zou moeten resultaten voor „advocaat Spokane "

Can geweest zijn iemand gelieve een blik bij het manuscript neemt dat met online 48 begint en te proberen om me te helpen begrijpen wat de behoefte van I veranderen om juiste output van toe te staan resultaten? Ik zou verscheidene komma moeten kunnen invoeren scheidde waarden in het hoogste vakje en het bodemvakje om een lange lijst van records.

.

hartelijk dank uit te vaardigen
" codeBody "
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
 $v) {
        $urlelements = explodeer ('', $v);
        $url = 'http://www.google.com/search?q=';
        foreach ($urlelements als $k2 => $v2) {
            $url. = $v2. „+“;
        }
        $url. = „&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla: de Engels-V.S.: ambtenaar "“;
        $urls [] = $url;
    }
    //TO MENING GECRE�ëRDE URLS UNCOMMENT DIT
    //foreach ($urls als $key => $value) {
    // echo $value. „
“; //} //exit (); echo „
 \ n“; // VERBETERT LEESBAARHEID
    //

    echo „“;
    echo „“;

    echo „“;
    echo „“;
    foreach ($urls als $u) {
        $ch = curl_init ();
        curl_setopt ($ch, CURLOPT_URL, $url);
        curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
        $file=curl_exec ($ch) of matrijs (curl_error ());
        curl_close ($ch);
        // LEIDT TOT EEN SERIE VAN HTML1. Domein
        $arr = explodeer („“, $file);
        // VERWERPT HET ONGEWENSTE MATERIAAL BIJ DE BOVENKANT VAN HTML
        unset ($arr [0]);
        // RUIMT ELK ELEMENT VAN DE SERIE OP
        foreach ($arr als $ptr => $string)
        {
        // BEPAALT DE PLAATS VAN HET EIND VAN NUTTIGE GEGEVENS
            $poz = strpos ($string, „  - “);
        // EIND VAN GEVONDEN NIET GEGEVENS - SLA DIT ELEMENT OVER
            als ($poz VALSE ===)
            {
                unset ($arr [$ptr]);
                ga verder;
            }
        // VERWIJDERT DE NUTTELOZE SLEPENDE ENTITEITEN VAN DE REPARATIE VAN HTML VAN GEGEVENS EN (XML)
            $arr [$ptr] = substr ($string, 0, $poz);
            $arr [$ptr] = str_replace („& “, „&“, $arr [$ptr]);
        }

        // LEIDT TOT EEN SERIE VAN HTML2. Het Aantal van de telefoon
        $arr2 = explodeer („  - “, $file);
        // VERWERPT HET ONGEWENSTE MATERIAAL BIJ DE BOVENKANT VAN HTML
        unset ($arr2 [0]);
        // RUIMT ELK ELEMENT VAN DE SERIE OP
        foreach ($arr2 als $ptr => $string2)
        {
        // BEPAALT DE PLAATS VAN HET EIND VAN NUTTIGE GEGEVENS
            $poz = strpos ($string2, „  - “;
}
}
echo „
PositionDomainPhone
“; echo $i; echo „“; echo $arr [$i]; echo „“; echo $arr2 [$i]; echo „
“; } anders { echo „ "; echo „“; echo „“; echo „“; echo „“; echo „“; echo „“; echo „“; echo „“; echo „“; echo „“; echo „
“; echo „“; } ? >

Antwoord : probleem het dragen variabele door een lijn

Welke versie van Toegang gebruikt u?

Als u 2003 of vroeger gebruikt, kunt u uw gegevensbestand herhalen en het synchroniseren wanneer u terugkeert te werken.

Zorg enkel ervoor dat u Replicatie bestudeert, kan het sommige problemen veroorzaken.

ZORG ERVOOR U UW OB!!!!! EERST STEUNT!

De nieuwere versies van Toegang steunen geen Replicatie. Tenzij uw gegevensbestand in .mdb formaat is.

http://office.microsoft.com/en-us/access-help/methods-and-properties-used-to-programmatically-replicate-a-database-mdb-HP003069832.aspx?queryid=c256aa3f077f46f19ee8a9162905ec05&respos=5&CTT=1&av=ZAC110
http://it.toolbox.com/blogs/kawaii/replicating-microsoft-access-databases-28011


TLH
Andere oplossingen  
 
programming4us programming4us