Goedenavond!
Ik ben niet echt bekend in PHP, heb al op internet gezocht maar kom er niet uit.
Ik heb dit stukje code:
En ik krijg deze melding:
Ik ben niet echt bekend in PHP, heb al op internet gezocht maar kom er niet uit.
Ik heb dit stukje code:
Code:
<?
$file = "9908131231.txt";
if(!$file){echo "You haven't specified the file containing your data";exit;};
$array = file($file);
$count = count($array);
$quote = $_REQUEST["quote"];
$rand = rand(0, --$count);
if (!$quote){ echo $array[$rand];}
else {echo $array[--$quote];};
?>
En ik krijg deze melding:
HTML:
Notice: Undefined index: quote in /public/sites/generators.bartschriever.nl/netflix/gen.php on line 9