Jump to content

unparsed code appearing


mikeduke

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.