Jump to content
php.lv forumi

switch un db


jauninjais

Recommended Posts

tu domaa kaut kaa shaadi:

 

<?php
$konekcija = mysql_connect('127.0.0.1','123','root') or die ("Datubāzei pieslēgties neizdevās");
mysql_select_db('123',$konekcija);
$vaicajums2 = "select * from `info` WHERE `id`= '$vairak'";
$rezultats = mysql_query($vaicajums2,$konekcija);

if(mysql_num_rows($rezultats) > 0){
while($rezultats2 = mysql_fetch_array($rezultats)){
	$resultsArray[] = $rezultats2['zinja'];
	echo "<b>[$rezultats2[3]]</b><br />$rezultats2[0]<hr color=\"#7d0415\" size=\"2\">";
	echo "<a href=\"java script:window.print()\"><img src=\"images/drukat.png\" border=\"1\" /></a>";
	echo "<img src=\"images/tukshs.png\" border=\"0\" /></a>";
	echo "<a href=\"vairak.php?raksts=forma\"><img src=\"images/sutit.png\" border=\"1\" /></a>";
}
}

------> // taalaak
$info .= "Ziņa:\n".$resultsArray[0]."\n";
?>

 

nee kaut kas neiet taa kaa vajag :/

Edited by jauninjais
Link to comment
Share on other sites

×
×
  • Create New...