Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Help po ulit about backedn php & mysqli

Status
Not open for further replies.

ScreamAimsFire

Proficient
Advanced Member
Messages
228
Reaction score
13
Points
38
PHP and Mysqli

tanong lang po kung pano mag output ng specific na value ng isang data column through id. like pano ko po sya mapapalabas na ganito

Code:
Id         =  5
Name    = Jose Rizal
Section  = S1
Age       = 69
Height   = 6'9
Weight  = 69kg
etc..
etc..

Salamt po sa makakatulong at patuloy tumutulon ako po ay kasalukuyang nag aaral pa lang sa backend.
 
gumamit kapo ng where sa sql statement mo

SELECT * FROM your_table where id = 5
 
gumamit kapo ng where sa sql statement mo

SELECT * FROM your_table where id = 5

may button po kasi ako sa table every row meron and everytime na i cliclick ko yun sa value may id na po na kasama at kung ano po man angkanyang id number, ang tanong ko lang po pano ko po ma ipopost yung laman po ng row.
 
may button po kasi ako sa table every row meron and everytime na i cliclick ko yun sa value may id na po na kasama at kung ano po man angkanyang id number, ang tanong ko lang po pano ko po ma ipopost yung laman po ng row.

pedeng lagay mo sa object ung data. tapos ung id sa parameter.
 
sa button mo lagay ka ng
Code:
data-id= id sa table mo.
tapos mag event delegate ka like this

Code:
$('table tbody tr').on('click','buttonhere', function(){
id = $(this).attr('data-id');
your code....
});
 
Status
Not open for further replies.
Back
Top Bottom