hi ...
plz i want help
if i have 2 pages of php
like (page1.php and page2.php) and i have in
page1.php (var)$db ="photoshop"and
in page2.php i have the same (var) $db
i want how can i give to the (var)$db in page2.php the same value i gave it to (var)$db in page1.php i will put code for examlpe
Code:
page1
print "<div style=\"position: absolute; width: 211px; height: 89px; z-index: 1; left: 15px; top: 345px\" id=\"layer1\">";print "<form method=\"$_post\" action=\"page2.php\"></p> ";
print "<p align=\"center\"><select size=\"1\" name=\"id\">";
$db = "photoshop";
$check1 = "select filename from $db";
$Result = mysql_query($check1);
while ($row = mysql_fetch_array($Result))
{
print("<option>".$row[filename]."</option>");
}
print ("</select>");
print "<p align=\"center\"><input type=\"submit\" value=\"Preview\" name=\"\" style=\"width: 60; height: 23; color: #FFFFFF; border: 0 solid #000000; background-image: url('../images/send.jpg'); background-repeat: repeat-x\"></div></p>
</form>";
print "</div> ";
Code:
page2
$check = "select filelink from $db where filename ='$id'";
$Result = mysql_query($check);
while ($row = mysql_fetch_array($Result))
{
$link = $row[filelink];
}
plz anyone can help me .............