Hello, this is my first attempt with PHP, I am fairly familiar with html and know a little js. but I am trying to figure out how to have an external page with an array of lines (sentences) and be able to pull specific lines from it from elsewhere on a webpage.
From what I was reading on a tutorial site I came up with this script for the external page, it may be wrong I don’t know:
Lines.php
<?php $Line[1]="sentence 1 here."; $Line[2]="sentence 2 here."; ?>then I believe I need to add an include into the page I want to pull the lines into.
<?php include("Lines.php"); what I'm having trouble with is echoing the sentence onto the page. I would also like to have some sort of a search function where I will have a pull down to select chapters and they select the line(s) and it will display them. Thanks for any help, I amy even be barking up the totally wrong tree, not sure.