PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 2nd, 2012, 01:53 PM
Sildona Sildona is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 7 Sildona User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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?

Reply With Quote
  #2  
Old November 2nd, 2012, 02:24 PM
ManiacDan's Avatar
ManiacDan ManiacDan is offline
Likely to be eaten by a grue.
Dev Shed God 10th Plane (9500 - 9999 posts)
 
Join Date: Oct 2006
Location: Pennsylvania, USA
Posts: 9,805 ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)ManiacDan User rank is General 77th Grade (Above 100000 Reputation Level)  Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127430 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Months 3 Weeks 17 h 43 m 13 sec
Reputation Power: 6112
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.

Reply With Quote
  #3  
Old November 2nd, 2012, 04:59 PM
maximas maximas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 29 maximas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #4  
Old November 2nd, 2012, 06:00 PM
Sildona Sildona is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 7 Sildona User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #5  
Old November 2nd, 2012, 06:04 PM
Sildona Sildona is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 7 Sildona User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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!

Reply With Quote
  #6  
Old November 2nd, 2012, 06:27 PM
Sildona Sildona is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 7 Sildona User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP5 - Dynamic PHP / Mysql Link leads to blank page

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap