473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

value becomes empty after used once. originated in a textarea

1
Hi
look at this code, it gets a record and prints the column values:
$rs = $conn->Execute("SELECT * FROM products WHERE ID = ".$_GET['mID']);
$id = $rs->Fields("ID");
$nm = $rs->Fields("name");
$ds = $rs->Fields("desc");
$ct = $rs->Fields("cat");
$tt = $rs->Fields("title");
$pp = $rs->Fields("picpath");
echo $id->value."<br>nm:".$nm->value."<br>ds:".$ds->value."<br>ct:".$ct->value."<br>tt:".$tt->value."<br>pp:".$pp->value."<br>";
echo $id->value."<br>nm:".$nm->value."<br>ds:".$ds->value."<br>ct:".$ct->value."<br>tt:".$tt->value."<br>pp:".$pp->value."<br>";

the last two line are identical, echoing the values i took out of the recordset. look at this output now:
13
nm:DR
ds:manikak
ct:offroad
tt:suszuzui
pp:dr.jhs
13
nm:DR
ds:
ct:offroad
tt:suszuzui
pp:dr.jhs

-see the empty 'ds' ? why does it become empty after one use? a hint might be that this value was inserted to the db from a textarea....
Jan 4 '07 #1
0 1086

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Piotr Wolski | last post by:
i read the filr into an array using file(). some of the lines are empty. i would like to output the file but ignoring the emnpty lines. any ideas?
14
by: inquirydog | last post by:
Hi- One frusterating thing for me with xsl is that I don't know how to make xslt throw some sort of exception when a value-of path does not exist. For instance, suppose I have the following...
12
by: Anna | last post by:
Hi all, I posted the same question this afternoon but my message isn't showing up, so I thought I'd give it another try.... in case you should see it later I apologize for posting the same...
21
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
5
by: drdave | last post by:
Hi, I have 6 forms being generated using coldFusion, they are named special1, special2 special3 and so on.. in these forms I have a link to open a new window. I am trying to pickup the...
4
by: Jake Barnes | last post by:
I wanted to teach myself AJAX this weekend so I sat down with Stuart Landgridge's book and I started to play around. I came up with a little page that you can add text and images to. You can see it...
6
by: Niyazi | last post by:
Hi all, What is fastest way removing duplicated value from string array using vb.net? Here is what currently I am doing but the the array contains over 16000 items. And it just do it in 10 or...
0
by: tania | last post by:
i have this table in my database: CREATE TABLE FILM( F_ID INT(5) NOT NULL AUTO_INCREMENT, F_TITLE VARCHAR(40) NOT NULL, DIRECTOR_FNAME VARCHAR(20) NOT NULL, DIRECTOR_LNAME VARCHAR(20) NOT NULL,...
6
by: Cecil Westerhof | last post by:
This is a piece of code from a xslt-file: <xsl:template match="SMS"> <xsl:for-each select='.'> <tr> <td class = "inputDescription"><xsl:value-of select='.' />:</td> <td><textarea class =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.