Inside07 Posted November 30, 2004 Report Posted November 30, 2004 (edited) 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 November 30, 2004 by Inside07
bubu Posted November 30, 2004 Report Posted November 30, 2004 Nu tak rādi to, kura padota caur lapa.php?id=2 tb $_GET['id'] un tos ciparus 1|2|3|4 ģenerē ar linkiem, kuriem ir tas id=2 vai =3 vai =4, utt...
Venom Posted November 30, 2004 Report Posted November 30, 2004 ?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
Inside07 Posted November 30, 2004 Author Report Posted November 30, 2004 venom danke nu ideja aptuveni ir skaidra, bet kaads tas kods pats izskataas?
Venom Posted November 30, 2004 Report Posted November 30, 2004 sk. manuāli mysql_connect() mysql_query() mysql_fetch_assoc() if ... else statement
Recommended Posts