The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Re: xpl-RSS


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Script help please


  • Subject: Re: Script help please
  • From: steve.cooper@xxxx
  • Date: Tue, 06 Jan 2004 07:57:00 +0000


I'm I right in thinking this just stores the latest program to MySQL or
Access for each channel. if so I can't see anything wrong with the script.

However if the description or category contains a character that SQL is not
expecting it my cause an error. Worth checking out the ones that cause an
error and seeing if there is something about the title of the program like
a special character or perhaps just part of it in quotes.

S.


--------+--------------------------------->
"frostie2001uk"
<<a
href="/group/ukha_xpl/post?postID=YVRRp6NFd3OEtbgcBI08EAWoVN_TLt7C4b2Mxyww1bCgf8C6eXYx18oKwCU6u4q2w8wYzDgIzie8xyrq">Neil.Frost@s...</a>
jitsu.com>

05/01/2004 22:42
Please respond to
ukha_xpl

--------+--------------------------------->

>-------------------------------------------------------------------------------\
---------------------------------------


To: <a
href="/group/ukha_xpl/post?postID=Z2LxuOUC9ViFRXS6wbBzS9q-iVIK_MEZm9j4PAoZReaOEhYiVzislvhagncXIeKtysiVP1lzkm-8qgNHtuiDkw">ukha_xpl@xxxxxxx</a>

cc:

Subject: [ukha_xpl] Script help please


>-------------------------------------------------------------------------------\
---------------------------------------



Could someone look at this script and tell me why sometimes it works
and sometimes it fails...

Sub tonyt_dguide_guide_trigger(xplmsg)

If
ucase(xpl.getparam(xplmsg,"{SCHEMA}",true))="DGUIDE.START"
then
strmsg="command=edit" &amp; chr(10)
strmsg=strmsg &amp; "sql=select * from progguide where
[channelno]= '" &amp;
xpl.getparam(xplmsg,"CHANNELNO",true) &amp; "'"
+chr(10)
strmsg=strmsg &amp; "starttime=" &amp; xpl.getparam
(xplmsg,"TIME",true) +chr(10)
strmsg=strmsg &amp; "duration=" &amp; xpl.getparam
(xplmsg,"DURATION",true) +chr(10)
strmsg=strmsg &amp; "title=" &amp; xpl.getparam
(xplmsg,"TITLE",true) +chr(10)
strmsg=strmsg &amp; "category=" &amp; xpl.getparam
(xplmsg,"CATEGORY",true) +chr(10)
strmsg=strmsg &amp; "description=" &amp; xpl.getparam
(xplmsg,"DESCRIPTION",true) +chr(10)

Call xpl.sendmsg("","tonyt-
xql.master","db.xql",strmsg)
end if
End Sub

Thanks
Neil


xPL Links: <a href="http://www.xplproject.org.uk";>http://www.xplproject.org.uk</a>
<a href="http://www.xplhal.com";>http://www.xplhal.com</a>
<a href="http://www.xpl.myby.co.uk";>http://www.xpl.myby.co.uk</a>
To Post a Message: <a
href="/group/ukha_xpl/post?postID=Z2LxuOUC9ViFRXS6wbBzS9q-iVIK_MEZm9j4PAoZReaOEhYiVzislvhagncXIeKtysiVP1lzkm-8qgNHtuiDkw">ukha_xpl@xxxxxxx</a>
To Subscribe: <a
href="/group/ukha_xpl/post?postID=MTV5c0aEn9ScsGGfqcnuwFMafGpTEgabo2sdciGLMjzuvZGIER0ZveISLErdGurh_Z8Wc3zwy0mJD1IuI6Ap7Hqwud3zHbo_">ukha_xpl-subscribe@xxxxxxx</a>
To Unsubscribe: <a
href="/group/ukha_xpl/post?postID=Wi6OTcgcwTDoLnakxUSz6iHJvxgfRt_KEZ7Cm50Tc0tTn9CH0C-cPkVF4b_0vmjRPOPIEpGbRDfRKAKtann6NnXmEil7yrv2uWZ95A">ukha_xpl-unsubscribe@xxxxxxx</a>



xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.