The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Multiple HTML Files?, Novice HTML developer in need of help
Michael Averin
post Aug 12 2021, 09:33 PM
Post #1





Group: Members
Posts: 2
Joined: 12-August 21
Member No.: 28,040



Hi! So this is my first time ever working with HTML and I am trying to do a mini project having to do with NFL football. I want to make player profiles like how NFL.com does it. Their addresses to the profile of each respective player is as follows: https://www.nfl.com/players/player-name/. An example would be https://www.nfl.com/players/tom-brady/ or https://www.nfl.com/players/patrick-mahomes/. My project was going to be using a database of NFL players, making a table to show them with their respective stats, and if you click on their name their profile (which I would attempt to design) would appear. Would this require multiple HTML files to do so? Respective to each different link? This may be a dumb question but as I said before, I am a complete noob when it comes to anything web design. If someone could explain how NFL.com does it, maybe I would be able to mimic that? I appreciate the help!!!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Aug 13 2021, 01:02 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



If you're getting the information from a database, then no, you don't need multiple HTML files for each player. You only need 1 HTML file for this. I can't go into more detail unless I know how you plan to send the request to the server. Are you going to 'submit' the player name or are you going to use AJAX? Does the user have to know the player name and spelling? Or are you going to use a 'select' to show a list of player names?

HTML can't do any of this by itself. You need a web server using PHP or ASP, ..., a database server and on the client side you need to use Javascript.

This project is quite involved for a beginner but *beep* luck.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 13 2021, 01:59 AM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



Ha ha! What word did you use that got beeped? Or is "good" forbidden now? laugh.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Aug 13 2021, 02:06 AM
Post #4


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



QUOTE(Michael Averin @ Aug 13 2021, 11:33 AM) *

Hi! So this is my first time ever working with HTML...


Do you have any programming experience at all? If not, then as Charles says it is going to be a big job.

But I think the best approach is one thing at a time: separate it into two different jobs, first by making a page for a sample player, which means learning html and css "styling". Second work out how to write a program to generate a generic page from your database. There are lots of programming languages you can use: PHP is probably the most obvious, because it is immensely widespread, even though in terms of programming language design it is pretty terrible. (But nothing like as appalling as css, which is sort of in a class of its own.) You can use the NFL site for hints on how to make a page, because you can see the "code", the HTML source. You cannot though look at their database program, because it is hidden. If you want to keep things simple I would stay away from "AJAX".
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Michael Averin
post Aug 13 2021, 08:06 AM
Post #5





Group: Members
Posts: 2
Joined: 12-August 21
Member No.: 28,040



Thank you guys for the replies! Just to clarify, I am a novice at web development but I am experienced in programming. I have programmed in python, java, and have done lots of scripting. I am going to take things slow since I am aware of the difficulty of this project for a beginner like myself. Do you guys have any resources I could possibly use to learn more about web servers and PHP. I am going to do a lot of youtubing but I just want to see if there are alternate sources to choose from. Thanks again everyone!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Aug 13 2021, 12:29 PM
Post #6


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



Well, I did this almost 20 years ago, so this is not very up to date, but I had a (signed) copy of Philip Greenspun's "Phil and Alex's guide to web publishing", which is very beautiful, but completely fell to pieces, then (more practically) Willams and Lane, "Web database applications with PHP and MYSQL". I had never used a database system before, but it is basically pretty simple (at least since 1970-something when SQL was invented; before that it was a nightmare). Anyway, I more or less read Williams and Lane, and found it a very good start.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 13 2021, 03:11 PM
Post #7


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



The PHP manual is very easy to understand: https://www.php.net/manual/en/
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Aug 13 2021, 05:12 PM
Post #8


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



I don't know who put the *beep* in my post but I had put 'good'.

I've never read any books about programming anything. I start off by scanning the table of contents for whatever language I'm learning. I do this so I know every tool available to me. As I start using the language then I go to command specifics from the manual.

When I started programming there was no internet or PC for that matter.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 14 2021, 04:11 AM
Post #9


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



Testing: good luck!

It's the forum's bad word filter. I guess you must have made a typo, but I can't figure out what dirty word you may have accidentally typed. If it was up to me that stupid thing would be turned off altogether. tongue.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Aug 14 2021, 12:52 PM
Post #10


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Well, it's possible I made a typo but I seem to remember seeing 'good' when I looked over the post. I'm getting older and my eyes aren't as good as they once were so who knows.

Maybe I left out an 'o'? Test: god

This post has been edited by CharlesEF: Aug 14 2021, 01:15 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 14 2021, 01:24 PM
Post #11


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



I can't think of a single typo that would be deemed unsuitable for sensitive eyes... hood, food, goof, goos... aren't pointless mysteries interesting? laugh.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th March 2024 - 01:25 AM