Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread Anirudh Zala
On Tuesday 03 April 2007 19:00, tedd wrote: > At 8:51 AM -0400 4/3/07, Ken Robinson wrote: > >At 08:43 AM 4/3/2007, tedd wrote: > >>I'm not sure if what you are saying includes this, but I use double > >>quotes all the time in php for producing html. For example: > >> > >>[1] echo("$myResult "); >

Re: [nyphp-talk] MySQL: Delete row

2007-04-03 Thread Rick Olson
Scenario: Query the database table to get the result set: $Query = "SELECT * FROM $Tablename"; $Result = mysql_query($Query); //Returns the result set if (mysql_num_rows($Result) == 1)//if row I'm looking for is found { while ($row = mysql_fetch_array($Result, MYSQL_ASSOC)) {

[nyphp-talk] MySQL: Delete row

2007-04-03 Thread [EMAIL PROTECTED]
Hi, everybody! While we're at it--talking about the 'CREATE TABLE', I like to ask you all, if there is a way to delete a row (one at a time) from the result set? Scenario: Query the database table to get the result set: $Query = "SELECT * FROM $Tablename"; $Result = mysql_query($Query); /

Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread Paul Houle
Anirudh Zala wrote: #2 When your data is static, use 'single quotes' to tell PHP to use it "as it is", if dynamic then should not be enclosed by ANY quote. #3 If you have mixture of static+dynamic then use $dynamic.'I am static' style to concat dynamic and static data. If I wanted to co

Re: [nyphp-talk] High-powered file viewer

2007-04-03 Thread Jon Baer
Not sure if you are looking to just parse/analyze but Ive used these scripting options: xxd -ps file.bin (pipe to grep | pipe to tr | piped to xxd -r) cut -b 10-13 | xxd -ps There is also a great rubygem called bindata which is dead simple to use, just build your own struct. http://bindata.

Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread tedd
At 8:51 AM -0400 4/3/07, Ken Robinson wrote: At 08:43 AM 4/3/2007, tedd wrote: I'm not sure if what you are saying includes this, but I use double quotes all the time in php for producing html. For example: [1] echo("$myResult "); [2] echo('$myResult'); The use of double quotes in [1] allows

Re: [nyphp-talk] Can somebody suggest a site to download WYSIWYG editor ?

2007-04-03 Thread Felix Shnir
tinymce & fckeditor. google'em On 4/3/07, Aniesh joseph <[EMAIL PROTECTED]> wrote: Hello Can somebody suggest a site to download WYSIWYG editor ? Regards Aniesh Joseph ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/li

Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread Ken Robinson
At 08:43 AM 4/3/2007, tedd wrote: I'm not sure if what you are saying includes this, but I use double quotes all the time in php for producing html. For example: [1] echo("$myResult "); [2] echo('$myResult'); The use of double quotes in [1] allows me to print something without having to use

Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread tedd
At 9:12 AM +0530 4/3/07, Anirudh Zala wrote: Please remember below rules while writing PHP expressions. #1 There is practically NO use of "double quotes" in PHP in writing expressions EXCEPT expanding sequences like converting "\n" into newline, "\t" to tabulator (in regex etc.). Which means you

[nyphp-talk] Can somebody suggest a site to download WYSIWYG editor ?

2007-04-03 Thread Aniesh joseph
Hello Can somebody suggest a site to download WYSIWYG editor ? Regards Aniesh Joseph ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Part

Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread David Krings
Anirudh Zala wrote: Please remember below rules while writing PHP expressions. #1 There is practically NO use of "double quotes" in PHP in writing expressions EXCEPT expanding sequences like converting "\n" into newline, "\t" to tabulator (in regex etc.). Which means you should not use "double

Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread David Krings
csnyder wrote: On 4/2/07, David Krings <[EMAIL PROTECTED]> wrote: ... $langfile = fopen('$langfileloc', 'r'); and constantly had it fail. ... But really, all you had to do was not quote at all. $langfile = fopen( $langfileloc, 'r' ); That is indeed so! Thank you. I just wonder why the exampl

[nyphp-talk] High-powered file viewer

2007-04-03 Thread Kenneth Downs
Wondering if anybody can give personal experience with a linux-based flexible file viewer. The file in question is a mixed binary/ascii (yes ascii, not utf-8) format from a DOS program. It appears that financial data and dates are encoded as binaries, probably to save space, and that would me