Hi all, i am really new to PHP and i am trying to learn off the tutorial that many of you have posted here for newbies, so if it sounds like i am asking a really stupid question then i am sorry in advance but would appreciate your help.
I have been able to get a database going but i have a slight problem, below i understand that it will display the fields "name" and "type" and a delete that will delete a entry in the table. What i cant figure out is how do i sort this by "name" so it will display all fields in name in alphabetical order?, also the name and type is a link that allows you to edit both the name and type but how do i show the 2 fields but make it so that the name is a link which you click on to edit both the name and field? hope this makes sense
printf("<a href=\"%s?id=%s\">%s %s</a> \n", $PHP_SELF, $myrow["id"], $myrow["name"], $myrow["type"]);
printf("<a href=\"%s?id=%s&delete=yes\">(DELETE)</a><br>", $PHP_SELF, $myrow["id"]);
Thanks again for your time and sorry if this problem has already been asked.
keigo