I'd like to display the contents of some fields in a MySql table as a table on a webpage. I found sample scripts, but I'm doing something wrong in trying to adapt them. Can anyone give me a link to a webpage that displays a table like this, so I can view the source code and see where I'm going wrong?
TIA
Tearose49
tearose49
0
Newbie Poster
Recommended Answers
Jump to PostI'd like to display the contents of some fields in a MySql table as a table on a webpage. I found sample scripts, but I'm doing something wrong in trying to adapt them. Can anyone give me a link to a webpage that displays a table like this, so I …
Jump to Post.I think it's not connecting to the database, as we added a couple echo statements that should tell me if if got to the db, then to the table. It doesn't print them, so I guess that's the first problem.
Would you mind posting said code here for review?
…
Jump to PostHi again,
The easiest way is to create a seperate PHP page that only holds your database login details, no HTML.
For example:<?php $host="localhost"; $username="myusername"; $password="mypassword"; ?>
You can then include this page in your main page (where you currently have your login details):
All 12 Replies
Zagga
tearose49
0
Newbie Poster
Will Gresham
81
Master Poster
tearose49
0
Newbie Poster
tearose49
0
Newbie Poster
tearose49
0
Newbie Poster
Zagga
tearose49
0
Newbie Poster
Zagga
tearose49
0
Newbie Poster
Zagga
tearose49
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.