Jump to content
php.lv forumi

par bildeem


Inside07

Recommended Posts

Ir lapa kuraa ielasa dazjaadu infu no DB tajaa skaitaa ielasa arii celju liidz bildej, bet lieta ir taada ka pie shii konkreetaa ID ir vairaakas bildes, kuras mainaas attieciigi noklikojot uz linkiem, bet infa paliek taa pati. skat zemaak.

 

 

<<prev 1|2|3|4 next>>

+-------------------------------+

| |

| Sheit ir bilde, kura mainaas|

|attieciigi uzklikojot uz ciparu|

|linkiem |

| |

+-------------------------------+

 

ID | 1

txt |dklsjsdklfjs klsdfj

utt | utututututututtttt

 

esmu izdomaajis daudz un dazjaadus variantus, bet liidz iistajam kaut kaa nesanaak tikt.

 

varbuut kaadam ir kaada praatiiga doma ?

Edited by Inside07
Link to comment
Share on other sites

?info=2&img=1

 

info_table:

id|title|comment

 

img_table

id|parent_id (=id no info table)|filename

 

select * from info_table where id=$_GET['info']

 

select filename from img_table where parent_id=$_GET['info'] and img=$_GET['img']

 

ķipa

Link to comment
Share on other sites

×
×
  • Create New...