HI Bill,

instead of macro substitution, anyway done in the wrong way here,
use the syntax for parameters passing to SPT, use question marks:

try = SQLEXEC(junk, "insert into sec values 
(?mid,?mlnam,?mfnam,?musrnam,?mpzwd,?mlvl)")

Gianni

On Thu, 2 Apr 2009 19:19:53 -0400, "W.N. Pew" <[email protected]> wrote:

>Hi, again!
>
>Well I overcame the problem with YAHOO! I installed WAMPSERVER on my
>machine. Dead easy!
>
>I can connect and I can select with no problem. However, I'm messing up the
>formatting of the INSERT command I'm sending through the SQL pass through
>(SQLEXEC()).
>
>Here's what I have:
>
>mid = 3
>
>mfnam = "Bob"
>
>mlnam = "Smith"
>
>musernam = "binky"
>
>mpzwd = "tryit"
>
>mlvl = 2
>
>After connecting I issue:
>
>try= SQLEXEC(junk, "insert into sec
>values(&mid,&mlnam,&mfnam,&musrnam,&mpzwd,&mlvl)") && junk is the connection
>handle
>
>Not sure what I'm doing wrong but I'm getting a syntax error back from
>MySql.
>
>Anyone got any ideas?
>
>Thanks!
>Bill

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to