vabole Posted March 5, 2007 Report Share 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 Link to comment Share on other sites More sharing options...
andrisp Posted March 5, 2007 Report Share 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 ? Link to comment Share on other sites More sharing options...
vabole Posted March 5, 2007 Author Report Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts