PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
, Language is PHP, i have enclosed the function which make me hazard …….
[syntax=php]
define('QRY_ALTER_CATEGORY', 'ALTER TABLE Category ADD %s');
function ChangeCategory($FieldName) {
$Condition = $FieldName.' VARCHAR(20)';
$Query = sprintf(QRY_ALTER_CATEGORY,$Condition);
$this->core->DBConn->Execute($Query);
}
[/syntax]
The above Function used to Alter the Table Field name ,the problem is : if the Filed name is "Special character [íóÓéèÉÈÚúáàÁÀãñÑÖöÜüßÉ]” means the query is not execute other wise its works well ,please let me know the solution for the problem ,and expecting positive reply and advance thanks the same.