This is a discussion on "[SOLVED] PHP database code issue" within the PHP Forum section. This forum, and the thread "[SOLVED] PHP database code issue are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] PHP database code issue
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
[SOLVED] PHP database code issue
I am struggling to get a bit of code to work, have i got it right ? I want to access the database once logged in to display customer details.
Last edited by Rob; Mar 29th, 2008 at 01:15. Reason: PHP tags instead of code tags, please |
|
|
|
||||
|
Re: PHP database code issue
Use this:
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: PHP database code issue
Ok just getting a blank screen on test.
|
|
|||
|
Re: PHP database code issue
^Did you echo $display_block ?
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
|
||||
|
Re: PHP database code issue
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: PHP database code issue
no, echo it below?
|
|
||||
|
Re: PHP database code issue
This should be the entire code
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
Last edited by Rob; Mar 29th, 2008 at 01:15. |
|
||||
|
Re: PHP database code issue
ok still nothing
|
|
||||
|
Re: PHP database code issue
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: PHP database code issue
Ok this is what I have got on the new page:
|
|
||||
|
Re: PHP database code issue
you gotta connect to the database!
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: PHP database code issue
Ok, just to make sure we all know what I am trying to do.
Member logs in to the login screen and gets to the members area, from there they have a new menu, if they select account details, the new page is created with their personal details on it from the database. The new page must cross reference the username and password so as to display the correct details. |
|
||||
|
Re: PHP database code issue
|
|
||||
|
Re: PHP database code issue
i understand
you still gotta connect to the database.
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: PHP database code issue
In your code you posted a couple of posts up, you havent actually connected to the database.
(Okay you have now)
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: PHP database code issue
still getting a blank screen though
|
|
||||
|
Re: PHP database code issue
try deleting the ob_start();
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: PHP database code issue
nothing
|
|
||||
|
Re: PHP database code issue
can you show the entire script? or is the script above the entire script?
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|