Jump to content
php.lv forumi

Id izvadisana


Puika1

Recommended Posts

piem es uztaisiju scriptu,ka no datubazes izelk noteiktus laukus piemeram vards uzvards utt ka es varu uztaisit lai nemtu lietotaju pec vina id ka piemeram seit (lietotajs.php?id=2)

 

Reku ir pats scripts,tiko saku neka diza nau

 

<?
mysql_connect("localhost", "dsfdsfdsf", "dsfdsfsdf");
mysql_select_db("fdsfsdf");
$result = mysql_query("SELECT * FROM ibf_members");
while($r = mysql_fetch_array($result)) {
 echo $r['name'];
 echo "<br />";
 echo $r['email']; 
 echo "<br />";
 echo $r['mgroup']; 
}
?>

Link to comment
Share on other sites

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...