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 |
|
#1
|
|||
|
|||
|
[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 |
|
|
|
#2
|
||||
|
||||
|
Re: PHP database code issue
Use this:
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#3
|
|||
|
|||
|
Re: PHP database code issue
Ok just getting a blank screen on test.
|
|
#4
|
|||
|
|||
|
Re: PHP database code issue
^Did you echo $display_block ?
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
|
#5
|
||||
|
||||
|
Re: PHP database code issue
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#6
|
|||
|
|||
|
Re: PHP database code issue
no, echo it below?
|
|
#7
|
||||
|
||||
|
Re: PHP database code issue
This should be the entire code
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Last edited by Rob; Mar 29th, 2008 at 01:15. |
|
#8
|
|||
|
|||
|
Re: PHP database code issue
ok still nothing
|
|
#9
|
||||
|
||||
|
Re: PHP database code issue
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#10
|
|||
|
|||
|
Re: PHP database code issue
As the page has got to look up the db details again, I am right in saying I need to remind the page of the db data again or just remind it to look at the db page again
|
|
#11
|
|||
|
|||
|
Re: PHP database code issue
Ok this is what I have got on the new page:
|
|
#12
|
||||
|
||||
|
Re: PHP database code issue
you gotta connect to the database!
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#13
|
|||
|
|||
|
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. |
|
#14
|
|||
|
|||
|
Re: PHP database code issue
|
|
#15
|
||||
|
||||
|
Re: PHP database code issue
i understand
you still gotta connect to the database.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
|
#16
|
||||
|
||||
|
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)
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|