Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Getting problem with retrieving text data from sql

Author  Topic 

neel12285
Starting Member

1 Post

Posted - 2009-01-06 : 13:59:07
Hello
I am Using PHP. I want to retrieve a data from sql database.
I got everything except the text type data.

$strawinfo = "select CAW_Entry_Code,CAW_AGCITY,CAW_MEDIUM,CAW_CLIENT,CAW_SECONDARY,CAW_TITLE,CAW_WINNER,CAW_URL,CAW_CREDIT from Custom_Awards where CAW_id = '$caw_id' ";
$rs_awinfo = odbc_exec($con,$strawinfo) or die(odbc_error());
odbc_fetch_array($rs_awinfo) or die(odbc_error());
$cw_entry_code = odbc_result($rs_awinfo,'CAW_Entry_Code');
$cw_winner = odbc_result($rs_awinfo,'CAW_WINNER');
$cw_secondary = odbc_result($rs_awinfo,'CAW_SECONDARY');
$cw_agcity = odbc_result($rs_awinfo,'CAW_AGCITY');
$cw_title = odbc_result($rs_awinfo,'CAW_TITLE');
$cw_client = odbc_result($rs_awinfo,'CAW_CLIENT');
$cw_media = odbc_result($rs_awinfo,'CAW_MEDIUM');

$cw_credits = odbc_result($rs_awinfo,'CAW_CREDIT'); //CAW_CREDIT is Text Type


when i am displaying "$cw_credits" it don't show anything.

Any body has a solution for this

regards Neel

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-06 : 14:00:46
You should probably post your question on a site that deals with the technology that you are using. This site is for Microsoft SQL Server. You should try dbforums.com

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -