PHP Classes

Else is incorrect private function addQuotes($word, $double...

Recommend this page to a friend!

      Cyber MySQL PDO  >  All threads  >  Else is incorrect private function...  >  (Un) Subscribe thread alerts  
Subject:Else is incorrect private function...
Summary:Package rating comment
Messages:2
Author:RicardoSaracino
Date:2011-03-30 17:44:06
Update:2012-05-12 22:54:37
 

RicardoSaracino rated this package as follows:

Utility: Not sure
Consistency: Not sure
Documentation: Not sure

  1. Else is incorrect private function...   Reply   Report abuse  
Picture of RicardoSaracino RicardoSaracino - 2011-03-30 17:44:07
Else is incorrect

private function addQuotes($word, $doublequotes = true){

if($doublequotes){

$pword = '"'.$word.'"';
}else{
$pword = "'".$pword."'";
}

return $pword;

}

  2. Re: Else is incorrect private function...   Reply   Report abuse  
Picture of Nicholas Oliveira Nicholas Oliveira - 2012-05-12 22:54:37 - In reply to message 1 from RicardoSaracino
well. thanks for support.
this function can be ignored cause i'm not using anymore..
and i need to update


github.com/ryonagana/cbSQLConnect


feel free to fork :)