vabole Posted March 5, 2007 Report Posted March 5, 2007 (edited) Sāku taisīt tā zinas id | virsraksts | isazina | garazina Lapā iziet un gribu uztaisīt šādi $result = mysql_query("SELECT * FROM zinas ORDER BY id DESC"); while($row = mysql_fetch_array($result)) { echo $row['id'].".<a href='garazina'><b>".$row['virsraksts']."</a></b>"; echo .$row['isazina].; } Kāda būtu sistēma garajai ziņai? Edited March 5, 2007 by vabole
andrisp Posted March 5, 2007 Report Posted March 5, 2007 $result = mysql_query("SELECT * FROM zinas WHERE id = ".$zinjas_id); // To $zinjas_id, piem., aizvietojam ar $_GET['zinas_id'] $row = mysql_fetch_array($result); echo $row['garazina]; btw, echo $row['id'].".<a href='garazina'><b>".$row['virsraksts']."</a></b>"; ? Tu zini kā izskatās hiperlinks ?
vabole Posted March 5, 2007 Author Report Posted March 5, 2007 (edited) Ā, pieleca par hiperlinku. Vienkārši ar SQL sāku ņemties tikai pirms divām dienām, nezinu kā tos datus dabūt kur vaig :). Edited March 5, 2007 by vabole
Recommended Posts