Welcome Guest, Not a member yet? Register   Sign In
how to display data without using model
#1

[eluser]nil108[/eluser]
hiii...i am new in CodeIgniter ..i m trying to database data display without using model..here code


controller code
public function index($id)
{
$this->db->where('id',$id);
$data['user_data'] = $this->db->get('reg')->row();
$this->load->view('welcome_message',$data);
}
}


view code...
#2

[eluser]nil108[/eluser]
hiii...i am new in CodeIgniter ..and make simple login page ...
i m trying to database data display without using model..here code


controller code
public function index($id)
{
$this->db->where('id',$id);
$data['user_data'] = $this->db->get('reg')->row();
$this->load->view('welcome_message',$data);
}
}


view code...
so what is view code
#3

[eluser]nil108[/eluser]
please..help solving this bug
#4

[eluser]michalsn[/eluser]
Code:
First field: <?php echo $user_data->first_field; ?>
Of course code above assume you have column named "first_field" in your table.
#5

[eluser]nil108[/eluser]
thank you very much
#6

[eluser]Unknown[/eluser]
Data cursors enable you to read data directly from a graph by displaying the values of points you select on plotted lines, surfaces, images, and so on. You can place multiple datatips in a plot and move them interactively. If you save the figure, the datatips in it are saved, along with any other annotations present.

When data cursor mode is enabled, you can

Click on any graphics object defined by data values and display the x, y, and z (if 3-D) values of the nearest data point.
Interpolate the values of points between data points.
Display multiple data tips on graphs.
Display the data values in a cursor window that you can locate anywhere in the figure window or as a data tip (small text box) located next to the data point.
Export data values as workspace variables.
Print or export the graph with data tip or cursor window displayed for annotation purposes.
Edit the data tip display function to customize what information is displayed and how it is presented
Select a different data tip display function




Theme © iAndrew 2016 - Forum software by © MyBB