Jump to content

PLEASE HELP _ BIT LOST!!!


mikey_b

Recommended Posts

Hi all,

 

I'm sorry I don't come around here much - but please could someone help...you've always been so helpful here.

 

I taught myself php and some mysql in order to create my first ever database.

 

It worked fine (though I'm sure the snippet of code I've included below is probably extremely basic and a bit long in the tooth too!!!)

 

I've just upgraded my VPS hosting and it has gone from MySQL 4 to version 5.0.5(?) and I'm getting the following error when tryint to run the pages...

 

"Parse error: syntax error, unexpected ';' in /var/www/vhosts/vintage-home.co.uk/httpdocs/textile_pages/textiles_fabpage.php on line 183

"

The follwing code is the whole 'piece' from around that line number - the code on line 183 is that in line 4 shown below (begins 'else {echo ?> onclick...')

 

Could someone please tell me where I'm going wrong or what syntax rules have chaged...

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

<div id="polaroid_outer1"

  <?php

  if ($row_rs_textiles['image_1'] == "tx") { echo ">"; }

  else { echo ?> onclick="MM_goToURL('parent','../index_fab10.php?ItemCode=<?php echo $row_rs_item1['ItemCode'];?>&pagenum=<?php echo $row_rs_textiles['page_number']; ?>');return document.MM_returnValue"> <?php }?>

  <div id="polaroid1_status">

  <?php if ($row_rs_item1['Status'] == "S") {$polaroid_overlay1 = '../images_fab/vh_sold1.png';?> <img src= <?php echo $polaroid_overlay1; ?> border="0"/> <?php } ?>

  <?php if ($row_rs_item1['Status'] == "R") {$polaroid_overlay1 = '../images_fab/VH_reserved1.png';?> <img src= <?php echo $polaroid_overlay1; ?> border="0"/> <?php } ?>

  <?php if($row_rs_textiles['image_1'] == "tx") { echo "$largeblank"; } ?>

  </div>  

      <div id="pos_polaroid1">

  <img src= <?php echo ("../textile_files/".$row_rs_item1['ItemCode']."/".$row_rs_item1['ItemCode']."_polaroid1.jpg");?> border="0"/></div>

      <div id="pos_item_name1" align="center" class="polaroid_title">

  <?php if($row_rs_textiles['image_1'] == "tx") { echo "Watch this space..."; }

  else { echo $row_rs_item1['ItemTitle'];} ?>

      </div>

    </div>

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

Kind regards

 

Mikey B

Link to comment
Share on other sites

Bless you fenway - already realised this, re-posted on php section and received a solution striaght away.

 

A big thank you to you and all the phpfreaks...

 

Apologies if I should have added something to this entry.

 

Kind regards

 

mikey_b

Link to comment
Share on other sites

Guest
This topic is now 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.