Re: getting a details-page
| From: | scag at sillyplaces dot com | Date: | Sat, 22 Sep 2001 12:53:17 +0000 |
| Subject: | Re: getting a details-page | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12654@lists.php.net to get a copy of this message | ||
Hello Myro
I have copied this from some of my code i think this is an example that you want. From one WHILE
loop i list all that my SQL statement has found then within the HREF statements i include the
variables that i want to be used by the page that i link to.
I hope this is not confusing, im still learning myself so my explanations are not the greatest. Let
me know if this helps.
Mike
*******
while($user = mysql_fetch_array($result) ) {
$dcolor = ($a == 0 ? $dcolor_A : $dcolor_B);
echo "<td bgcolor=\"$dcolor\"><font color=\"#000000\">";
if ($pictext != "P") {
echo "<a
href=\"modules.php?op=modload&name=$module_name&file=$programname&pic=$user[fname]&letter=$letter&pictext=$pictext&sortby=$sortby&media=$media&catalogue=$catalogue&page=$page\">";
echo "<img src=\"modules/$module_name/thumb/$user[fname].jpg\"
style=\"border: 2 solid #FFFFFF\"></font></td>\n";
echo "<td bgColor=\"$dcolor\" valign=\"top\"><font
color=\"#000000\">$user[name]</font></td>";
echo "<td bgColor=\"$dcolor\"><A
HREF=\"modules.php?op=modload&name=$module_name&file=ecard&pic=$user[fname]&letter=$letter&pictext=$pictext&sortby=$sortby&media=$media&catalogue=$catalogue&page=$page\">
Ecard </a></td>";
}
echo "<td bgcolor=\"$dcolor\"><font
color=\"#000000\">$user[place]</font> </td>\n";
echo "<td bgcolor=\"$dcolor\"><A
HREF=\"user.php?op=userinfo&uname=$user[uname]\"><font
color=\"#000000\">$user[uname]</font></a> </td>\n";
echo "</tr>";
$a = ($dcolor == $dcolor_A ? 1 : 0);
}
******
----- Original Message -----
From: news.uni-mannheim.de
To: php-db@lists.php.net
Sent: Tuesday, September 11, 2001 9:44 AM
Subject: [PHP-DB] getting a details-page
Hello
I have a problem:
with a mysql_query I get the results of a table field into a list page.
Is it possible to use this result (as link) to open a new page where the
detailed results of each row are shown?
thx
Myro
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net