Page 1 of 1
tell me plzzzz how to edit a row in a php table ?
Posted: Tue Feb 24, 2009 3:30 am
by spice006
hello
tell me plzzzz how to edit a row in a php table ?
i am waiting
Re: tell me plzzzz how to edit a row in a php table ?
Posted: Tue Feb 24, 2009 3:37 am
by papa
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 ?
Posted: Tue Feb 24, 2009 3:47 am
by spice006
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....
Re: tell me plzzzz how to edit a row in a php table ?
Posted: Tue Feb 24, 2009 3:49 am
by papa
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 ??????
like this code
Posted: Tue Feb 24, 2009 4:04 am
by spice006
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"];
}
Re: tell me plzzzz how to edit a row in a php table ?
Posted: Tue Feb 24, 2009 4:13 am
by papa
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 ?
Code: Select all
while($reqkeys=$db->get_results($sqlreqqry))
{
echo $reqkeys["comment"];
}
Doesn't really make sense. What are you trying do to ?
Thanks
Posted: Tue Feb 24, 2009 4:49 am
by spice006
thanks i solved my problem by self...
ok bye and takecare
see you again
Re: tell me plzzzz how to edit a row in a php table ?
Posted: Tue Feb 24, 2009 10:03 am
by pickle
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.