Does anyone else have this problem with the list. It seems that
every time I
check my email there is one or more messages from the list that royally
screws up Outlook. I usually have to delete all list messages from the
actual server and reboot. It only happens with emails from
[EMAIL
Sorry I'm late to this thread, I don't know if it has been mentioned, but
most files have a 'magic number' at the begining of the file, which usually
reads as a couple of letters or more. I think EXE files start with MZ, gifs
with GIFxx where xx is the last two digits of the year of the
Richard Lynch wrote:
Maybe he's thinking FRAMESET???
My comment would still stand. Frames are not obsolete, and there are
(very few) legitimate uses for them.
-Stut
On Tue, April 24, 2007 9:39 am, Stut wrote:
Al wrote:
iFrames are obsolete and only IE handles them. I don't even know if
On 25/04/07, Dotan Cohen [EMAIL PROTECTED] wrote:
On 25/04/07, Richard Lynch [EMAIL PROTECTED] wrote:
On Tue, April 24, 2007 4:16 pm, Dotan Cohen wrote:
I have some categories named in the database as such:
OpenSource
HomeNetwork
I'd like to add a space before each capital letter,
Hi,
I have a small sample-application, that uses smarty for the presentation
layer. Unfortunately I might encounter script-timeouts (not necessarily
from smarty, could also be the DB-connection or something). In this case
I would like to return an appropriate HTTP status-code (might be 500 or
Hi,
I wrote a small sample-application once using PHP (with propel and
smarty) and once using Java (JBoss, EJB3, JSP Servlets). Both apps are
being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but the
performance of the PHP version is much slower than the Java version.
I already
2007. 04. 25, szerda keltezéssel 11.33-kor Henning Eiben ezt írta:
Hi,
I wrote a small sample-application once using PHP (with propel and
smarty) and once using Java (JBoss, EJB3, JSP Servlets). Both apps are
being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but the
Zoltán Németh schrieb:
I wrote a small sample-application once using PHP (with propel and
smarty) and once using Java (JBoss, EJB3, JSP Servlets). Both apps are
being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but the
performance of the PHP version is much slower than the Java
On 25/04/07, Robin Vickery [EMAIL PROTECTED] wrote:
$string = preg_replace('/(?=\w)([[:upper:]])/', ' $1', $string);
turns this is OpenSourceCode to this is Open Source Code
Another great solution, Robin, thanks. I've learned a LOT from this thread.
Dotan Cohen
On 25/04/07, Richard Lynch [EMAIL PROTECTED] wrote:
On Mon, April 23, 2007 9:48 am, WeberSites LTD wrote:
I'm trying to understand from the examples why anyone
that has get_magic_quotes_gpc() returning true would
need to use stripslashes() and then mysql_real_escape_string().
wouldn't that
2007. 04. 25, szerda keltezéssel 11.53-kor Henning Eiben ezt írta:
Zoltán Németh schrieb:
I wrote a small sample-application once using PHP (with propel and
smarty) and once using Java (JBoss, EJB3, JSP Servlets). Both apps are
being served from a windows server (2x Xeon 1,3GHz, 2 GB
Zoltán Németh wrote:
I already installed an php-accelerator (eAccelator) which increased the
overall performance, but still the performance is quite poor.
I would not say php performace is poor, I think it is quite fast (at
least on my linux boxes, I know nothing about php on windows...)
hi,
I have the following array, which I need to sort by quantity...
Array
(
[2408] = Array
(
[name] = Havaianas Top Pink Crystal
[size] = 5 (37/38)
[quantity] = 4
)
[3388] = Array
(
[name] = Havaianas Brazil Silver
Henning Eiben wrote:
Running my test for about 5 minutes, I get about 31.000 request for the
java application, but only about 3.000 for the php.
No offence, but the problem is almost 100% certainly in your PHP code
then. I'd look very carefully at what is going on there before trying to
Jon, I would suggest that you should have a look at the function
array_multisort. See the manual for details on what this function
is capable of.
//frank
25 apr 2007 kl. 01.58 skrev Jon Bennett:
hi,
I have the following array, which I need to sort by quantity...
Array
(
[2408] = Array
Richard Davey wrote:
Running my test for about 5 minutes, I get about 31.000 request for the
java application, but only about 3.000 for the php.
No offence, but the problem is almost 100% certainly in your PHP code
then. I'd look very carefully at what is going on there before trying to
I have the following array, which I need to sort by quantity...
I need to keep the indexes if poss.
This may not be the most elegant solution. Let's call your array
$origArray
$tmpArray = array();
foreach( $origArray as $elKey = $elArray ) {
$tmpArray[$elArray['quantity']] = $elKey;
}
if(
2007. 04. 25, szerda keltezéssel 11.39-kor Chris Boget ezt írta:
I have the following array, which I need to sort by quantity...
I need to keep the indexes if poss.
This may not be the most elegant solution. Let's call your array
$origArray
$tmpArray = array();
foreach( $origArray as
Zoltán Németh wrote:
I wrote a small sample-application once using PHP (with propel and
smarty) and once using Java (JBoss, EJB3, JSP Servlets). Both apps are
being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but the
performance of the PHP version is much slower than the Java
But as far as I understand, java kinda does the same thing, doesn't it?
Java programs are being compiled into some intermediate language, and
this is being interpreted at runtime. So using an accelerator should
mimic the same setup for php.
Java is much less dynamic language than PHP (try doing
Do you know any resource, describing how php works (like the thing about
compiling opcode, and stuff)? How does php handle simultaneous requests?
Are there multiple threads spawned?
PHP doesn't do threading, apache does however every request it receives
spawns a new thread ( there is however
On 4/25/07, clive [EMAIL PROTECTED] wrote:
Do you know any resource, describing how php works (like the thing about
compiling opcode, and stuff)? How does php handle simultaneous requests?
Are there multiple threads spawned?
PHP doesn't do threading, apache does however every request it
Stanislav Malyshev wrote:
But as far as I understand, java kinda does the same thing, doesn't it?
Java programs are being compiled into some intermediate language, and
this is being interpreted at runtime. So using an accelerator should
mimic the same setup for php.
Java is much less
On 4/25/07, Henning Eiben [EMAIL PROTECTED] wrote:
Hi,
I have a small sample-application, that uses smarty for the presentation
layer. Unfortunately I might encounter script-timeouts (not necessarily
from smarty, could also be the DB-connection or something). In this case
I would like to return
this won't work if he has the same quantity for several keys, I think
Yes, you are correct. If that is the case, then you would just need to
change the following line
$tmpArray[$elArray['quantity']] = $elKey;
to
$tmpArray[$elArray['quantity']][] = $elKey;
then change logic in this loop:
On 4/25/07, Satyam [EMAIL PROTECTED] wrote:
Sorry I'm late to this thread, I don't know if it has been mentioned, but
most files have a 'magic number' at the begining of the file, which usually
reads as a couple of letters or more. I think EXE files start with MZ, gifs
with GIFxx where xx is
Tijnema ! wrote:
I believe that mime_content_type does this, by reading a .magic file.
In a magic file, there are these described i believe. But how would
you detect (by a magic number) if a script is HTML or PHP? No way :P
mime_content_type is deprecated, use the FileInfo functions instead.
array_multisort accepts column arrays but here you try to sort row based
arrays.
try this:
?
class ArrayUtility
{
/* Sorts an array by a member */
static private $sortMember;
static function sortByMember($array, $member)
{
self::$sortMember = $member;
OK; so for serving multiple concurrent clients ISAPI would sound to me
like the better choice, since it can use threads, or what would be the
advantage of using fastcgi?
Non-threaded PHP is faster than threaded PHP, because it doesn't need to
do locks between threads and keep the thread
Jon Bennett wrote:
hi,
I have the following array, which I need to sort by quantity...
Array
(
[2408] = Array
(
[name] = Havaianas Top Pink Crystal
[size] = 5 (37/38)
[quantity] = 4
)
[3388] = Array
(
[name] = Havaianas
At 1:53 PM -0400 4/24/07, Beauford wrote:
Does anyone else have this problem with the list. It seems that every time I
check my email there is one or more messages from the list that royally
screws up Outlook. I usually have to delete all list messages from the
actual server and reboot. It only
where can I find the documentation about this symbol?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.20.7
^ ^ 21:22:01 up 6 days 2:08 0 users load average: 1.00 1.00
Hi all, whats the best way to perform a redirect after out put has started ?
using header:location will not work unless theres been no output.
I usuall use the method below, however am concerned for browsers that do not
support javascript.
$location = 'index.php';
echo script
Am 2007-04-20 17:58:20, schrieb Stut:
You should spool the message, send it to the first GSM-Provicer and
wait for bounces before sending it to the next one...
I would accept sending the message to 3-5 GSM-Providers @once but
creating a database of successfull send messages and bounces...
and
Tijnema ! wrote:
I have a small sample-application, that uses smarty for the presentation
layer. Unfortunately I might encounter script-timeouts (not necessarily
from smarty, could also be the DB-connection or something). In this case
I would like to return an appropriate HTTP status-code
Stanislav Malyshev wrote:
OK; so for serving multiple concurrent clients ISAPI would sound to me
like the better choice, since it can use threads, or what would be the
advantage of using fastcgi?
Non-threaded PHP is faster than threaded PHP, because it doesn't need to
do locks between
On Wed, 2007-04-25 at 21:23 +0800, Man-wai Chang wrote:
where can I find the documentation about this symbol?
Maybe in the documentation? A cursory glance from me though didn't turn
anything up. Either way I can inform you of the purpose...
The following two expression have the same result:
At 11:12 AM -0400 4/24/07, Al wrote:
Provide an example of an iFrame that will work on all modern
browsers and that can't be done with DIVs or OBJECTS
Al:
Okay, try this:
http://sperling.com/examples/captcha/
I use iframe to deliver the sound without a refresh via ajax.
Show me how you can
Henning Eiben wrote:
Tijnema ! wrote:
I have a small sample-application, that uses smarty for the presentation
layer. Unfortunately I might encounter script-timeouts (not necessarily
from smarty, could also be the DB-connection or something). In this case
I would like to return an appropriate
Heh, lucky me I was just looking into that earlier today.
http://us.php.net/manual/en/language.types.string.php
Around the Simple Syntax area.
-Logan
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 9:42 AM
To: Man-wai Chang
Cc:
- Original Message -
From: Man-wai Chang [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Wednesday, April 25, 2007 3:23 PM
Subject: [PHP] ${}
where can I find the documentation about this symbol?
It is one of those almost hidden treasures that is documented, a little bit
Stut wrote:
Henning Eiben wrote:
Tijnema ! wrote:
I have a small sample-application, that uses smarty for the
presentation
layer. Unfortunately I might encounter script-timeouts (not necessarily
from smarty, could also be the DB-connection or something). In this
case
I would like to return
OK, so I will give that a try. As far as I understand, I basically just
have to replace the association of .php to php5isapi.dll with
php-cgi.exe; and then set the global path to include my php-folder, right?
No, that probably would make it CGI, which is slow. For FastCGI, you
need FastCGI
Robert Cummings wrote:
On Wed, 2007-04-25 at 21:23 +0800, Man-wai Chang wrote:
where can I find the documentation about this symbol?
Maybe in the documentation? A cursory glance from me though didn't turn
anything up. Either way I can inform you of the purpose...
The following two
You can also use that in interpolations where the variable name may be
ambiguous ie
My name is Stephen and I am a {$type}drone
..or to interpolate array lookups:
This is {$desc['mood']} don't you know!
Buesching, Logan J wrote:
Heh, lucky me I was just looking into that earlier today.
http://us.php.net/manual/en/language.types.string.php
Around the Simple Syntax area.
Thanks. Foxpro called this macro substitution.
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v
Heh, lucky me I was just looking into that earlier today.
http://us.php.net/manual/en/language.types.string.php
Around the Simple Syntax area.
Foxpro called this Macro Substitution. There is also a eval() function
that works the same.
--
.~. Might, Courage, Vision, SINCERITY.
On Wed, 2007-04-25 at 22:15 +0800, Man-wai Chang wrote:
Buesching, Logan J wrote:
Heh, lucky me I was just looking into that earlier today.
http://us.php.net/manual/en/language.types.string.php
Around the Simple Syntax area.
Thanks. Foxpro called this macro substitution.
Only if used as
On Tuesday 24 April 2007 19:53, Beauford wrote:
Does anyone else have this problem with the list. It seems that every time
I check my email there is one or more messages from the list that royally
screws up Outlook. I usually have to delete all list messages from the
actual server and reboot.
Note: several of the folks used / as the delimiter. Actually, it can be almost anything that will not be in the
$string. Generally, I use % simply because it's easier to spot when I forget the delimiters.
Also, note Robin's use of the metachar [[:upper:]]. metacharacters can very useful. My
Sorry about that guys. I just fixed it.
Stut wrote:
FYI: Every time I reply to you I get a bounce back saying your email
address ([EMAIL PROTECTED]) does not exist. It's starting to get annoying.
-Stut
Stut wrote:
Al wrote:
Provide an example of an iFrame that will work on all modern
Quoting Børge Holen [EMAIL PROTECTED]:
On Tuesday 24 April 2007 19:53, Beauford wrote:
Does anyone else have this problem with the list. It seems that every time
I check my email there is one or more messages from the list that royally
screws up Outlook. I usually have to delete all list
On Wednesday 25 April 2007 14:14, Richard Davey wrote:
Tijnema ! wrote:
I believe that mime_content_type does this, by reading a .magic file.
In a magic file, there are these described i believe. But how would
you detect (by a magic number) if a script is HTML or PHP? No way :P
$var1 = Something + PHP Notice
$var2 = Something Hmmm_that;
I wonder whether Smarty's way of specifying variables is based on this...
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu
I wasn't even paying attention yesterday and I played two songs for
seven hours and forty-nine minutes straight, on replay, through my
headphones. No break, no pause, nothing I guess that explains why I'm a
little loopy.
Anyway, if you haven't heard The Picard Song or The Worf Song, I
Yeah, no problems on Gmail (webmail), or on the following configurations
(set up on a different address to receive list mail only):
Linux: Ximian Evolution, KMail
Windows: Outlook, Outlook Express, Thunderbird
On 4/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Quoting Børge
I stand corrected by pros.
One should always double check their memory before posting, even when in a
hurry.
Al wrote:
iFrames are obsolete and only IE handles them. I don't even know if IE7
does.
Use css div tags instead.
Hans wrote:
Hi there,
I'm trying to post variables to a parent
On Apr 25, 2007, at 8:25 AM, Don Don wrote:
Hi all, whats the best way to perform a redirect after out put
has started ? using header:location will not work unless theres
been no output.
I usuall use the method below, however am concerned for browsers
that do not support
At 6:25 AM -0700 4/25/07, Don Don wrote:
Hi all, whats the best way to perform a redirect after out put
has started ? using header:location will not work unless theres
been no output.
I usuall use the method below, however am concerned for browsers
that do not support javascript.
On Apr 25, 2007, at 8:21 AM, tedd wrote:
At 1:53 PM -0400 4/24/07, Beauford wrote:
Does anyone else have this problem with the list. It seems that
every time I
check my email there is one or more messages from the list that
royally
screws up Outlook. I usually have to delete all list
Hey Guys,
Can anyone recommend a good open source catalog program that is NOT a
shopping cart, but a simple way for a person to maintain their products,
pictures descriptions etc?
Thanks!
Joey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Stanislav Malyshev wrote:
OK, so I will give that a try. As far as I understand, I basically just
have to replace the association of .php to php5isapi.dll with
php-cgi.exe; and then set the global path to include my php-folder,
right?
No, that probably would make it CGI, which is slow. For
At 10:26 PM -0500 4/24/07, Seth Price wrote:
Hi all! I've been programming GD and PHP for a while, but I haven't
done much with font drawing. I'm trying to layout and draw text, but
the text actually changes size and shape depending on the angle it's
drawn at. This is making it extremely
I'm using Safari for Mac also. What are the numbers after 'Hello
world' coming out for you?
~Seth
On Apr 25, 2007, at 11:05 AM, tedd wrote:
At 10:26 PM -0500 4/24/07, Seth Price wrote:
Hi all! I've been programming GD and PHP for a while, but I haven't
done much with font drawing. I'm
So I've rewritten my script in C. You can find the source here:
http://leopold.sage.wisc.edu/testing/gd_ft_ang.c
This script links directly to GD and produces a still different
output. On my home system, the output image is correct and the length
89 px. On the web server, the output image is
When I print out my list of apartments, everything after
http://vancouver.craigslist.org/apa/318594679.html, which is grabbed via
http://code.google.com/p/feed-on-feeds/ is suddenly blue. So, the first few
are fine, have black text, after that it's all blue.
Do I put some html in the loop to
There's a one-to-many relationship between px_items.id and contacts.id, and I
want a printout of some data from each.
I want to print out the query results px_items.id field once and once only, but
the contacts.notes field many times, as there could be many entries.
Right now it prints out each
Very clever use of iFrame. So clever it doesn't show in your html source code.
Looks more like you are using DIV tags, with simple POST values, just like I'd
have done it.
Incidentally, br/ is an error for html.
tedd wrote:
At 11:12 AM -0400 4/24/07, Al wrote:
Provide an example of an
Yep, I'm calculating the length from the returned bounding box and
printing it out. The box seems to randomly expand and shrink
depending on the angle.
~Seth
~Seth:
I think it's your calculation of the bounding box that's throwing you
off -- maybe round off errors -- I don't know. However,
Hi gang:
Most text to speech techniques concentrate on making the browser or
desktop application do the translation of web text to speech. For
example, there are several listed here:
http://www.oatsoft.org/Software/listing/Repository
However, server-side text to speech is possible by
On Wed, April 25, 2007 2:00 pm, tedd wrote:
However, server-side text to speech is possible by delivering the
sound to the browser via EMBED or BGSOUND tags -- an example of this
can be seen here:
I have run Festival server side via PHP to generate audio snippets
of spoken word.
All you
I had actually done something almost exactly like this as an experiment
a few months back at http://isawit.com/tts/login.php. The audio download
portion may no longer work, though I can't remember if I removed the
code from that specific server or not. It was just for my own fun and
On Tuesday, April 24, 2007 6:02 PM Richard Lynch mailto:[EMAIL PROTECTED]
said:
I do not have any problems, but I'm not using Outlook, and never will.
Okay...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ditto on Festival. I've used it in the past as a trigger on MUD text to
vocalize messages sent by players.
Cheers,
Rob.
On Wed, 2007-04-25 at 15:08 -0400, Daniel Brown wrote:
I had actually done something almost exactly like this as an experiment
a few months back at
Dotan Cohen wrote:
On 25/04/07, Justin Frim [EMAIL PROTECTED] wrote:
I'm assuming then you want the data to be able to contain _some_ mark-up
considered to be safe?
Not at this stage, no. Maybe if the users ask for it, but not now in
the beginning. The universe's best engineer, Scotty,
On 25/04/07, Justin Frim [EMAIL PROTECTED] wrote:
Dotan Cohen wrote:
On 25/04/07, Justin Frim [EMAIL PROTECTED] wrote:
I'm assuming then you want the data to be able to contain _some_ mark-up
considered to be safe?
Not at this stage, no. Maybe if the users ask for it, but not now in
the
At 2:07 PM -0500 4/25/07, Richard Lynch wrote:
On Wed, April 25, 2007 2:00 pm, tedd wrote:
However, server-side text to speech is possible by delivering the
sound to the browser via EMBED or BGSOUND tags -- an example of this
can be seen here:
I have run Festival server side via PHP to
Tedd,
On all of the *nix boxes I use (and have used) I've had to install
Festival manually, so I would definitely not say that it's commonly found on
there especially for a server configuration.
On 4/25/07, tedd [EMAIL PROTECTED] wrote:
At 2:07 PM -0500 4/25/07, Richard Lynch
give this a shot
html
headtitleitems and notes/title/head
body
?php
$user=feeds;
$host=localhost;
$password=password;
$database = feeds;
$connection = mysql_connect($host,$user,$password) or die (couldn't connect to
server);
$db = mysql_select_db($database,$connection) or die (Couldn't select
Daniel Brown wrote:
Tedd,
On all of the *nix boxes I use (and have used) I've had to install
Festival manually, so I would definitely not say that it's commonly
found on
there especially for a server configuration.
But it IS commonly available, so why not just make it a
That's fine if you can find a shared host (as the OP states he's using)
that's willing to install it on their servers.
On 4/25/07, Brad Bonkoski [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
Tedd,
On all of the *nix boxes I use (and have used) I've had to install
Festival
2007. 04. 25, szerda keltezéssel 14.35-kor Al ezt írta:
Very clever use of iFrame. So clever it doesn't show in your html source
code.
Looks more like you are using DIV tags, with simple POST values, just like
I'd have done it.
Incidentally, br/ is an error for html.
can you tell me
Daniel Brown wrote:
That's fine if you can find a shared host (as the OP states he's
using)
that's willing to install it on their servers.
I guess I am just thinking the alternative is creating your own package
and using that, which again would force an external entity for the
system to
No, that's one of my servers. In all honesty, though, a dedicated
server or VPS is so cheap nowadays that it's almost not worth going with a
shared host anymore for any real programming. Because if you pay for your
own server (this one is less than $60 per month) and administer it yourself
On 4/25/07, Brad Bonkoski [EMAIL PROTECTED] wrote:
unless there is some way for PHP to do text-to-speech
translation, which seems way out of scope for a scripting language
Give it a couple of years. ;-P
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-)
I downloaded your image, enlarged it, and measured it out in
photoshop. The distance from the center to the left side is 131px,
and center to right side is 129px. Diameter to top is 129px, and to
bottom is 130px.
While it may not be an obvious ellipse, it's enough to throw off my
Have you considered using something other than Outlook?
Beauford wrote:
Does anyone else have this problem with the list. It seems that every time I
check my email there is one or more messages from the list that royally
screws up Outlook. I usually have to delete all list messages from the
It's those new Microsoft filters that crash on or block out anything
mentioning open source. Try running the following code prior to the mail
getting to your inbox like so:
? str_replace(PHP,ASP,$message); ?
Heh. I'm getting a little loopy already it it Friday yet?!? ;-P
On
Any ideas why my query only returns the very last record that matches the
criteria specified??
$sql_record =SELECT * FROM payment_request WHERE status_code = 'P';
$result_record = mssql_query($sql_record) or die(mssql_error());
if(!empty($result_record)) {
while ($row_record =
2007. 04. 25, szerda keltezéssel 16.42-kor Daniel Brown ezt írta:
It's those new Microsoft filters that crash on or block out anything
mentioning open source. Try running the following code prior to the mail
getting to your inbox like so:
? str_replace(PHP,ASP,$message); ?
Heh.
2007. 04. 25, szerda keltezéssel 16.56-kor Dan Shirah ezt írta:
Any ideas why my query only returns the very last record that matches the
criteria specified??
$sql_record =SELECT * FROM payment_request WHERE status_code = 'P';
$result_record = mssql_query($sql_record) or die(mssql_error());
At 2:35 PM -0400 4/25/07, Al wrote:
Very clever use of iFrame. So clever it doesn't show in your html
source code.
If you used a browser that could see generated html (like FireFox),
then you will see it -- try it. It's good to know about tools like
that.
Looks more like you are using DIV
Okay, print_r($result_record) for the query result.
But I still don't know why it's only returning the last record of the query
instead of all the results.
On 4/25/07, Zoltán Németh [EMAIL PROTECTED] wrote:
2007. 04. 25, szerda keltezéssel 16.56-kor Dan Shirah ezt írta:
Any ideas why my
Zoltán Németh wrote:
Incidentally, br/ is an error for html.
can you tell me why br/ is an error
greets
Zoltán Németh
br/ is xhtml. It's not an error in xhtml, but might confuse older
browsers. I tried it, even with a strict HTML 4.01 doctype and didn't
get any errors, but
Dan Shirah wrote:
Okay, print_r($result_record) for the query result.
But I still don't know why it's only returning the last record of the
query
instead of all the results.
Because it's a cursor and you're not resetting the position. You can't
print the entire result set this way - you
On Wed, April 25, 2007 3:56 pm, Dan Shirah wrote:
Any ideas why my query only returns the very last record that matches
the
criteria specified??
$sql_record =SELECT * FROM payment_request WHERE status_code = 'P';
$result_record = mssql_query($sql_record) or die(mssql_error());
2007. 04. 25, szerda keltezéssel 17.03-kor Dan Shirah ezt írta:
Okay, print_r($result_record) for the query result.
$result_record is a resource identifier. you are not interested in that
too, I think... ;)
if you want all records, then stuff them into an array and use that:
while ($row_record
Just a first glance, Dan, but try this:
$sql_record =SELECT * FROM payment_request WHERE status_code = 'P';
$result_record = mssql_query($sql_record) or die(mssql_error());
if(!empty($result_record)) {
while ($row_record = mssql_fetch_array($result_record)) {
echo $row_record['id'];
}
I'm sorry, perhaps I confused everyone by including the print_r.
My table has 79 records all with a status_code of 'P' that this should be
returning. But instead of all the results returning, all I am getting back
is row 79.
On 4/25/07, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, April
Dotan Cohen wrote:
I currently an using htmlencode, so and show as expected. I do
expect the math faculty to use those symbols :).
Then you're already protected from XSS attacks, no HTML filters
necessary. Easy as pi. ;-)
(ok, that one was lame)
--
PHP General Mailing List
1 - 100 of 155 matches
Mail list logo