Hey.
I have the next problem:
I've created a joomla-like administrator page to a site I just have to make.
You can add, edit and delete products and categories.
Now, my problem is:
No matter which product or category u try to edit (it is listed in a table with picture of it, title and so, and generated a link like http://localhost/site/admin/admin.php?option=products&module=products&action=edit&id=191e3689-5a7d-11df-883f-cddef017a2e5 ) and when I edit the last added product it gets from mysql the data of it as well... Any other (not the last) product's editing page is empty.
I used
if($_GET['action']==edit)
{
if($GET['id']==$r_id)
{
Where $r_id => $row['id']
// And here is the edit form
}
}
________________
But when I try to edit the categorys, no matter what id has the $_GET, it will edit the last added...
I used mysql_fetch_array in all two cases.
I don't get it. I tried, but fail... Can't repair it...
So I have to ask you. Maybe the problem is @ the retrieving part.
Or somebody had problem like this...
Or ... Could lookup my codings...
Please?
Thanks for reading and for the help _ I assume _
Byezz