473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ODBC String Quoting in odbc_exec

I'm moving a script from MySQL to MS Access (yuck). Anyway, when I do
an insert or select with an email address as a field value in
odbc_exec, ODBC barfs on me.

Is there some special quoting required for the '@' in an email?

Cause now, SELECT * FROM mytable WHERE em*******@something.com'
doesn't work.

Also, INSERT INTO mytable (uid, email, arbstring) VALUES (1,
'm*@something.com', 'abc') also doesn't work.

Thanks,

Mitch

Oct 4 '06 #1
1 1712
"Mitch" <su********@yahoo.compíse v diskusním príspevku
news:11*********************@c28g2000cwb.googlegro ups.com...
I'm moving a script from MySQL to MS Access (yuck). Anyway, when I do
an insert or select with an email address as a field value in
odbc_exec, ODBC barfs on me.

Is there some special quoting required for the '@' in an email?

Cause now, SELECT * FROM mytable WHERE em*******@something.com'
doesn't work.
use SELECT * FROM mytable WHERE email='me\@something.com'
this work for MySQL and must work for ODBC too.

--

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
Oct 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dan | last post by:
Hi, I am using the Employee.fdb sample that comes with Firebird 1.5.1. Everything resides on a WinXP Pro pc. I set up an ODBC connection called "FB Employee Sample" and tested it with MS Access...
3
by: Not Me | last post by:
Hi, I have an ODBC connection to an SQL server database set up in my data sources. Is there a way I can use this to create a connection string I could use in a pass-through query? Otherwise is...
0
by: u4yk | last post by:
I posted this on php.dev, but I'd give you guys a shot. I'm running PHP 5.1.1 on a Linux box, and when I try to send an MS SQL database via ODBC, I get the following error: PHP Warning: ...
2
by: 111mike | last post by:
Hello, Here's my problem. I cannot connect to mysql database using odbc string connections or dns. I keep getting a "cannot connect to mysql server localhost." I'm running windows XP Pro and...
0
by: Sonnich | last post by:
I get this error: Warning: odbc_exec() : SQL error: Option value changed., SQL state 01S02 in SQLExecDirect in...
2
by: JoeNinja | last post by:
Im failing to update the an MS ACcess. I will appreciate Your advice. I get the error below Warning: odbc_exec() : SQL error: Too few parameters. Expected 1., SQL state 07001 in SQLExecDirect in...
2
by: bcbrock | last post by:
I am trying to figure out how to query some data out of a dbase IV (.dbf) file sitting on a remote server from my MySQL/PHP/Web Server. Both servers are Windows Server 2003 SP2. My...
9
by: 2DIL | last post by:
hello all experts, basically, i have a very small project, in which 97% of the work is complete. yet there is an issue which i cannot solve and i have no error to indicate what the problem...
0
by: CislaghiAndrea | last post by:
Pc configuration : XAMPP per Windows Version 1.5.1 PHP Version 5.1.1 IBM DB2 ODBC DRIVER 8.01.14 the query ==> Database DB2 IBM 8.1 on Z9 with ZOS 1.9 odbc_exec($db,"SELECT * FROM...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.