DNCdotCOM

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

DNCdotCOM

Postby GenXOutsourcing » Thu Oct 13, 2022 4:53 pm

We are trying to setup the dnc.com using the script already in Vicidial. The issue I am having is that for some reason on the city "Coeur D'Alene" the script errors out because of the D'Alene.


DBD::mysql::db do failed: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Alene,6010

it doesnt like the apostrophe in the city name when adding to the log at line 361

check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Fallon,9787;ILEC;"CenturyTel of Missouri LLC:CenturyLink",,20,8:00-21:00;8:00...' at line 1 at AST_DNCcom_filter.pl line 361.
Built too many to count, Centos7 Scratch install, Opensuse Scratch install, Centos8 Scratch install, etc.
Dual 8 core/32gb RAM/500gb SSDs
SVN Version:3440
VERSION: 2.14-812a
genxoutsourcing.com
GenXOutsourcing
 
Posts: 120
Joined: Sun Sep 22, 2019 12:53 am

Re: DNCdotCOM

Postby williamconley » Fri Oct 28, 2022 3:43 pm

You should post this in the Issue Tracker after updating to the latest version (in case this has already been addressed).

If you have the solution written (using the mysqli_real_escape_string function to pre-process the sql string perhaps), you can certainly include that.

Note that some documentation omits the need in that function to include a pre-linked $DBLink variable so the system can check the mysql version to properly escape the string.

I forget it if's mysqli_real_escape_string($DBLink,$Query) or mysqli_real_escape_string($Query,$DBLink), but without the link the function has no basis to "know" the proper escape-required values.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20253
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 97 guests