The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> PHP Development
|
PHP5 - Dynamic PHP / Mysql Link leads to blank page
Discuss Dynamic PHP / Mysql Link leads to blank page in the PHP Development forum on Dev Shed. Dynamic PHP / Mysql Link leads to blank page PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

November 2nd, 2012, 01:53 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 7
Time spent in forums: 1 h 25 m 16 sec
Reputation Power: 0
|
|
|
PHP5 - Dynamic PHP / Mysql Link leads to blank page
I have an auto generated link that gets assigned to some Mysql query data.
The link seems to work
Code:
echo "<a href= '../prog/link.php?field=".urlencode($imgrow['customer_name'] ) . "'><h3>$imgrow[customer_name]</h3></a>";
and it points to "link.php" which is below
Code:
<?php
$link = urldecode( $_GET['customer_name'] );
echo "$link";
?>
But the destination page is blank. The database customer_name is filled with data.
And the URL that the page goes to =
http://website/prog/link.php?field=John+A.+Doe
what code do I need for my "link.php" file to work properly, so the customer's profile information in the database shows up on the destination page?
|

November 2nd, 2012, 02:24 PM
|
 |
Likely to be eaten by a grue.
|
|
Join Date: Oct 2006
Location: Pennsylvania, USA
|
|
|
Debug your link.php page. What do you mean "what code is required"? Do you want us to write a whole page for you given the requirements "it has to do something with the name"?
__________________
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
|

November 2nd, 2012, 04:59 PM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 29
Time spent in forums: 16 h 22 m 30 sec
Reputation Power: 0
|
|
|
I dont know what you obtain,but the problem which is obviously derived from "$_GET['customer_name']"...I think that it is empty
|

November 2nd, 2012, 06:00 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 7
Time spent in forums: 1 h 25 m 16 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by ManiacDan Debug your link.php page. What do you mean "what code is required"? Do you want us to write a whole page for you given the requirements "it has to do something with the name"? |
A whole page? The problem is probably one line missing, and I thought someone might know what that was. I have come across other tutorials that have expanded on this, and I believe the most complicated solutions was, I dunno, 8 lines.
If this solutions requires an entire page (what does that even mean when we're talking about digital pages (250,000 lines of code?), I'll find an easier solution.
|

November 2nd, 2012, 06:04 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 7
Time spent in forums: 1 h 25 m 16 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by maximas I dont know what you obtain,but the problem which is obviously derived from "$_GET['customer_name']"...I think that it is empty |
Yeah, it certainly behaves as if it's empty. Yet....
On another forum, I found someone who experienced something similar and got a solution. If it works for me, I'll try post the solution.
Thanks!
|

November 2nd, 2012, 06:27 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 7
Time spent in forums: 1 h 25 m 16 sec
Reputation Power: 0
|
|
|
?
Hey maniac and maximas,
Try replacing the line:-
echo "<a href = '{$row3['Remote_URL']}'>URL TEXT GOES HERE</a>";
With:-
echo "<a href = '{$row3['Remote_URL']}'>{$row3['Remote_URL']}</a>";
is the only half suggestion I've found, but I am having a hard time with the syntax.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|