Im trying to build a script when i hit the submit button the noticia[id] number alters the mysql
select ORDER BY id number but the problem is when i hit submit i cant get the number to change im trying to this
with forms so when they hit submit the Id number changes based on which listing they selected by hitting the submit
button. can anyone help me alter this so i can get the Id number to change the value does but the mysql query variable wont.
heres the code:
echo " <form action=\"preview.php\" method=\"post\" target=\"foo\" onSubmit=\"window.open(\"\", \"foo\", \"width=800,height=600,status=yes,resizable=yes,scrollbars=yes\" )\" >
<input type=\"hidden\" name=\"Id\" value=\"$noticia[id]\"/>
this is the code on preview.php
$layout_id = "echo POST_['Id']";
// Get all the data from the "layouts" table
$result = mysql_query("SELECT * FROM layouts ORDER BY id='$layout_id' DESC LIMIT 0,1")
or die(mysql_error());