hello
tell me plzzzz how to edit a row in a php table ?
i am waiting
tell me plzzzz how to edit a row in a php table ?
Moderator: General Moderators
Re: tell me plzzzz how to edit a row in a php table ?
Just open the document in your favourite editor and use the keyboard to make the changes.
Re: tell me plzzzz how to edit a row in a php table ?
no no
you didnt get me... listen i have a table and i wanna changes in any row with the help of php code.... for example on the web page if i click on the edit button... then i can edit some records on the page....
you didnt get me... listen i have a table and i wanna changes in any row with the help of php code.... for example on the web page if i click on the edit button... then i can edit some records on the page....
Re: tell me plzzzz how to edit a row in a php table ?
You need to be more specific.
Show us some code and what you've done so far.
Would you help me if I wrote: Please help me change the topic of my site ??????
Show us some code and what you've done so far.
Would you help me if I wrote: Please help me change the topic of my site ??????
like this code
its not working very well .... i wanna do some changes on this (below)--> code
$edit=$_POST['ID'];
if (isset($edit))
{
$sqlreqqry="UPDATE tbl_newuser SET email='$email', password='$password', first_name='$firstname',
last_name='$lastname', gender='$gender', college='$college', phone_number='$phonenumber' WHERE ID = '$id'";
}
while($reqkeys=$db->get_results($sqlreqqry))
{
echo $reqkeys["comment"];
}
$edit=$_POST['ID'];
if (isset($edit))
{
$sqlreqqry="UPDATE tbl_newuser SET email='$email', password='$password', first_name='$firstname',
last_name='$lastname', gender='$gender', college='$college', phone_number='$phonenumber' WHERE ID = '$id'";
}
while($reqkeys=$db->get_results($sqlreqqry))
{
echo $reqkeys["comment"];
}
Re: tell me plzzzz how to edit a row in a php table ?
When updating user data always use: http://us.php.net/manual/en/function.my ... string.php
get_results is a method of the class $db. What error do you get and how does that class look ?
Doesn't really make sense. What are you trying do to ?
get_results is a method of the class $db. What error do you get and how does that class look ?
Code: Select all
while($reqkeys=$db->get_results($sqlreqqry))
{
echo $reqkeys["comment"];
}Re: tell me plzzzz how to edit a row in a php table ?
PHP has no tables. Period.
PHP can access the database & affect database tables, or it can be used to generate markup & create HTML tables. It has no tables of it's own.
That may have been why ~papa was unclear what you wanted.
PHP can access the database & affect database tables, or it can be used to generate markup & create HTML tables. It has no tables of it's own.
That may have been why ~papa was unclear what you wanted.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.