PHP: strefaphp.net
PHP: strefaphp.net



 
Czy odwiedziłeś już te strony? -
dodał: Vengeance

Temat: pobieranie danych z kilku tabel, pola o tej samej
Autor
Data: 05-11-2007 15:06
kurak

dołączył:
19-11-2005 
Potrzebuje pomocy z pobieraniem danych z 2 tablic z pol o tych samych nazwach, nie moge tego za ch... zrobic :/ ciagle wywala mi bledy :[
moje tabele:

CREATE TABLE `mixtape` (
`id` int(11) NOT NULL auto_increment,
`artist` text NOT NULL,
`album` text NOT NULL,
`tracklista` text NOT NULL,
`opis` text NOT NULL,
`url` text NOT NULL,
`img` text NOT NULL,
`vip` int(8) NOT NULL default '0',
`data` text NOT NULL,
`ocena` int(11) NOT NULL default '0',
`ile_ocen` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=16 ;



CREATE TABLE `plyty` (
`id` int(11) NOT NULL auto_increment,
`artist` text NOT NULL,
`album` text NOT NULL,
`tracklista` text NOT NULL,
`opis` text NOT NULL,
`url` text NOT NULL,
`img` text NOT NULL,
`vip` int(8) NOT NULL default '0',
`data` text NOT NULL,
`ocena` text NOT NULL,
`ile_ocen` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=18 ;


chce z tych tabel wzciagnac pola id, artist, album a potem je zapetlic i posortowac wedlug daty malejąco

z gory thx... p0zdro 
Cytuj   Profil Email Komunikator

 

Polecamy
PHP: strefaphp.net
wyślij email informacje forum download skrypty katalog kursy porady artykuły home współpraca reklama kontakt