[PHP-DB] Formatting - Solved

2012-11-26 Thread Ethan Rosenberg, PhD
Dear list Here is the answer ORIGINAL Search Results frame="box" style="table-layout: fixed;"> Site Medical Record First Name Last Name Phone Height Sex History Birthday Age $vara2 = array(array($Site, $MedRec, $Fname, $Lname, $Phone, $Height, $Sex, $Hx

[PHP-DB] Formatting

2012-11-25 Thread Ethan Rosenberg, PhD
Dear list - When I run the following code, the results are preceded by at least one screen full of blank lines. I am showing you a large code block since I do not know where the error is: if(isset($_REQUEST['Sex'])&& trim($_POST['Sex']) != '' ) { if ($_REQUEST['Sex'] === "0")

Re: [PHP-DB] formatting a word doc using php ?

2010-09-20 Thread Richard Quadling
On 17 September 2010 21:41, Vinay Kannan wrote: > Hello Xperts, > > I am trying out a couple of things and have come across this requirement, > where in a php script should create a doc file with specific formatting, I > can create the file, havent tried it yet, but shouldnt be a problem I guess,

Re: [PHP-DB] formatting a word doc using php ?

2010-09-17 Thread Aleksei Sapunov
work done by > Maarten, who's an incredibly smart guy. > > : Ashay > > -Original Message- > From: Vinay Kannan [mailto:viny...@gmail.com] > Sent: Friday, September 17, 2010 1:42 PM > To: PHP DB > Subject: [PHP-DB] formatting a word doc using php ? > > H

RE: [PHP-DB] formatting a word doc using php ?

2010-09-17 Thread Ashay Chaudhary
an [mailto:viny...@gmail.com] Sent: Friday, September 17, 2010 1:42 PM To: PHP DB Subject: [PHP-DB] formatting a word doc using php ? Hello Xperts, I am trying out a couple of things and have come across this requirement, where in a php script should create a doc file with specific formatting, I can c

[PHP-DB] formatting a word doc using php ?

2010-09-17 Thread Vinay Kannan
Hello Xperts, I am trying out a couple of things and have come across this requirement, where in a php script should create a doc file with specific formatting, I can create the file, havent tried it yet, but shouldnt be a problem I guess, but how do I format the doc file is the question, google s

Re: [PHP-DB] Formatting output with json_encode

2008-07-14 Thread Evert Lammerts
Check out http://www.json.org/ for JSON structures. In javascript an Array object is a special implementation of the Object object (like all objects other than Object) - an Array object can only have numerical indices, an Object object can have textual indices too. If you json_encode a php array w

[PHP-DB] Formatting output with json_encode

2008-07-13 Thread Ron Piggott
I am using json_encode to output the results of a mySQL query which is part of a jquery & ajax. $result = json_encode($array); echo $result; The output on my screen is: {0:"John 14:27","verse_reference":"John 14:27"} How do I format json_encode output? I would like John 14:27 to be what i

Re: [PHP-DB] Formatting in Text Area

2008-02-02 Thread bedul
i'm just add Tobias script. put "rtrim" and "ltrim" to have a better result. - Original Message - From: "Tobias Franzén" <[EMAIL PROTECTED]> To: Sent: Friday, February 01, 2008 10:24 PM Subject: Re: [PHP-DB] Formatting in Text Area > Hi Pat

Re: [PHP-DB] Formatting in Text Area

2008-02-01 Thread Tobias Franzén
much better by example. Thanks Evert! Trish -Original Message- From: Evert Lammerts [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 8:21 AM To: VanBuskirk, Patricia Cc: php-db@lists.php.net Subject: Re: [PHP-DB] Formatting in Text Area VanBuskirk, Patricia wrote: I h

RE: [PHP-DB] Formatting in Text Area

2008-02-01 Thread Bastien Koert
$text = nl2br($text); bastien > Date: Fri, 1 Feb 2008 08:07:17 -0500> From: [EMAIL PROTECTED]> To: > php-db@lists.php.net> Subject: [PHP-DB] Formatting in Text Area> > I have a > "customer description" text area field on my form which feeds thro

[PHP-DB] Formatting in Text Area

2008-02-01 Thread VanBuskirk, Patricia
-Original Message- From: Evert Lammerts [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 8:21 AM To: VanBuskirk, Patricia Cc: php-db@lists.php.net Subject: Re: [PHP-DB] Formatting in Text Area VanBuskirk, Patricia wrote: > I have a "customer description" text area field on

Re: [PHP-DB] Formatting in Text Area

2008-02-01 Thread Evert Lammerts
VanBuskirk, Patricia wrote: I have a "customer description" text area field on my form which feeds through php to FMP, What's FMP? Is that what links this email to the db-list? and spits out a confirmation page and email. The issue I am having is this ... as the customer types, the text wra

[PHP-DB] Formatting in Text Area

2008-02-01 Thread VanBuskirk, Patricia
I have a "customer description" text area field on my form which feeds through php to FMP, and spits out a confirmation page and email. The issue I am having is this ... as the customer types, the text wraps. Many put their own hard returns and spaces in to organize their description. It seem

Re: [PHP-DB] Formatting MySQL Queries

2007-01-24 Thread Niel Archer
Hi SELECT * FROM table INTO OUTFILE 'file_name' FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' Niel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Formatting MySQL Queries

2007-01-24 Thread Brent Anderson
Hello. My team and I are looking for a way to return an entire table of MySQL data with columns delimited by tabs and rows delimited by carriage returns. How exactly would this work - I'm not a PHP expert and, although I know MySQL, I don't know where to begin with formatting a query poin

Re: [PHP-DB] Formatting a form box

2006-01-12 Thread Bastien Koert
show the code bit relevant to the nl2br issue and conversion bastien From: Alex Major <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>, Subject: Re: [PHP-DB] Formatting a form box Date: Thu, 12 Jan 2006 19:42:33 + Thanks for the suggestions, the nl2br has been a common suggestio

Re: [PHP-DB] Formatting a form box

2006-01-12 Thread Alex Major
x27;])) { > > echo nl2br($_POST['testarea']); > > } > ?> > > Look at the source code after you submit if you have any doubts/questions. > > -TG > > = = = Original message = = = > > use the nl2br() function to convert the newlines to >

Re: [PHP-DB] Formatting a form box

2006-01-12 Thread El Bekko
t; or any other HTML tag that best suits your need!! This is just one solution, but I'm pretty sure there others!! Mike Guirao -Original Message- From: Alex Major [mailto:[EMAIL PROTECTED] Sent: Jueves, 12 de Enero de 2006 10:33 a.m. To: php-db@lists.php.net Subject: [PHP-DB] Formatt

RE: [PHP-DB] Formatting a form box

2006-01-12 Thread tg-php
have any doubts/questions. -TG = = = Original message = = = use the nl2br() function to convert the newlines to bastien >From: Alex Major <[EMAIL PROTECTED]> >To: >Subject: [PHP-DB] Formatting a form box >Date: Thu, 12 Jan 2006 16:33:01 + > >Hi there, >On one o

RE: [PHP-DB] Formatting a form box

2006-01-12 Thread Miguel Guirao
tag that best suits your need!! This is just one solution, but I'm pretty sure there others!! Mike Guirao -Original Message- From: Alex Major [mailto:[EMAIL PROTECTED] Sent: Jueves, 12 de Enero de 2006 10:33 a.m. To: php-db@lists.php.net Subject: [PHP-DB] Formatting a form box Hi

RE: [PHP-DB] Formatting a form box

2006-01-12 Thread Bastien Koert
use the nl2br() function to convert the newlines to bastien From: Alex Major <[EMAIL PROTECTED]> To: Subject: [PHP-DB] Formatting a form box Date: Thu, 12 Jan 2006 16:33:01 + Hi there, On one of my forms, there is a section where users can put images etc..and then it is displayed

[PHP-DB] Formatting a form box

2006-01-12 Thread Alex Major
Hi there, On one of my forms, there is a section where users can put images etc..and then it is displayed on my php pages. My question is how do I make it so that the html formatting is automatically done. For example when someone is typing something, and wants to start a new paragraph although th

Re: [PHP-DB] formatting a date from mysql

2005-12-12 Thread Adrian Bruce
farily straight forward to withinn the query itself, check out http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html or for php http://uk.php.net/date RTFM Regards Adrian Eternity Records Webmaster wrote: I need to figure out how to format the date format: year-month-day (200

[PHP-DB] formatting a date from mysql

2005-12-12 Thread Eternity Records Webmaster
I need to figure out how to format the date format: year-month-day (2005-12-06). It is a date(8) field in a mysql table that i pulled out of the table with php 5.0.5. I need it in the format: Tue December 6, 2005 (or in mysql's formatting: 6-12-2005). I am using the reformatting for display only. S

RE: [PHP-DB] Formatting numbers

2003-07-24 Thread David Smith
Thanks. That works perfectly. David Smith -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 3:36 PM To: David Smith; php-db Subject: Re: [PHP-DB] Formatting numbers > I am a little new to PHP, but I am trying to pull numbers fro

Re: [PHP-DB] Formatting numbers

2003-07-24 Thread CPT John W. Holmes
> I am a little new to PHP, but I am trying to pull numbers from a database > that has both phone numbers and social security numbers for a client. My > Client doesn't want the numbers to come out like 55 but (555) > 555-. My question is can I use format_number() to do this and if so h

[PHP-DB] Formatting numbers

2003-07-24 Thread David Smith
BlankHi, I am a little new to PHP, but I am trying to pull numbers from a database that has both phone numbers and social security numbers for a client. My Client doesn't want the numbers to come out like 55 but (555) 555-. My question is can I use format_number() to do this and if so

Re: [PHP-DB] formatting a timestamp

2003-06-02 Thread Gürhan Özen
Rick, Please give more information about your problem. Are you trying to format a timestamp field in a MySQL table? If yes, you can do something like, SELECT DATE_FORMAT( columnname, '%m-%d-%y : %T-%i' ); Hope this helps... Gurhan On Sat, 2003-05-31 at 01:38, Rick Dahl wrote: > I want to print

Re: [PHP-DB] formatting a timestamp

2003-05-31 Thread Rolf Brusletto
*This message was transferred with a trial version of CommuniGate(tm) Pro* Rick, You can use date() in the following fashion.. $timeStamp = time(); date('m-d-y : h-m', $timeStamp); where $timestamp is a unix epoch timestamp. Hope this helps! Rolf Brusletto http://www.phpexamples.net Rick Dahl wr

[PHP-DB] formatting a timestamp

2003-05-31 Thread Rick Dahl
I want to print out a timestamp of length 14. I want to have it formatted like: mm-dd-yy : hh-mm I have looked but all I can find is how to format a date and I don't want that. I want the time also. Rick "Don't burn the day...away" ~ DJM __

Re: [PHP-DB] Formatting txt from a database

2002-12-12 Thread Matt Vos
ml"); } Matt - Original Message - From: Lisi <[EMAIL PROTECTED]> To: PHP-DB <[EMAIL PROTECTED]> Sent: Thursday, December 12, 2002 3:55 AM Subject: [PHP-DB] Formatting txt from a database > I am retrieving text stored in a database, and I want to strip out any HTML >

Re: [PHP-DB] Formatting txt from a database

2002-12-12 Thread DL Neil
Lisi, To save reinventing the wheel would strip_tags() be any use to you? (see manual) =dn > I am retrieving text stored in a database, and I want to strip out any HTML > tags and then only display the first 30 characters with "..." to show the > user that there is more text to view. > > My probl

[PHP-DB] Formatting txt from a database

2002-12-12 Thread Lisi
I am retrieving text stored in a database, and I want to strip out any HTML tags and then only display the first 30 characters with "..." to show the user that there is more text to view. My problem is with stripping out HTML tags, the code is stripping out the text enclosed within the HTML tag

Re: [PHP-DB] formatting table column to display as a hyperlink using Oracle

2002-03-27 Thread olinux
What are you trying to link to? Most likely you need to pass a few variables in the URL This should give you an idea: echo "$column_value"; olinux --- "Franden, Craig" <[EMAIL PROTECTED]> wrote: > Hi, > > I am using a small php script to return records from > an oracle8.1.6 > database. I wou

[PHP-DB] formatting table column to display as a hyperlink using Oracle

2002-03-27 Thread Franden, Craig
Hi, I am using a small php script to return records from an oracle8.1.6 database. I would like to have one of the columns contents display the data as a hyperlink and I am not quite sure how to do it. Here is the code that returns the data (which is correct). The table formatting is the issue. A

RE: [PHP-DB] formatting w/ table

2002-02-15 Thread Rick Emery
Further, I recommend replacing your echos with the following: echo "Type Of Car: "". $myrow['car_type']."\n"; echo "Model Of Car: ". $myrow['car_model']."\n"; echo "Year Of Car: ". $myrow['car_year']."\n"; echo "Price Of Car: $". $myrow['car_price'."\n"; echo "VIN Of Car: ". $myrow['car_vin']

RE: [PHP-DB] Formatting Strings in MySQL

2001-07-02 Thread Jesse S. Williams
tems -Original Message- From: Artur Correia [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 11:37 AM To: Jesse S. Williams Subject: Re: [PHP-DB] Formatting Strings in MySQL Hey, Thanks in advance for your trouble replying this. I havent tried it out yet - nor will I untill August

[PHP-DB] Formatting Strings in MySQL

2001-07-01 Thread Jesse S. Williams
Administrator DowNET VoIP Team Electronic Data Systems -Original Message- From: Artur Correia [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 30, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Formatting Strings in MySQL Hey How can I get a string (or number) from mySQL like &q

[PHP-DB] Formatting Strings in MySQL

2001-06-30 Thread Artur Correia
Hey How can I get a string (or number) from mySQL like "123123123" to display "123 123 123"?? Tks I'm kinda rookie Artur -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administr