954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

why php is returning a number instead of a string

hi. I'm working with php-oracle and I need to do a query that I know will return a unique string, but when I execute the query all that I recieve is a number. Why?

this is my code:

$nombre=oci_parse($conexion, "select nombre_cliente from cliente where cod_cliente=$codigo_de_cliente");
$nombre_de_cliente=oci_execute($nombre);


nombre_cliente is varchar type
cod_cliente is number, and is my primary key

what Im doing wrong? I cannot see anything

montjoile
Light Poster
36 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: