Re: textarea and mysql query
| From: | jas | Date: | Mon, 18 Mar 2002 07:16:48 +0000 |
| Subject: | Re: textarea and mysql query | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17742@lists.php.net to get a copy of this message | ||
Yeah it is not multidimensional at all, a simple text blob is what should be
pulled into the textarea. I am not trying to query multipled record fields
at all. One field per textarea. Do you know of a good tutorial on pulling
sql queries into textareas? If you do please let me know as I have searched
php.net and other sites for a tutorial on textarea's but have not found any
nor is there any reference to such a problem in any of the php or mysql
books i have.
"Ray Hunter" <rhunter@enterasys.com> wrote in message
news:59358A738F45D51186A30008C74CE250E814EB@slc-exc1.ctron.com...
> What is the result of $record['wel_area']. If this is a multidimensional
> array then you will need to access it differently...
>
> Example:
> echo $record[0][0]."\n";
>
> Try this is your text area and see if that comes out...
>
>
>
> Thank you,
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -----Original Message-----
> From: jas [mailto:jlgerfen@hotmail.com]
> Sent: Monday, March 18, 2002 12:07 AM
> To: php-db@lists.php.net
> Subject: Re: [PHP-DB] textarea and mysql query
>
>
> Yeah that didn't work either... If I put the same value (
> value=\"{$record['wel_area']}\" ) on a text line it works just fine
however
> using the same value for a textarea doesnt give me any results nor does it
> give me an error message to go on, if there is a way to output the code to
> the screen like a dos echo command that would help out alot. Thanks in
> advance, Jas "Ray Hunter" <rhunter@enterasys.com> wrote in message
> news:59358A738F45D51186A30008C74CE250E814EA@slc-exc1.ctron.com...å›ÇØÍÈ*�#¯t
> ,
> > Try this:
> >
> > <form name="wel_area" method="post" action="index_confirm.php3
> target="box">
> > <?php
> > $record = mysql_fetch_array(@mysql_query("SELECT wel_area FROM
> > cm_index",$dbh)); echo "<textarea name='wel_area'
> > value='".$record['wel_area']."' cols='25'
> > rows='8'></textarea><br><input type='submit'
> > name='save'
> > value='save'><br>\n"; ?>
> > </form>
> >
> > If not then let me know...
> >
> >
> > Thank you,
> >
> > Ray Hunter
> > Firmware Engineer
> >
> > ENTERASYS NETWORKS
> >
> >
> > -----Original Message-----
> > From: jas [mailto:jlgerfen@hotmail.com]
> > Sent: Sunday, March 17, 2002 11:54 PM
> > To: php-db@lists.php.net
> > Subject: [PHP-DB] textarea and mysql query
> >
> >
> > I need some help with a query to place the results within a text
> > area... here is the code and so far every time I try it out all that
> > happens is it displays the textbox but not the results of the query.
> > <form
> name="wel_area"
> > method="post" action="index_confirm.php3 target="box">
> > <?php
> > $record = mysql_fetch_array(@mysql_query("SELECT wel_area FROM
> > cm_index",$dbh)); echo "<textarea name='wel_area'
> > value='{$record['wel_area']}' cols='25'
> > rows='8'></textarea><br><input
> > type='submit' name='save'
> > value='save'><br>\n"; ?>
> > </form>
> > Any help would be great.
> > Jas
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>