damn :), is it that hard?
http://groups.google.com/groups?q=al...oe=UTF-8&hl=en
With google you can access virtually any newsgroup(+archive).
Best Regards,
Lucas
"LRW" <druid@NOSPAHMcelticbear.com> schrieb im Newsbeitrag
news:Q%gOb.87151$8H.130499@attbi_s03...[color=blue]
> "J.O. Aho" <user@example.net> wrote in message
> news:buc3l2$g2u5e$1@ID-130698.news.uni-berlin.de...[color=green]
> > You need to make as many quieries as there are tables you want to[/color][/color]
search,[color=blue]
> of[color=green]
> > course you could make a join, but that depends on how things are related[/color]
> to[color=green]
> > eachother.
> >
> > Assume you have a array with the names of all the talbes you need to[/color]
> search,[color=green]
> > we call it $tables. Another arrya where you save the results, $found.
> >
> > for(i=0;i<count($tables);i++) {
> > $query="SELECT * FROM " . $table[i] . " WHERE name LIKE '%x%'";
> > $result=mysql_query($query);
> > while($row=mysql_fetch_array($result)) {
> > array_push($found,$row);
> > }
> > }
> >
> > Now you have all the result rows stored in $found, of course you can
> > send/process the $row in the while loop.
> >
> >
> > Follow up has been set to proper newsgroup, alt.php.sql[/color]
>
> Cripes! My ISP doesn't have alt.php.sql. That'd be a perfect group for a[/color]
lot[color=blue]
> of my questions! =/
>
> So $found wouldn't have to exist before we query, right?
> I do currently have another table that has all the table names in it.
> eg: (but not exactly like this,)
> 40 tables with the following columns: id, tbl_id, name, note
> Then a table (tbl_listing) with these columns: tbl_id, tbl_name
> Make sense? Each row in all 40 tables has a tbl_id number that corresponds
> to the table it's in, and the table tbl_listing has in each row the that
> table number and its name.
>
> So...that doesn't matter, does it? What would $table contain? The names of
> all 40 tables comma separated?
>
> Thanks for replying!
> Liam
>
>[/color]