|
Thanks guys but now I get this error! Cheers Chris

PHP error happened Technical information
Error type 256
Error description Table 'Bauduc-_GQ0701.Wine' doesn't exist
URL bordeauxreport.com/db-2007/view/Wine_Data_view.php?editid1=60
Error file /hsphere/local/home/bauduc-dev/bordeauxreport.com/db-2007/view/include/dbconnection.php
Error line 26
SQL query select `Article Number`, `Article Type`, `Author`, `Authored for`, `Type`, `Ref`, `GQ ref`, `Wine Full Name`, `File Name`, `Chateau - Wine (Alpha format)`, `Chateau (Alpha format)`, `First Second Third Wines`, `Appellation`, `Location`, `Category`, `Subcategory`, `SubSubCategory`, `GQ top pick YN`, `GQ top picks`, `Summary`, `Tasting Notes Present`, `Notes`, `Notes Updated`, `Country`, `Region`, `Vintage`, `Maturity EP`, `Release Price Added`, `Release Price in 2006 GBP`, `Estimated Price GBP`, `Estimated Low GBP`, `Estimated High GBP`, `Estimate Sort by Mid Est`, `Collectable`, `Smart buy`, `Great value`, `GQ`, `RP`, `JR`, `Featured`, `Article edit link`, `Article Link`, `Label`, `Image Present`, `Estimated Price Present`, `See Notes`, `F 1`, `Flag 1 Notes`, `F 2`, `Flag 2 Notes`, `White Dry Graves`, `White Dry Pessac-Leognan`, `Release price added date`, `Record added`, `Record modified`, `2004 prim I dont know what causes this error but when code is removed the view pages display fine.
When added the PHP error occurs. 2 changed files are: Upload file templates\Wine_Data_view.htm ...ok
Upload file include\Wine_Data_events.php ...ok
Upload finished OK. 2 of 2 files uploaded Slightly odd that Wine_Data_events.php has so many blank lines
<?php function ViewOnLoad(&$params)
{
global $conn,$strTableName;
$links = "";
$prevLink = "";
$current = $_REQUEST["editid1"];
$next=0;
$strSelect = "select * from ".$strTableName;
$rs = db_query($strSelect,$conn);
while ($data = db_fetch_array($rs))
{
if ($next) {
$links .= " <a href=\"Wine_Data_view.php?editid1=".$data["Ref"]."\">next</a>";
$next = 0;
} if ($current==$data["Ref"]) {
$next = $current+1;
$links = $prevLink;
}
else {
$prevLink = "<a href=\"Wine_Data_view.php?editid1=".$data["Ref"]."\">prev</a>";
}
}
echo $links; } ?> Current Wine_Data_view.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Wine Data</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK
href="include/style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD
<BODY bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0>
{doevent name="ViewOnLoad"}
{include_if_exists file="include/header.php"}{$message}
<TABLE height="100%" width="100%" border=0>
<TBODY>
<TR>
<TD>
<P align=center>
</P></TD>
<TR>
<TD>
<DIV align=center>
<TABLE class=main_table id=table4 style="WIDTH: 90%" height=0
cellPadding=2 rules=none border=1>
<TBODY>
<TR>
<TD align=middle bgColor=#e8e8e8 height=35>Wine Data, View record [
Ref: {$show_key1} ] - <a target="_top" href="http://bordeauxreport.com/db-2007/frame/">Back to Index Page</A></TD>
<TR>
<TD align=middle height=0>
<DIV align=center>
<TABLE id=table5 width="97%" border=0>
<TBODY>
<TR>
<TD width=9 height=32></TD>
<TD align=right height=32>
<P align=center><STRONG><FONT face=Arial size=3>{$show_Chateau___Wine__Alpha_format_} {$show_Vintage}</FONT></P></STRONG></TD>
<TD width=10 height=32> </TD>
<TR>
<TD width=9 height=37> </TD>
<TD align=right>
<TABLE id=table13 cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD>
<DIV align=center>
<TABLE id=table14 width="100%" border=0>
<TBODY>
<TR>
<TD align=right width=168><B><FONT face=Arial
size=2>Current Price<BR><FONT size=1>(Nov
2007)</FONT> </FONT></B></TD>
<TD width=6> </TD>
<TD width=211><FONT face=Arial size=2>{$show_Price_Oct_2007GBP}</FONT></TD>
<TR>
<TD align=right width=168><B><FONT face=Arial
size=2>Price Change</FONT></B></TD>
<TD width=6> </TD>
<TD width=211><FONT face=Arial size=2>{$show_07_change_release}</FONT></TD>
<TR>
<TD align=right width=168><B><FONT face=Arial
size=2>Chateau </FONT></B></TD>
<TD width=6> </TD>
<TD width=211><FONT face=Arial size=2>{$show_Chateau__Alpha_format_}</FONT></TD>
<TR>
<TD align=right width=168><B><FONT face=Arial
size=2>Appellation</FONT></B></TD>
<TD width=6> </TD>
<TD width=211><FONT face=Arial size=2>{$show_Appellation}
</FONT></TD>
<TR>
<TD align=right width=168 height=23><B><FONT
face=Arial size=2>In bottle maturity</FONT></B></TD>
<TD width=6 height=23> </TD>
<TD width=211 height=23><FONT face=Arial
size=2>{$show_In_bottle_maturity_1}</FONT></TD>
<TR>
<TD align=right width=168><B><FONT face=Arial
size=2>Tasted at </FONT></B></TD>
<TD width=6> </TD>
<TD width=211><FONT face=Arial size=2>{$show_In_bottle_tasting_location}
</FONT></TD></TR></TBODY></TABLE></DIV></TD>
<TD> </TD>
<TD>
<DIV align=center>
<TABLE id=table15 width="100%" border=0>
<TBODY>
<TR>
<TD align=right width=158>
<P><B><FONT face=Arial size=2>Release
Price<BR><FONT size=1>(Apr
2006)</FONT></FONT></B></P></TD>
<TD width=5> </TD>
<TD width=233><FONT face=Arial size=2>{$show_Release_Price_in_2006_GBP}</FONT></TD>
<TR>
<TD align=right width=158><B><FONT face=Arial
size=2>% Change</FONT></B></TD>
<TD width=5> </TD>
<TD width=233><FONT face=Arial size=2>{$show_07_change_percent}</FONT></TD>
<TR>
<TD align=right width=158><B><FONT face=Arial
size=2>First Second Wine</FONT></B></TD>
<TD width=5> </TD>
<TD width=233><FONT face=Arial size=2>{$show_First_Second_Third_Wines}</FONT></TD>
<TR>
<TD align=right width=158> </TD>
<TD width=5> </TD>
<TD width=233> </TD>
<TR>
<TD align=right width=158><B><FONT face=Arial
size=2>Number of cases</FONT></B></TD>
<TD width=5> </TD>
<TD width=233><FONT face=Arial size=2>{$show_Number_of_cases}</FONT></TD>
<TR>
<TD align=right width=158><FONT face=Arial
size=2><STRONG>Date tasted</STRONG></FONT></TD>
<TD width=5> </TD>
<TD width=233><FONT face=Arial size=2>{$show_In_bottle_tasting_date}</FONT></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<P align=center></P>
<HR width="85%" color=#c0c0c0 SIZE=1>
</TD>
<TD width=10 height=37> </TD>{if $show_In_Bottle_Note_BR}
<TR>
<TD width=9> </TD>
<TD align=right width=168>
<P align=left><STRONG><FONT face=Arial size=2>Tasting
Notes:</FONT></STRONG> </P></TD>
<TD width=10> </TD>
<TR>
<TD width=9> </TD>
<TD align=right>
<P align=left><FONT face=Arial size=2>{$show_In_Bottle_Note_BR}</FONT></P></TD>
<TD width=10></TD>{/if}</TR></TBODY></TABLE></DIV></TD>
<TR>
<TD align=middle height=78>
<DIV align=center>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>
<DIV align=center>
<DIV align=right>
<TABLE id=table10 borderColor=#c0c0c0 height=76 cellSpacing=0
cellPadding=0 rules=all width=0 border=1>
<TBODY>
<TR>
<TD align=middle bgColor=#e0e0e0 rowSpan=2>
<P align=center><B><FONT face=Arial size=2> GQ in
Bottle Score </FONT></B></P></TD>
<TD align=middle bgColor=#e0e0e0 colSpan=3><B><FONT
face=Arial size=2> Gavin Quinney choices for
</FONT></B></TD>
<TR>
<TD align=middle bgColor=#e0e0e0>
<P align=center><B><FONT face=Arial
size=2> Investors </FONT></B></P></TD>
<TD align=middle bgColor=#e0e0e0>
<P align=center><B><FONT face=Arial
size=2> Insiders </FONT></B></P></TD>
<TD align=middle bgColor=#e0e0e0>
<P align=center><B><FONT face=Arial
size=2> Imbibers </FONT></B></P></TD>
<TR height=24>
<TD align=middle height=33>
<P align=center><B><FONT face=Arial size=2>{$show_In_bottle_score_1}</FONT></B></P></TD>
<TD align=middle height=33>
<P align=center><B><FONT face=Arial size=2>{$show_Collectable}</FONT></B></P></TD>
<TD align=middle height=33>
<P align=center><B><FONT face=Arial size=2>{$show_Smart_buy}</FONT></B></P></TD>
<TD align=middle height=33>
<P align=center><B><FONT face=Arial size=2>{$show_Great_value}</FONT></B></P></TD></TR></TBODY></TABLE></DIV></DIV></TD>
<TD width=40> </TD>
<TD>
<DIV align=left>
<TABLE borderColor=#c0c0c0 height=0 cellSpacing=0 rules=all
border=1>
<TBODY>
<TR>
<TD align=middle bgColor=#e0e0e0 colSpan=3
height=27><I><B><FONT face=Arial size=2>En Primeur
Scores Apr 2006</FONT></B></I></TD>
<TR>
<TD align=middle width=77 bgColor=#e0e0e0 height=22>
<P align=center><B><FONT face=Arial
size=2> GQ</FONT></B></P></TD>
<TD align=middle width=75 bgColor=#e0e0e0 height=22>
<P align=center><B><FONT face=Arial
size=2> RP</FONT></B></P></TD>
<TD align=middle width=85 bgColor=#e0e0e0 height=22>
<P align=center><B><FONT face=Arial
size=2> JR</FONT></B></P></TD>
<TR height=24>
<TD align=middle width=77 height=22>
<P align=center><B><FONT face=Arial size=2>{$show_GQ}</FONT></B></P></TD>
<TD align=middle width=75 height=22>
<P align=center><B><FONT face=Arial size=2>{$show_RP}</FONT></B></P></TD>
<TD align=middle width=85 height=22>
<P align=center><B><FONT face=Arial size=2>{$show_JR}</FONT></B></P></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV></TD>
<TR height=00>
<TD align=middle height=5>
<P align=center><IMG height=3 src="3x10.gif" width=10
border=0></P></TD>
<TR height=00>{$show_Links}
<TD align=middle bgColor=#e8e8e8
height=32>{$message} <SPAN class=buttonborder><INPUT class=button onclick="window.location.href='Wine_Data_list.php?a=return'" type=reset value="Back to list"></SPAN></TD></TR></TBODY></TABLE></DIV></TD>
<TR>
<TD>
<P align=center>{include_if_exists file="include/footer.php"}</P></TD></TR></TBODY></TABLE></BODY></HTML>
|