Date: 12/29/00
- Next message: Brandon Orther: "[PHP] Perl Vs PHP"
- Previous message: WreckRman2: "RE: [PHP] How secure is this?"
- In reply to: kmurrah: "[PHP] control problem?"
- Next in thread: Philip Olson: "Re: [PHP] control problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You are not closing your link... you start with a quote (") but there is
none at the end of it
So change this part:
echo "(*SNIP")transaction='$transaction'>";
to this:
echo "(*SNIP")transaction='$transaction'\">"; (notice the \" at the end)
-----Original Message-----
From: kmurrah [mailto:kmurrah <email protected>]
Sent: Friday, December 29, 2000 11:20
To: php-general <email protected>; php-db <email protected>
Subject: [PHP] control problem?
Greetings:
Could someone help me? I'm having a problem with the following code:
-----------------------------
if ($row = mysql_fetch_array($result)) {
do { print "<tr>";
print "<td>";
$transaction=$row["transaction"];
echo "<a
href=\"www.bakergrfx.com/hsb/select_transaction.php?transaction='$transactio
n'>";
print $transaction; print "</a><td>";
print $row["order_number"]; print "<td>";
print $row["product_code"]; print "<td>";
print $row["description"]; print "<td>";
print $row["quantity_ordered"]; print "<td>";
print $row["date_shipped"];
} while($row = mysql_fetch_array($result)); } else {print "Sorry, no records
were found!";}
-----------------------------
Here's what happens: I expect a list of all transactions in my database,
each of them hyperlinked. It works perfectly until the LAST line, at which
point the code is broken, and instead of Transaction 29 (hyperlinked),I get
the following:
<a href="www.bakergrfx.com/hsb/select_transaction.php?transaction='29'>29
Can anyone tell me what I'm doing wrong?
Thanks so much in advance,
Ken
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Brandon Orther: "[PHP] Perl Vs PHP"
- Previous message: WreckRman2: "RE: [PHP] How secure is this?"
- In reply to: kmurrah: "[PHP] control problem?"
- Next in thread: Philip Olson: "Re: [PHP] control problem?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

