Page 1 of 1

editing posts in MySQL

Posted: Fri Aug 27, 2004 9:12 pm
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 :( ? ??

Posted: Fri Aug 27, 2004 9:21 pm
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..