I am getting closer, I can feel it.
Here is what I am testing, and it is not working.
Once I see the syntax in proper fashion, I will understand the logic.
BE RIGHT BACK
<?php #Color instrument vars
# ODC August 4, 2008
require_once ('????.php'); //Connect to database RESET TO SAFE PATH ONCE IT FUNCTIONS
// Define variables
$var1 = "Hello";
// Make selection
$query = "SELECT images FROM movie_images ORDER BY RAND()";
$result = mysql_query($query) or die(mysql_error());
// Table
if ($result) {
$i=1;
while ($row = mysql_fetch_array ($result, MYSQL_NUM)) {
$varname = "vars$i"; //will create a variable name: var1, var2, var3.....varn
$i++;
$varname = $row[0];
#######
##or use an array if you can
$vars[] = $row[0];
}
echo '<p>'. $var1 . '</p>';
//echo '<p>'. $result . '</p>';
//echo '<p>'. $s3 . '</p>';
echo '<p>'. $vars2 . '</p>';
}
else {
echo 'There was a problem...';
}
mysql_close(); // Close database connection
?>