Re_Boot Posted March 18, 2008 Report Share Posted March 18, 2008 (edited) Sveiciens visiem, sen neesu nevienu terorizejis ar saviem stulbajiem jautaajumiem, bet nu ir pienacis tads bridis... Man vajag kadu skriptu, kas nolasa no datubazes konkreto ID no row, piemeram 5, un tad parada datus kas tur ir, nu mana gadijuma man vajag lai parada bildi, kas tur bus apzimeta ar img/bildes/bilde.jpg, un kad vinjs to bildi parada, vajag lai bilde samazinatos vai palielinatos atkariba kaa man vajadzes... Ludzu palidziibu! Itka butu labi gatavs skripts, bet es zinu ka shaja foruma tas nevienam nepatiik! :D Edited March 18, 2008 by Re_Boot Link to comment Share on other sites More sharing options...
Vebers Posted March 18, 2008 Report Share Posted March 18, 2008 gatavs skripts nav :p Uztaisi. viss kas jazina ir mysql_connect, mysql_select_db, mysql_query, mysql_fetch_assoc, kāds no cikliem (while, for) un echo vai print funkcija. Kā arī vienkārši SELECT SQL vaicājumi. Un ja vēlies vēl graizīt / staipīt bildes tad vēl php.net/gd Link to comment Share on other sites More sharing options...
Re_Boot Posted March 18, 2008 Author Report Share Posted March 18, 2008 (edited) em, kapec shis skripts nestrada? print '<IMG SRC='. $row["cardimg"] .'' ja es prosta $row["cardimg"]; shita ielieku tad vinjs paraada tikai tekstu! :D Edited March 18, 2008 by Re_Boot Link to comment Share on other sites More sharing options...
Paulinjsh Posted March 18, 2008 Report Share Posted March 18, 2008 echo '<img src="'. $row['cardimg'] .'" alt="" />'; pamēģini tā, bet nu tīra zīlēšana Link to comment Share on other sites More sharing options...
werd Posted March 19, 2008 Report Share Posted March 19, 2008 em, kapec shis skripts nestrada? print '<IMG SRC='. $row["cardimg"] .'' ja es prosta $row["cardimg"]; shita ielieku tad vinjs paraada tikai tekstu! :D echo $row["cardimg"]; tev atgriez piemeram bilde_1.jpg un <img src='.$row["cardimg"].' tev atgriezis <img src='bilde_1.jpg'> a tev pec pirma posta teikta vajag <img src='img/bildes/bilde_1.jpg'> Link to comment Share on other sites More sharing options...
Re_Boot Posted March 20, 2008 Author Report Share Posted March 20, 2008 (edited) Man ir velviena problema... <? if ($infos2['field'] = (NULL)) echo '<strong>Field Card Zone</strong>'; else echo '<img src='.$infos2["field"].''; ?> Skripts ari nedarbojas kka pareizi... Datubaze Field ROW izstas shadi: img/cards/card.jpg Edited March 20, 2008 by Re_Boot Link to comment Share on other sites More sharing options...
Recommended Posts