Jump to content
php.lv forumi

Izvade no datu bāzes


Basma

Recommended Posts

Sveiki, problēma tāda :

<?php

$query = $this->db->get('users');

 

foreach ($query->result() as $row)

{

//echo "<br>".$row->user; //iekomentēts

}

?>

Kā izdarīt tā lai izvadītos mārkera vietā %s piemēram

Lietotājs : %s (no datu bāzes izvada *user* tikai vienu lietotāju!)

E-pasts : %s (no datu bāzes izvada *email* tikai vienu lietotāju!)

 

un lai izvada līdz beigām visu sarakstu no datu bāzes!

 

Lietotājs : name

E-pasts : name@name.lv

 

Lietotājs : name_2

E-pasts : name_2@name.lv

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