getting php to work

[php]Crazy Funny Story

<?php> $con=mysqli_connect("localhost","xxx","xxxx","xxxx"); // Check connection if (mysqli_connect_errno($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } //SELECT * FROM Prompts order by RAND() $result = mysql_query("SELECT * FROM Prompts ORDER BY RAND() LIMIT 1"); $results = mysql_fetch_assoc($result); $saved_row = $results; //don't change $saved_row later on in the script echo $saved_row['promtext']; /* print youtube id */ ?php> [/php]that is my php code and my error is Parse error: syntax error, unexpected '?' in /srv/disk6/1501328/www/crazyfunnystories.atwebpages.com/randomprompt.php on line 19 it is probaly something way obvious but i am having a problem hear voices and being spiritual attacked of my physical body being kidnapped form earth having not died. please pray for me and if you can answer my problem

3 issues

1 either use mysqli or use mysql, can’t use both and
2 the error is ?php>, the appropriate close tag for php is ?>
3 also, the closing tag for body is , that’s just misspelled though.

Sponsor our Newsletter | Privacy Policy | Terms of Service