This topic is locked

Cannot use a scalar value as an array

6/19/2007 3:35:21 AM
PHPRunner General questions
T
tparki authorDevClub member

I have just amended my application to utilise the Copy facility but get the error message shown in the topic title. This the full error message
Technical information

Error type 2

Error description Cannot use a scalar value as an array

URL www.ywdb.co.uk/phprunner/Membership_update_add.php?copyid1=Sam&copyid2=Aldred&copyid3=

Error file /home/ywdbuk/public_html/phprunner/include/commonfunctions.php

Error line 665

SQL query select `Title`, `First_Name`, `Surname`, `Assoc_Yr`, `2004`, `2005`, `2006`, `2007`, `Paid`, `S/O`, `Donation`, `Full`, `Junior`, `Family`, `Life`, `Letter`, `Email`, `Post_Code`, `Full_Address`, `Telephone`, `Club`, `Club_Name`, `Start_Yr`, `Finish_Yr`, `Sail_Number`, `Boat_Name`, `Race_Cert`, `Member_Type`, `Update_Ref`, `Update_Date`, `Birthday`, `Notes` From `yw_membership` where `First_Name`='Sam' and `Surname`='Aldred' and `Sail_Number`=''
What have I not done?

Tim

Alexey admin 6/19/2007

Tim,
please publish your project on Demo Account server and send a link to it to support@xlinesoft.com

Or zip and send to support@xlinesoft.com whole contents of PHPRunner project directory along with your database creation script.
I'll find what's wrong with your project running it on my test box.

T
tparki authorDevClub member 6/21/2007

Tim,

please publish your project on Demo Account server and send a link to it to support@xlinesoft.com

Or zip and send to support@xlinesoft.com whole contents of PHPRunner project directory along with your database creation script.
I'll find what's wrong with your project running it on my test box.



Alexey

I now understand from you that the problem is caused by my use of numeric field names which is 'bad practice' and that the best solution is to change the field names so that they contain some alpha.

Many thanks

Tim