I want to save a document in .doc format on the fly but my server is running
on a linux machine. Can I still make use of COM object? Or there is some
other module which I can easily load on the fly???
somebody told me the link below butI cannot find the module from
there... :S
I am looking for a comparison of features supported by PHP vs those
supported by Perl.
My gut tells me PHP is more robust, but we are trying to implement something
in a company that has long had a standard allowing Perl as a sanctioned
language, but current management does not want to fight for
from the code:
?php
include 'navigationStart3.php4';
Are these indents in the code (changeAlertDetails3.php4 I think)? You
can't have anything before the ?php.
yup, that was it red face, sorted, thanks everyone
J
--
PHP General Mailing List (http://www.php.net/)
To
Warren Vail [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am looking for a comparison of features supported by PHP vs those
supported by Perl.
[snip]
Ah, this old chestnut.
As someone who wrote a major application in Perl, and now (mostly) uses PHP,
I can only reiterate what's
Hi,
I was just curious, how much longer are globals going to be supported? I
had heard awhile back that they wouldn't be around for too long.
Thanks,
Bryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In order to get this to work I had to do several things.
1. I had initially compiled my php installation as a server-side
module, but in order to execute and detach a background php process I
had to recompile my php installation as a binary installation (hint: if
you compile php as a binary
I am trying to figure out how to encrypt data using the web-based php
mcrypt function and then decrypt it using the command line (cli) mcrypt
binary, and vica-versa.
I cannot seem to get the same encrypted output for the same data,
between the two methods. I've tried to ensure I am using the
Rolf, et al --
...and then Rolf Brusletto said...
%
% Whenever I submit a message to this list, I get a bounce back saying its
% a dupe, anyone have any ideas?
I figured some pair subscriber has a loop in his .forward setup.
%
% --
% Rolf Brusletto
% rolf[at]emailfeeds[dot]com
%
Hi,
Tuesday, January 6, 2004, 8:48:17 PM, you wrote:
GCN I am trying to figure out how to encrypt data using the web-based php
GCN mcrypt function and then decrypt it using the command line (cli) mcrypt
GCN binary, and vica-versa.
GCN I cannot seem to get the same encrypted output for the same
Ryan A wrote:
Opera version 6.5 and 7...
I already had that set.
Try asking again on news:opera.general
(if your server does not carry this newsgroup,
try news.opera.com). There are more Opera
- knowleable people there :8]. I recall that
there is a solution, I just cannot find
(Relisted as no response from over Xmas period)
Hi,
I am having a real problem with error messages posted in the error.log file
in the Apache directory. I have been doing lots of searches to find a
solution and it seems obvious that many people are see this issue but I can
find no resolution
Warren --
...and then Warren Vail said...
%
% I am looking for a comparison of features supported by PHP vs those
% supported by Perl.
In general, I'd say that there's nothing that one can do that the other
can't, though I'd also say that for things not native to the language
(or even for
On 06 January 2004 04:06, Tyler Longren wrote:
Hi,
http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple
I read that. Doesn't work in php since the whole register_globals
thing. Now, when I get the results from a form, they're all in a
$_POST[] array. Example.
When I
On 06 January 2004 03:58, Tim L wrote:
I'm not sure if this is intended behaviour or not, but I can
see that is
might be. Just thought I would bounce this to see what
people think about
it:
?php
if (false)
? Hello?php
else
echo Hi;
echo World\n;
?
This returns a parse
Hi all,
I'm quite a newbie ot php/mysql, so my question might be oversimple
(though i tried for hours to understand..)
I'm making an addressbook, as a try out, to see how it al works. All is
great actually, but only the sorting of the addresses seems complicated
for me..
I have a databse
Just add order by to the sql query instead eg
SELECT id, name, surname, address FROM addresses order by name asc;
or descending on surname
eg
SELECT id, name, surname, address FROM addresses order by surname desc;
hope this helps
Pete
Bart Koppe wrote:
Hi all,
I'm quite a newbie ot php/mysql,
[snip]
$result = mysql_query(
SELECT id, name, surname, address FROM
addresses);
This scripts works, but.. my desire is now to be able to sort the
output, wich is generated by the 'while' loop, for instance on 'name',
or on 'surname' .
[/snip]
Do it in
Hello Bart,
Tuesday, January 6, 2004, 12:40:38 PM, you wrote:
BK This scripts works, but.. my desire is now to be able to sort the
BK output, wich is generated by the 'while' loop, for instance on 'name',
BK or on 'surname' . sort(), ksort()? I couldn't understand the
BK explanations i found
I'm trying to use str_replace to ignore sertain characters from a recordset
field and it seems I am having difficulties with ignoring commas and
carriage returns. I've gotten the following but when searching for, let's
say, New York. When York is at the end of a sentence from a recordset field
it
Hi!
Anyone know what is the php function for finding the length of the array?
I haven't found the answer at http://us3.php.net/manual/en/ref.array.php .
Thanks,
FletchSOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 15:44 6-1-04, you wrote:
Hi!
Anyone know what is the php function for finding the length of the array?
I haven't found the answer at http://us3.php.net/manual/en/ref.array.php .
looking for the number of elements? -count($arrayname)
--
PHP General Mailing List (http://www.php.net/)
To
Hi Tim,
?php
if (false)
?Hello?php
?
or
?php
if (true)
?Hello?php
?
at first, I'd like to point out that semicolon as a statement separator is
not required before end of the
php fragment and is supplied automatically during parsing. That's why the
if-statements initiated above
Ah! Thanks!!!
Chris Hayes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
At 15:44 6-1-04, you wrote:
Hi!
Anyone know what is the php function for finding the length of the
array?
I haven't found the answer at http://us3.php.net/manual/en/ref.array.php
.
looking for the
At 15:29 6-1-04, you wrote:
I'm trying to use str_replace to ignore sertain characters from a recordset
field and it seems I am having difficulties with ignoring commas and
carriage returns. I've gotten the following but when searching for, let's
say, New York. When York is at the end of a
could the problem be that you explode on so the phrase 'New York',
having a space, is split up?
Could be. Some times the New is on one line and the York is on the next
line. I need for it to explode no matter what. How would I do that?
For instance the print_r for the array shows me this in
As a follow-up to my own post, I found the following resources good for
inspiration of both implementation methods and general insight:
http://gplugs.sourceforge.net/pluginman/
http://nucleuscms.org/documentation/devdocs/plugins.html
I've already written about 1000 words specifying my own ideas
Simply create a html file and give the user impression that it's in doc
format - output the right header and give it .doc extension
Naveed Ahmad wrote:
I want to save a document in .doc format on the fly but my server is running
on a linux machine. Can I still make use of COM object? Or there is
At 15:58 6-1-04, you wrote:
could the problem be that you explode on so the phrase 'New York',
having a space, is split up?
Could be. Some times the New is on one line and the York is on the next
line. I need for it to explode no matter what. How would I do that?
For instance the print_r for
http://www.americansubstandard.com/index.php?sub=vword=vmail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Vernon,
Tuesday, January 6, 2004, 2:29:31 PM, you wrote:
V I'm trying to use str_replace to ignore sertain characters from a recordset
V field and it seems I am having difficulties with ignoring commas and
V carriage returns. I've gotten the following but when searching for, let's
Nowhere
Or you can use sizeof() which is an alias for count()
Scott Fletcher wrote:
***
This Email Has Been Virus Swept
***
Ah! Thanks!!!
Chris Hayes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
At
Nah... You can't use COM in Linux, but you can generate an RTF pretty
easily, which will open right up in Word with no problems whatsoever.
-- jon
---
jon roig
web developer
email: [EMAIL PROTECTED]
phone: 888.230.7557
-Original Message-
From: Naveed Ahmad
PHP Gurus
A while ago on this list I posted a few questions about an eregi
filter for email addresses entered into a form. With the help of people
on this list, I settled on the following code which has worked fine in
the months since I started using it. The code is this:
eregi('[EMAIL
Nowhere in your replacement array do you check for, or remove,
carriage returns.
Add this \n to it:
$replacement = array(\, \,, ., !, ?, \n);
Your exploded array should now be correct.
When I do this I get some really unexpected results. Almost everything comes
up bold.
--
PHP General
On 06 January 2004 15:53, Dave G wrote:
PHP Gurus
A while ago on this list I posted a few questions about an eregi
filter for email addresses entered into a form. With the help
of people
on this list, I settled on the following code which has worked fine in
the months since I
--- Richard Davey [EMAIL PROTECTED] wrote:
Hello Rolf,
Tuesday, January 6, 2004, 1:26:31 AM, you wrote:
RB Whenever I submit a message to this list, I get a bounce back saying
RB a dupe, anyone have any ideas?
I get exactly the same - it's highly annoying and happens every time.
Do
Hello Vernon,
Tuesday, January 6, 2004, 3:56:18 PM, you wrote:
Nowhere in your replacement array do you check for, or remove,
carriage returns.
Add this \n to it:
$replacement = array(\, \,, ., !, ?, \n);
Your exploded array should now be correct.
V When I do this I get some really
From: Dave G [EMAIL PROTECTED]
A while ago on this list I posted a few questions about an eregi
filter for email addresses entered into a form. With the help of people
on this list, I settled on the following code which has worked fine in
the months since I started using it. The code is this:
Hello Chris,
Tuesday, January 6, 2004, 4:13:09 PM, you wrote:
CS I think it happens for everyone, and Pair hosts a lot of the php.net
CS stuff, including handling the email, so I doubt it matters whether you use
CS Pair for SMTP.
CS I assume (I could be wrong) that they're working on the
Hi,
One man's perl is another man's headache. beeng using perl for six years
and i have trouble understanding what other people wrote with it and
vice verce. not so with PHP. and what ever the module you find on CPAN
you will find an equivalent or similar in PHP as well.
And finally on java,
--- Warren Vail [EMAIL PROTECTED] wrote:
I am looking for a comparison of features supported by PHP vs those
supported by Perl.
You'll find it difficult to identify a feature in one language that's not
in the other. And, where features differ, the same solutions can probably
be achieved with
In fact, I hope you do more than session_start() and
go in PHP, else you are probably vulnerable to a number of session-based
attacks.
Man, that's all I do alot of the time?
What dangers are there, care to share any facts figures about that...?
I'll go away now and read up again on sessions...!
Hello All,
I am trying to import data into MySQL DB using a CSV file (using
phpMyAdmin as the DB Admin tool). I keep getting the following error.
SQL-query :
LOAD DATA LOCAL INFILE '/tmp/phpYRmG0A' INTO TABLE `contacts` FIELDS
TERMINATED BY ';' LINES TERMINATED BY '\n'(
`company` ,
Hello,
On 01/06/2004 01:52 PM, Dave G wrote:
A while ago on this list I posted a few questions about an eregi
filter for email addresses entered into a form. With the help of people
on this list, I settled on the following code which has worked fine in
the months since I started using it.
Hi,
ensure you have FILE privilege on the db-server host.
Mike
Pushpinder Singh [EMAIL PROTECTED] píse v diskusním príspevku
news:[EMAIL PROTECTED]
Hello All,
I am trying to import data into MySQL DB using a CSV file (using
phpMyAdmin as the DB Admin tool). I keep getting the
Maybe I am going to show my own ignorance here, but I think if your looking
for Server side web programming that PHP is much easier to use. Even some
of the developers here that use perl a lot more than me, will say that web
programming with perl is challenging in comparison.
My logic is
Is there a really good way to use PHP Session to tell whenether the user is
authorized user or not? I see one problem here, let's say the user tried to
access certain webpages that are unauthorized then I get to kick the user
out. But when the user logged in, we assigned a session token to it,
Hi,
if I understand this correctly, a module looses its context if it is
required or included.
For example I have a module foo/a.php which is required by b.php via
require (foo/a.php). Unfortunately within the module a.php the cwd()
is not foo but the context of b.php. The easiest way to fix
I'm creating a resume database where I am having resumes submitted to this
database and keyword searches done. All works. Now I need to have a way of
tagging items found in the database much like a shopping cart.
So, I have a unique ID created each time someone does a search on the page
which is
can someone point me to the right place for a thing that would count charactors in a
string?
---
Philip J. Newman
Master Developer
PhilipNZ.com [NZ] Ltd.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Jost,
Sunday, January 4, 2004, 3:09:41 PM, you wrote:
JB For example I have a module foo/a.php which is required by b.php via
JB require (foo/a.php). Unfortunately within the module a.php the cwd()
JB is not foo but the context of b.php. The easiest way to fix this would
Makes sense.
JB
[snip]
can someone point me to the right place for a thing that would count
charactors in a string?
[/snip]
http://www.php.net/strlen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Philip,
Tuesday, January 6, 2004, 6:25:34 PM, you wrote:
PJN can someone point me to the right place for a thing that
PJN would count charactors in a string?
count_chars() and strlen()
--
Best regards,
Richardmailto:[EMAIL PROTECTED]
--
PHP General Mailing
--- [EMAIL PROTECTED] wrote:
In fact, I hope you do more than session_start() and go
in PHP, else you are probably vulnerable to a number of
session-based attacks.
Man, that's all I do alot of the time? What dangers are there,
care to share any facts figures about that...?
PHP provides
--- Scott Fletcher [EMAIL PROTECTED] wrote:
Is there a really good way to use PHP Session to tell whenether the
user is authorized user or not?
Yes, there are many good ways, and I'm sure I'm not even aware of many of
them.
I see one problem here, let's say the user tried to access certain
Scott,
I suspect you will gets lot's of input on this one. There is a fairly
glaring hack that allows users to override your session variables (if you
rely on the feature of PHP that automatically adds session variables, as
well as get and post variables, to the global pool [register_globals, I
...no matter what follows the NANC...seems like a bug.
if(NA 0)
{
print(err 1\n);
}
if(NAN 0)
{
print(err 2\n);
}
if(NANC 0)
{
print(err 3\n);
}
if(NANCY 0)
{
print(err 4\n);
}
// output
err 3
err 4
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
At some point, the user is going to have to be responsible for his/her own
actions. After all, I can log into my bank's Web site and then let someone
else use my computer, and there's no way my bank can prevent it.
Sure the bank can prevent it or otherwise my bank would never use the
website in
On Tue, 6 Jan 2004 10:57:52 -0800, you wrote:
...no matter what follows the NANC...seems like a bug.
if(NA 0)
{
print(err 1\n);
}
if(NAN 0)
{
print(err 2\n);
}
if(NANC 0)
{
print(err 3\n);
}
if (NANC 0)
{
echo (one);
} else {
echo (two);
}
outputs two here, as
Hello Ivo,
Tuesday, January 6, 2004, 6:57:52 PM, you wrote:
IP ...no matter what follows the NANC...seems like a bug.
IP // output
IP err 3
IP err 4
Not for me it doesn't. It outputs nothing (as it should).
--
Best regards,
Richardmailto:[EMAIL PROTECTED]
--
Hello Scott,
Tuesday, January 6, 2004, 7:19:55 PM, you wrote:
SF Sure the bank can prevent it or otherwise my bank would never use the
SF website in the first place. My bank doesn't use PHP, it use JAVA and
SF surprisely, it work very well.
Really? How would your bank determine the difference
Subject: The PHP Vancouver Conference - January 22-23
The Vancouver PHP Users' Association is proud to present The PHP
Vancouver Conference, a professional and technical conference
focused on the PHP scripting language.
Join the world's leading PHP developers and business professionals as
they
Hello again,
I am still stuck with this bug. Can some one advise me, how to find
out if I have the FILE privilege on my DB or not.
Thanks again
Pushpinder
On Tuesday, January 6, 2004, at 12:08 PM, Michal Oskera wrote:
Hi,
ensure you have FILE privilege on the db-server host.
Mike
Hate to disillusion you Scott, but Java cannot plug this hole. Let's
conduct a test, with your account, not mine, eh? ;-)
Warren Vail
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 11:20 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP]
[snip]
I am still stuck with this bug. Can some one advise me, how to find
out if I have the FILE privilege on my DB or not.
[/snip]
USE mysql;
SELECT * FROM user WHERE User = 'master';
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a way to convert a web page into a Microsoft Word document? ...maybe with a
PHP header of some kind?
What I want to do is populate a web page with data from MySQL database, then open it
in Microsoft Word. Alternatively, if you know how, I could populate the Word document
directly
Dang ! I get this error when I try to check for priv settings for my DB
SQL-query :
USE mysql
MySQL said:
Access denied for user: '[EMAIL PROTECTED]' to database 'mysql'
Please advise. Thanks
Pushpinder
On Tuesday, January 6, 2004, at 02:29 PM, Jay Blanchard wrote:
[snip]
I am still
Ivo Pletikosic wrote:
...no matter what follows the NANC...seems like a bug.
if(NA 0)
{
print(err 1\n);
}
if(NAN 0)
{
print(err 2\n);
}
if(NANC 0)
{
print(err 3\n);
}
if(NANCY 0)
{
print(err 4\n);
}
// output
err 3
err 4
Same behaviour here,
PHP Version 4.3.4 under Linux debian
Is there any way to have a web page (PHP) that draws data from a database (MySQL) then
populates a Microsoft Word document? I have some Microsoft Word templates that are
manually populated and cry out for database integration, but Microsoft Access is not
robust enough.
For an even harder
Hi,
Never noticed it before...only after the linux box got updated to
v4.3.4...running the script against my v4.2.3 also outputs err 3
err4...version 4.0.6 outputs nothing as it should.
Odd...not sure where to start digging to figure this...in the meantime
I'll work it around like this:
$data
[snip]Dang ! I get this error when I try to check for priv settings for
my DB
SQL-query :
USE mysql
MySQL said:
Access denied for user: '[EMAIL PROTECTED]' to database
'mysql'
[/snip]
Well, you (master) do not have
--- Scott Fletcher [EMAIL PROTECTED] wrote:
At some point, the user is going to have to be responsible for his/her
own actions. After all, I can log into my bank's Web site and then let
someone else use my computer, and there's no way my bank can prevent
it.
Sure the bank can prevent it
Hey everybody. I am trying to eliminate possibilities for a site that is
slowing down, and was hoping that you all could pick apart some code for me
to see if there is some optimizations that you may suggest that may make
some significant difference.
The code in question here is called EVERY
Does anyone know how, if possible, to connect to two databases on two
different network servers so that join queries can be performed (without
using temporary tables)?
I am using MySQL so mysql_pconnect() or mysql_connect() will insert a
default server ('localhost:3306', per the docs) if I do
Use MySQLODBC... I use it to manage my databases through MS Access.
I haven't integrated it yet with Word, but it is my intention in the
near future.
Hope this helps.
Respectfully,
Gary
Satch wrote:
Is there any way to have a web page (PHP) that draws data from a database (MySQL) then
Interesting point. After all, to remove a cookie you simply give it an
expire time in the past. However, it should only explain the lack of cookie
receipt. Since the user is able to surf for a period of time on the site
before getting the boot, I wouldn't think it would apply.
In the last post
Hi,
I don't think mysql_affected_rows() is working like it should for me.
In the manual for mysql_affected_rows() it has this (Example 1):
/* this should return the correct numbers of deleted records */
mysql_query(DELETE FROM mytable WHERE id 10);
printf(Records deleted: %d\n,
Hi Philip,
strlen() will work.
http://www.php.net/manual/en/function.strlen.php
Best Regards,
--
Tyler Longren
J.D. Web Services, L.C.
On Wed, 2004-01-07 at 01:25, Philip J. Newman wrote:
can someone point me to the right place for a thing that would count charactors in a
string?
---
On Tue, 6 Jan 2004, Ivo Pletikosic wrote:
$data = 'NANC';
if(is_numeric($data) $data 0) { die('Not OK'); }
Interesting problem, one of the first legit oddities I've seen since
joining the list. Anyway, in addition to your workaround, casting the
variable as an int also appears to result in
I'm trying to access some SNMP agents. I have to have use
SNMP v2, otherwise the snmp requests time out. PHP seems
to use SNMP v1 by default. How can I change this?
EX:
I need it to replicate the following command
snmpget -v2c ...
Luke Bailey
--
PHP General Mailing List
Has anyone been successful in using the new FDF Toolkit version 6? I have
been able to compile it into Apache and then compile php with fdftk but when
I try to actually merge fdf data into a PDF I get errors in Acrobat. If
anyone can shed some light it would be greatly appreciated.
Thank you,
How can I generate .rtf files ???
Jon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Nah... You can't use COM in Linux, but you can generate an RTF pretty
easily, which will open right up in Word with no problems whatsoever.
-- jon
---
jon roig
web developer
for accessing the word document, assuming your server is a windows platform
consider the following;
http://www.php.net/manual/en/ref.com.php
good luck,
Warren Vail
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Gary C. New
Sent: Tuesday, January 06, 2004 12:12 PM
To:
From: Tyler Longren [EMAIL PROTECTED]
I don't think mysql_affected_rows() is working like it should for me.
In the manual for mysql_affected_rows() it has this (Example 1):
/* this should return the correct numbers of deleted records */
mysql_query(DELETE FROM mytable WHERE id 10);
*This message was transferred with a trial version of CommuniGate(tm) Pro*
I'm trying to access some SNMP agents. I have to have use
SNMP v2, otherwise the snmp requests time out. PHP seems
to use SNMP v1 by default. How can I change this?
EX:
I need it to replicate the following command
Hi Cpt,
That's not the exact code. The exact code is below. Multiple workers
are being selected from a MULTIPLE select form field. I just use a
while loop do go through the selected ones to delete them individually.
PHP Version: 4.3.4
MySQL Version: 4.0.17
$i=0;
while ($i = $selected) {
Hello,
I use PHP v. 4.3.3 and MySQL v 4.1.0a and
I have the same experience as Tyler. Also when performing INSERT and UPDATE
commands.
And I also don't know why.
Mike
Cpt John W. Holmes [EMAIL PROTECTED] píse v diskusním príspevku
news:[EMAIL PROTECTED]
From: Tyler Longren [EMAIL PROTECTED]
From: Tyler Longren [EMAIL PROTECTED]
That's not the exact code. The exact code is below. Multiple workers
are being selected from a MULTIPLE select form field. I just use a
while loop do go through the selected ones to delete them individually.
PHP Version: 4.3.4
MySQL Version: 4.0.17
From: Kelly Hallman [EMAIL PROTECTED]
On Tue, 6 Jan 2004, Ivo Pletikosic wrote:
$data = 'NANC';
if(is_numeric($data) $data 0) { die('Not OK'); }
Interesting problem, one of the first legit oddities I've seen since
joining the list. Anyway, in addition to your workaround, casting the
I tried this in another (rather odd) environment and had some success. I
took a word document and saved it as HTML and then opened it in a text
editor.
I used a .doc extension and kept:
html xmlns:o=urn:schemas-microsoft-com:office:office
xmlns:w=urn:schemas-microsoft-com:office:word
require 'database.php';
$t_02 = subnets;
$sql_subs = mysql_query(SELECT * FROM $t_02,$db)or
die(mysql_error()); while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge)
= mysql_fetch_array($sql_subs)) {
$num = mysql_num_rows($sql_subs);
for($z = 0; $z $num; $z++) {
$vlans[] = subnet
On Tue, 2004-01-06 at 15:04, Jas wrote:
require 'database.php';
$t_02 = subnets;
$sql_subs = mysql_query(SELECT * FROM $t_02,$db)or
die(mysql_error());while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge)
= mysql_fetch_array($sql_subs)) {
$num = mysql_num_rows($sql_subs);
This is probably more like what you need.
I can't see why you'd need to loop through your results using two different
methods (while and for)
require 'database.php';
$t_02 = subnets;
$sql_subs = mysql_query(SELECT * FROM $t_02,$db) or die(mysql_error());
$num = mysql_num_rows($sql_subs);
for ($z
Anyone know what is the php function for finding the length of the array?
I haven't found the answer at http://us3.php.net/manual/en/ref.array.php .
You are aware that all the available array functions are listed about
halfway down that page, right?
On Wed, Jan 07, 2004 at 09:17:35AM +1100, Martin Towell wrote:
This is probably more like what you need.
I can't see why you'd need to loop through your results using two different
methods (while and for)
require 'database.php';
$t_02 = subnets;
$sql_subs = mysql_query(SELECT * FROM
--- Mike Migurski [EMAIL PROTECTED] wrote:
Anyone know what is the php function for finding the length of the
array? I haven't found the answer at
http://us3.php.net/manual/en/ref.array.php .
You are aware that all the available array functions are listed about
halfway down that page,
On Tue, Jan 06, 2004 at 05:33:41PM -0500, joel boonstra wrote:
snip
I would recommend not simply doing a select *, but rather specifying
which columns you want. That way, if your database schema changes
(e.g., you add two more columns), your code won't break.
And, responding to myself,
Tom,
I appreciate the suggestion, but even after setting the iv to zero
within the php code and including the --noiv option within the command
line; it still does not produce the same base64 encoded string under
both methods.
I noticed that the command line was keying off of 2 passphrases and
Sorry if this is a repost, I could not see the original.
Any help with this would be immensely appreciated!
Here is what the problem I am having is:
I have a .php page. There are several form fields. When I populate the
fields, submit to another page, and then use the browser's back button, the
Hi Paul,
Paul wrote:
I have a .php page. There are several form fields. When I populate
the fields, submit to another page, and then use the browser's back
button, the data is still there. This is indeed what I want.
HOWEVER, when one field has a javascript event (ie. onClick open a
browser
1 - 100 of 128 matches
Mail list logo