Jump to content
php.lv forumi

Recommended Posts

Posted

Who i am tu teišām laikam esi muļķis , nu kāds sakars tam? TAS IR PHP KODS NEVIS KĀDA LIETA!!!!

 

Chizij, tādu kodu gan man nevajag.

Posted

Man prieks ka kāds grib līdzināties:

 

$result = mysql_query("SELECT name, thumb FROM users");

while ($row = mysql_fetch_assoc($result)) {
 echo "<img src='". $row["thumb"] ."' /> <br/>". $row["name"]. "<br/>";
}

Posted

Še

<?php
$host = "";
$db = "";
$db_user = "";
$db_pw = "";
mysql_connect($host, $db_user, $db_pw) or die ("Neizdevās pieslēgties");
mysql_select_db($db) or die ("Neizdevās pieslēgties pie DB");

$sql = mysql_query("SELECT * FROM ibf_members");
while($row = mysql_fetch_array($sql)) {


echo '<a href="forums/index.php?showuser='.$row['id'].'">'.$row['members_display_name'].'</a>';

}
?>

Vrb kkur ielaidu kļūdu, bet apmēram viss tā kā būtu

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...