[ Príspevkov: 3 ] 
AutorSpráva
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 06.09.07
Prihlásený: 21.03.24
Príspevky: 263
Témy: 62 | 62
NapísalOffline : 18.05.2009 17:44 | Prepojeny select

Ahojte

mam dve tabulky
id | kategoria
1 | Hlavna uloha
2 | Vedlajsia uloha
3 | Kaskader

potom

id | id_kategoria | herec
1 | 1 | Jim carrey
2 | 1 | Jim carrey
3 | 1 | Jim carrey
4 | 2 | Jackie Chan

potreboval by som vypisat $id_kategoria ... ale nie cislo ale jej nazov, poradite ? DAKUJEM


Offline

Čestný člen
Čestný člen
Prepojeny select

Registrovaný: 17.10.06
Prihlásený: 08.01.11
Príspevky: 1752
Témy: 17 | 17
NapísalOffline : 18.05.2009 18:05 | Prepojeny select

predpokladam, ze to chces vypisat asi nejak takto
Kód:
select kategorie.kategoria,herci.herec from kategorie,herci where kategorie.id=herci.id_kategoria;


_________________
A Real Programmer might or might not know his wife's name. He does, however, know the entire ASCII code table.
Offline

Skúsený užívateľ
Skúsený užívateľ
Prepojeny select

Registrovaný: 30.05.06
Prihlásený: 08.10.14
Príspevky: 1756
Témy: 35 | 35
Bydlisko: BA - WESTSIDE
NapísalOffline : 18.05.2009 18:05 | Prepojeny select

Síce si to nenapísal veľmi presne, ale dovtípil som sa, že chceš asi toto:
Kód:
SELECT t2.id, t2.herec, t1.kategoria FROM tabulka1 AS t1, tabulka2 AS t2 WHERE t1.id = t2.id_kategoria


_________________
A. S. Tanenbaum píše:
The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice.
 [ Príspevkov: 3 ] 


Prepojeny select



Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy.

Monitor Philips prepojený s ntb

v Monitory, televízory a projektory

1

392

09.08.2012 23:49

eMp

V tomto fóre nie sú ďalšie neprečítané témy.

Existuje Usb konektor prepojený s jack ?

v Notebooky a netbooky

1

355

02.11.2014 20:41

Miso122

V tomto fóre nie sú ďalšie neprečítané témy.

PC prepojeny s TV - VGA/SCART

v TV

1

741

11.01.2016 14:44

t0m@$

V tomto fóre nie sú ďalšie neprečítané témy.

formular: presun <option> zo <select> do <select>

v Frontend

2

844

28.09.2009 15:27

tomast7

V tomto fóre nie sú ďalšie neprečítané témy.

select

v Databázy

8

611

16.03.2012 14:09

zdeniatqo

V tomto fóre nie sú ďalšie neprečítané témy.

Select

v Frontend

3

513

13.09.2012 21:49

1daemon1

V tomto fóre nie sú ďalšie neprečítané témy.

SELECT

v Databázy

6

1496

31.08.2006 13:50

tRizzO

V tomto fóre nie sú ďalšie neprečítané témy.

select

v Backend

7

722

02.05.2008 13:53

mondzo

V tomto fóre nie sú ďalšie neprečítané témy.

select nefunkcny

v Databázy

5

633

07.06.2010 14:08

MisakNo10

V tomto fóre nie sú ďalšie neprečítané témy.

Select option

v Frontend

5

673

06.06.2017 10:12

hatto13

V tomto fóre nie sú ďalšie neprečítané témy.

select datetime

v Databázy

11

892

03.10.2010 11:06

KViki

V tomto fóre nie sú ďalšie neprečítané témy.

Select script

v Frontend

14

743

06.08.2012 23:51

Vojko

V tomto fóre nie sú ďalšie neprečítané témy.

zly select

v Databázy

2

736

07.07.2012 19:59

Ďuri

V tomto fóre nie sú ďalšie neprečítané témy.

Komplikovany select

v Databázy

2

617

23.03.2012 16:52

general667

V tomto fóre nie sú ďalšie neprečítané témy.

Stromový select

v Backend

5

487

07.05.2009 19:08

Tominator

V tomto fóre nie sú ďalšie neprečítané témy.

SELECT OPTION

v Frontend

3

621

06.03.2009 14:34

Ďuri



© 2005 - 2026 PCforum, edited by JanoF