mikeduke Posted April 24, 2007 Share Posted April 24, 2007 Hi I have recently been working on a website and converting to php. However when I upload it to the server, I cannot get the file to be parsed as php. I get errors and also the php appearing in the source code. My code is as follows <?php session_start();?> <?php mysql_connect("uk-upload.demon.co.uk", ****", "****") or die(mysql_error()); mysql_select_db("dblogin") or die(mysql_error()); ?> <html> <head> <title> IDEA UK User Group | HOME </title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <div href="index.php" class="colourbox"> MORE HTML/CSS <?php $sql = mysql_query("SELECT Title,Date,Text,Link,Display from News order by ID desc") or die(0); $display_news=mysql_query("SELECT Display from News") or die(mysql_error()); $num = mysql_num_rows($sql); $array_temp = array(); for($j=3;$j>=0;--$j) { for($i=$num-1;$i>=0;--$i) { $array[$i] = mysql_fetch_array($sql); More code everything past the bolded > appears unparsed. Does anyone have any advice? Many thanks Link to comment https://forums.phpfreaks.com/topic/48511-unparsed-code-appearing/ Share on other sites More sharing options...
shaunrigby Posted April 24, 2007 Share Posted April 24, 2007 Ask your web host does your package provide PHP programming? Link to comment https://forums.phpfreaks.com/topic/48511-unparsed-code-appearing/#findComment-237328 Share on other sites More sharing options...
mikeduke Posted April 24, 2007 Author Share Posted April 24, 2007 Yeah Its demon, its a job im doing for work, I phoned demon and upgraded the account to php. However it still wsnt enabled so I went and changed it in the control panel and also set up My SQL which now works (I have set up the database) The address is www.ideaukusergroup.com Link to comment https://forums.phpfreaks.com/topic/48511-unparsed-code-appearing/#findComment-237339 Share on other sites More sharing options...
shaunrigby Posted April 24, 2007 Share Posted April 24, 2007 Create a new file called test.php and put inside it: <?php phpinfo(); ?> If you see information on the page then you have PHP enabled, if not, then iot may take some time for your webhost to move you over to a server that has PHP enabled Link to comment https://forums.phpfreaks.com/topic/48511-unparsed-code-appearing/#findComment-237347 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.