editing posts in MySQL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
buddok
Forum Commoner
Posts: 50
Joined: Tue May 25, 2004 2:44 pm

editing posts in MySQL

Post by buddok »

hey ppl well i have learnt how to edit using php an MySQL but im using my template thing with this


index2.php?page=


then the page and i use edit.php as my page so its

index2.php?page=edit

but then to go to the row that i want to edit it links to this in the code i have

echo "<a href='edit.php?cmd=edit&id=$id'>$title - Edit</a>

this links to the pesific page but because im using my template index2.php?page= i dont now how to link help needed urgently :( ? ??
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if you linked to index.php?page=edit&cmd=edit&id=$id ... edit.php would have access to the variables like normal $_GET['cmd'], $_GET['id'], whatever..
Post Reply