PHP Classes
Icontem

installation


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Ladder PHP   All threads   installation   (Un) Subscribe thread alerts  
Subject:installation
Summary:Call to undefined function SQLEnCode() in ..../Ladder_Item.cls
Messages:2
Author:geert van bommel
Date:2009-11-07 11:37:45
Update:2009-11-07 14:13:50
 

  1. installation   Reply  
Picture of geert van bommel
geert van bommel
2009-11-07 11:37:45
Hi,

I would like to give this class a test drive, but I tried to install it and got the error that function SQLEnCode() is undefined. I can't find the function in any of the files either.

Also, it would be great if there were some examples on how to use the class. It's a very interesting concept.

Kind Regards,
Geert

  2. Re: installation   Reply  
Picture of Michael J. Fuhrman
Michael J. Fuhrman
2009-11-07 14:13:50 - In reply to message 1 from geert van bommel
Geert,

SQL Encode should have been in the Function.inc file. Unfortunately, I pulled it, since PHP has a similar function (mysql_real_escape_string) and apparently didn't update my code.

Provided here is the function. I will include it in the class library as well.

Mike,


Function SQLEncode ($szString)
{
$szRtn = "";
$nlen = strLen($szString);
If ($nlen == 0) return;

For ($t = 0; $t < $nlen; $t++)
{
$szChar = substr($szString, $t, 1);
$szRtn .= $szChar;
If ($szChar == "'") $szRtn .= $szChar;
}

return ($szRtn);
}

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products