Answer the question
In order to leave comments, you need to log in
How to generate a series of HTML pages based on a single template from a CSV file?
There is a directory of images in a CSV file.
Source: https://drive.google.com/file/d/1F_zWVaFDtjp82NDMZ...
Task: it is necessary to generate separate PHP (HTML) pages with data output (in TITLE, DESCRIPTION, H1, IMG, Text, A HREF="URL ").
$Image Number
$Image Name
$Title
$Description
$Image Source
$Keywords
$URL
$Page Name
That is, in fact, each line in CSV, when processed in PHP > produces HTML or PHP pages in the gallery > directory according to a given single template,
i.e. each individual physical page ($Page Name at the specified address on the server) with the data from the CSV file of the given row of the value of each variable:
$title, $description, $h1, $image_source, $keywords, $image (number), $url = .. .
This is necessary for indexing in Google Images, but there is no point in messing with MySQL for query processing yet.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question