This code results in a blank line.PHP Code:
$query = "SELECT title,artist FROM picker WHERE songID=$tune";
$result = mysqli_query($link, $query);
/* numeric array */
$row = mysqli_fetch_array($result, MYSQLI_NUM);
What I don't understand is, why is there 3 variables and 3 lines of code?
KISS! Keep it simple stupid!
What the heck is mysqli_num?
My script I am trying to write is fairly simply.
I have two basic arrays.
Array 1 is built using scandir, which reads the files in the directories.
this will be several thousand items.
Array 1 is then shuffled.
Array 2 then gets the top 500 items of array 1.
At this point, the table is consulted and other information is added.
Sounds simple right?
So why isn't the coding?
Anyone have a better way of doing this?