On Thu, 21 Feb 2002, Matthew J Gray wrote:
No there really isn't. I wrote an extension that does it for me, but
I am waiting to see what the second zend engine will have for this
rather that using my hack. Maybe check the Zend Engine 2 mailing list
to see what the future may hold.
Hi,
you can find all what you want on the following url :
http://phpclasses.upperdesign.com/browse.html/class/2/
Personnaly I use the SMTP class from Richard Heyes
Laurent
You can sort of fake it using the call handler of the overload extension.
-Rasmus
On Thu, 21 Feb 2002, Mika Tuupola wrote:
Is there a way to create/add methods runtime to a class via
constructor or static factory method? I know it is possible
to create functions runtime
You didn't supply any information about you foreach() loop, but it works
like
foreach ($array as $string)
print $elementbr\n;
And explode() returns an array, so I think you need to do it like this:
$array = explode(;, $string);
array_push($authors, $array); // You could use foreach()
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Question 1:
How can I append strings to my authors array?
Me thinks this doesn't work :§) ?
$authors .= explode(;, $mydata-KW);
I'm getting Invalid argument supplied for foreach()
Question 2:
Once I get this working, I want to (a)
Hi ,
I have a problem in using the Header() function. I want to automatically
redirect the page into another php script after a form completion but im
receiving this error Warning: Cannot add header information - headers
already sent by ..
Heres the script line:
header(Location:
You can't redirect after sending output unless you use Javascript or some
other weirdness. Redirections are done before any output.
-Rasmus
On Fri, 22 Feb 2002, Michael P. Carel wrote:
Hi ,
I have a problem in using the Header() function. I want to automatically
redirect the page into
Hi
Thanks. In some cases I would have Microsoft Excel files wich I will save
as csv files. Can content be pulled from a csv in the same method.
Thanks
Mohamed
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 9:43 AM
Hallo,
I would like to try Zend studio server as possible support
for the development team.
Until now i found only a Zend for php4.0.5, 4.0.6
4.1.0.
Does anybody know where can i find a Zend
server compatible with php4.0.4 ?
thanks
best regards
Ornella Fasolo
--
PHP General Mailing List
Hello,
I'm new in use of php!
I have some problems to compile Win32 Php!
I want to include socket module in php and i don't because
i have some compilation errors.
Is there anybody who can help me?
cheers!
Fred
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Administration@myclassguide declared
Hi
Thanks. In some cases I would have Microsoft Excel files wich I will save
as csv files. Can content be pulled from a csv in the same method.
No idea Mohamed but presuming they're
Hi folks,
Is there a function that extracts numbers from a string?
I can do this with ereg but it's quite slow when you have a long list of
variables to get through...
thanks!
dk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try with preg_match_all()
PCRE functions are up to 25% faster than POSIX(ereg).
Best regards,
Andrey Hristov
- Original Message -
From: DigitalKoala [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 1:44 PM
Subject: [PHP] function that extracts numbers from a
You can send mail using PHP's mail() function.
On windows this works with regular SMTP (mail server),
on UNIX it executes a binary (local delivery agent) that
may handle the message as desired.
If you really want to sent through a telnet service, you can
fsockopen() to the telnet server
I have a special set of information retrieved from a while loop that I would
like a person to be able to edit and send back into a MySQL table.
I know all of the basic MySQL commands for doing such, but the PHP side to
get the input from the form to go in is really stumping me.
This is what I
I have a special set of information retrieved from a while loop that I would
like a person to be able to edit and send back into a MySQL table.
I know all of the basic MySQL commands for doing such, but the PHP side to
get the input from the form to go in is really stumping me.
This is what I
Hi!
You could use a plain form and JavaScript to do this.
It's fairly simple and it makes for nice little progress bars and graphs and other
'realtime' info.
A few tips:
- first output the form (completely)
- use *implicit* flushing when outputting your JS.
- use a new SCRIPT .. /SCRIPT
Michael,
Been there recently!
You want to use variable variables:
$index=0;
for (index=0; $index $rowcount; $index++){
$formvar='formvar'.$index;
$formvar=$$formvar;
Do the last two lines for each piece of data you want to handle.
Think about how you are isolating the formvars on the
Better is:
$index=0;
for (index=0; $index $rowcount; $index++){
$formvar=${'formvar'.$index};
}
- Original Message -
From: george Pitcher [EMAIL PROTECTED]
To: Michael Romagnoli [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 2:40 PM
Subject: Re: [PHP]
Hi,
I've got a text file containing blés, Châteaux ... (without quotes)
I'm reading this file like this
$FileName = Test.txt;
$FileHand = fopen($FileName, rb);
$Data = fread($FileHand, filesize($FileName));
fclose($FileHand);
print_r($Data);
Under Linux, by asking the script throught an HTTP
Lars Torben Wilson wrote:
On Thu, 2002-02-21 at 14:11, James Nord wrote:
Unfortunatly I know some that need to leave it.
If you would state exactly what the problem with the slash being
there is, perhaps we could help you.
The HTML renderer that comes with Java (jfc) renders the '' due to
Yeah, but, where does $rowcount come from, $or? Are you just renaming the
variable?
Thanks for your help!
-Mike
-Original Message-
From: george Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 7:40 AM
To: Michael Romagnoli
Cc: [EMAIL PROTECTED]
Subject: Re:
So, then I have a sql command for updating the data with $formvar? I would
work $domain into this because $domain is the unique identifier?
Like this:
$index=0;
for (index=0; $index $rowcount; $index++){
$formvar=${'formvar'.$index};
$sql = UPDATE table2 SET domain =
End goals
- avoid using CGI
- restrict PHP programs to user directory
- allow PHP from http to manipulate files/links/uploads/etc...
Apache main config sets user and group to nobody
Apache Virtual Host for site contains
# restrict web pages root in specific sub-directory
DocumentRoot
My dump:
# phpMyAdmin MySQL-Dump
# http://phpwizard.net/phpMyAdmin/
#
# Host: 192.168.1.11:3306 Database : test
#
#
# Table structure for table 'some'
#
CREATE TABLE some (
id varchar(6) NOT NULL,
descr varchar(250) NOT NULL
);
#
#
Warning: Supplied argument is not a valid MySQL result
resource in c:\program files\apache
group\apache\cgi-bin\emp.php3 on line 10
$db = mysql_connect(localhost, , );
mysql_select_db(employee,$db);
$result = mysql_query(SELECT * FROM employees,$db);
echo table border=0;
echo tr;
echo td
php-general Digest 22 Feb 2002 15:49:40 - Issue 1187
Topics (messages 85810 through 85856):
Transparent sid
85810 by: Richard Baskett
Any way to display a changing value?
85811 by: Leif K-Brooks
85843 by: bvr
Referencing a parent class' variables
85812 by:
This error comes when trying to fetch data from a result set but there is no such
because there was a problem with the query.
Try var_dump($res) and you will see - 0. 0 is not a valid number for resource of type
mysql or any other resource. To prevent this
every time when using a resource
The warning means the query failed in mysql. Perhaps it failed in the
connect. You do not need the number of rows.
To determine what the problem is, ALWAYS include a die() clause:
$db = mysql_connect(localhost, , ) or die(Error: .mysql_error());
mysql_select_db(employee,$db) or die(Error:
Forgive me if I'm treating pseudo as real but surely
print trtd ... value='$cancel[$or]' ... /td;
should be
print trtd ... value='{$cancel[$or]}' ... /td;
same goes for the array element in the sql statement
Tim Ward
Internet chess www.chessish.com http://www.chessish.com
Thanks Rasmus...
You have pointed me in the right directionupon further inspection of my
config.status I see that gdImageStringFTEX=no, and looking in the config.log
I found...
configure:21579: checking for gdImageStringFTEx in -lgd
configure:21598: gcc -o
onftest -g -O2
Hi Jim, here's how I do it. I test for the file size on the processing page
as well, if it's too large I redraw out the upload form.
//test for file extension type if needed
//determine file size -- if too big ( greater 50kb) then redirect
$siz = filesize($userfile);
if ($siz = 51200){
php4 installed with Apache on Windows ME, using as localhost.
I am trying to use imagecreate with a version of php4 that was installed
with the binary .exe installer, php seems to be installed OK.
I have changed the .ini file line:
;extension=php_gd.dll
To
extension=php_gd.dll
But I get an
Hello,
I'm looking for a good online billing system, something that offers
reocurring billing, announcements, online invoice viewing, and the works.
I would prefer something in php with mysql backend.
What do you recommend?
Thanks for your help.
-john
__John
You need to have that dll installed on your system. You need to download
php-version.zip file that contains all of the dlls in it to run with.
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-Original Message-
From: Mike Brackenridge [mailto:[EMAIL PROTECTED]]
Sent: Friday, February
look on php.net for preg_replace and functions like that, they use regular
expressions to replace characters
Digitalkoala [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi folks,
Is there a function that extracts numbers from a string?
I can do this with
Did you restarted the Apache service?
Regards,
Andrey Hristov
- Original Message -
From: Mike Brackenridge [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 7:00 PM
Subject: [PHP] imagecreate with Windows .exe installer
php4 installed with Apache on Windows ME,
I have a question: I normally use include to include a file, which often has
php tags that are then interpreted and resolved.
However, in one case I am reading a text file into a string (fread), then
running nl2br() on it to present it (with an echo command).
However, I wish to also resolve any
get all from the string which is between the tags and use the substring with eval();
Best regards,
Andrey Hristov
- Original Message -
From: neko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 5:42 AM
Subject: [PHP] resolving php tags in a string
I have a
Perhaps you have another libgd on your system that the -lgd in that test
program is picking up?
On Fri, 22 Feb 2002, Ernie Dipko wrote:
Thanks Rasmus...
You have pointed me in the right directionupon further inspection of my
config.status I see that gdImageStringFTEX=no, and looking in
$numresult=mysql_query($sql)
or die( 4 QUERY ERR $sql);
echo numresult = $numresult;
$numrows=mysql_num_rows($numresult);
mysql_free_result($numresult);
echo P align='left'You have selected .$numrows .
record(s).;
When I run the script above on php4 windows I get the
following
Ammendment:
Actually, I was just looking at one of my photoupload processes and I
actually removed the MAX_FILE out of the upload form and only tested the
file size on the processing page like in the previous message.
Cheers, Joe :)
Lerp [EMAIL PROTECTED] wrote in message
[EMAIL
From the list, the APR API is done. So there should be no further issues
getting it to work.(As in, you should no longer have to jump through
hoops every month or release, just to keep up with apr).
Well, this is simply not true. Things are still changing.
-Rasmus
--
PHP General Mailing
Does anyone have any experience with JaneBUILDER?
http://www.seejanecode.com It looks quite interesting and I was wondering
what other people thought of it?
Rick
I will permit no man to narrow and degrade my soul by making me hate him.
- Booker T. Washington
--
PHP General Mailing List
this is slightly o-t, but does anyone live in/near DC or the surrounding areas that i
could ask questions of? thanks.
robert
Guys,
I need to upgrade a server with 4.0.3 server because of some new ldap
features that I need.
I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon).
I heard that there is some significant difference between 4.0.x and 4.1.x
What is the main difference between 4.0.6 and
I have a really simple guestbook that allows someone to post to the book,
then it displays all the entries. Well, there are too many entries now for
just one page and it looks kinda wacky, so I wanted to do something where it
only displays 10 entries per page, then there are links for pages
I had suffered a little bit with sendmail myself last
week. It took me some reading, and I got it working
the second day.
Here is a useful link:
http://www.samag.com/documents/s=1168/sam0002f/0002f.htm
Also, check out the book titled Essential System
Administration.
That should be all you need
Go with QMAIL
Lots of support (mailing lists, web-sites). Several books written on it.
Easier to set-up than sendmail. Very configurable.
Written by same gent that wrote ezmlm mailing list application (ezmlm
handles the PHP mailing lists).
goto: http://cr.yp.to/qmail.html
-Original
Hello there,
I want to know the execution time of some scripts I made, I'm using the
difference of seconds (time() function) between the start and the end of
the script.
But, I would like to get a greater precision... so, I was wondering if
there is a chance to get miliseconds.
TIA
William
Ha, I shouldn't even bother posting this as it's pretty irrelevant for this
list but...
forget qmail, go with Postfix :) Qmail doesn't have one centralized config
file, and it gets annoying having to edit this one, then this one, then make
this file, etc.
Plus, I usually try to avoid Dan
Hi there,
I'm tryng to make an online form which update the content of a database.
I have tried it and it works BUT the user has to include all of the HTML
tags otherwise the text which is pulled out (displayed on the webpage)
from the database loose the pre-formated form. All the paragraphs
seach the manual for microtime()
-Original Message-
From: William Lovaton [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 2:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Miliseconds with PHP4
Hello there,
I want to know the execution time of some scripts I made, I'm using the
microtime() ?
--
R'twick Niceorgaw
E-Mail: [EMAIL PROTECTED]
Tel: 617-761-3936 (W)
732-801-3826 (C)
617-328-6423 (R)
--
- Original Message -
From: William Lovaton
how out of interest ?
Hello there,
I want to know the execution time of some scripts I made, I'm using the
difference of seconds (time() function) between the start and the end of
the script.
But, I would like to get a greater precision... so, I was wondering if
there is a chance to
Good day,
It should be pointed out that even with this syntax, the database will still
scour all of the rows in the table. The only savings is that the database
won't return all of these rows due to the limit statement.
It might be more efficient to use min and max to determine which row in
I'm planning to make a forum built into my site. I know all of the forums
have bbcode, and I doubt they all programmed it themselves. Is there
somewhere I can get the code for bbcode?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I was looking for the same type of information a few weeks ago, I eventually
found what I was looking for in the phpbb system.
Here is the code that they used.
//put right after your first opening PHP tag
$mtime = microtime(); // page creation timers
$mtime = explode( ,$mtime);
I have a friend with a PhotoLibrary web site.
I am trying to automate some of his work. I tried to create a PHP
script/program? that
would check for missing files and upload. I am testing on my laptop with
loopback.
It all works if I give the ftp routine that does the ftp_connect a hostname
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Ezra Nugroho) wrote:
I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon).
I heard that there is some significant difference between 4.0.x and 4.1.x
What is the main difference between 4.0.6 and 4.1.1 ?
Are the 4.1.x
I don't know what it is but I am having a hell of a time trying to get some
results of a query setup into an array or variable (too much of a newbie to
know which) that can be passed to a confirmation page before deleting the
record from a table. I have given up working on this but for those of
Take a look at mysql_data_seek()
Matt
James Taylor wrote:
I have a really simple guestbook that allows someone to post to the book,
then it displays all the entries. Well, there are too many entries now for
just one page and it looks kinda wacky, so I wanted to do something where it
only
Dear All,
I am using PHP + MYSQL. I have a question that I need some expert
to help. That is:
How do I find out a next and preview row values by using PHP and MYSQL. For
examples,
Row 10ID00010need this value
Row 11ID00025have this value on hand
Row 12ID00063
How do I find out a next and preview row values by using PHP and MYSQL. For
examples,
Take a look at the function
mysql_result();
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The solution I have been using is to do three queries similar to the below
SELECT * FROM table WHERE field='ID00025'
SELECT * FROM table WHERE field'ID00025' ORDER BY field DESC LIMIT 0,1
SELECT * FROM table WHERE field'ID00025' ORDER BY field ASC LIMIT 0,1
If you whish more row returned
The solution I have been using is to do three queries similar to the below
SELECT * FROM table WHERE field='ID00025'
SELECT * FROM table WHERE field'ID00025' ORDER BY field DESC LIMIT 0,1
SELECT * FROM table WHERE field'ID00025' ORDER BY field ASC LIMIT 0,1
If you whish more row returned
It seems worst to me because in your case mysql has to retrieve all the
rows. If it's a table with 1 million records or more, this should hurt ;)
As I said, it was pseudo code. Now, imagine that you were just
getting the records for a particular user? a particular application?
Where there
Hi,
It seems worst to me because in your case mysql has to retrieve all the
rows.
If it's a table with 1 million records or more, this should hurt ;)
Regards,
Jocelyn Fournier
Presence-PC
- Original Message -
From: Chris Boget [EMAIL PROTECTED]
To: Raymond Gubala [EMAIL PROTECTED];
Yes, but how to get ONLY the 3 records you need ?
Because often in an application, you don't care about the other records.
In this case AFAIK, there is no other solution than issuing at least two
queries :
SELECT * FROM table WHERE field='ID00025' ORDER BY field DESC LIMIT 2
SELECT * FROM table
Hi!
I have just visited a webiste and I have notice that user can't really
see the .php extension at the end of the URL address. And when I look at
the link address it's got 'class=click' .
Could someone help me to understand this please?
td bgcolor=#ffimg
to me it just seems that that site is using a frameset... and changing one
frame, doesn't change the body of the parentframe... and that frame is being
just for the URL shown.
The class='click' thing is just used for layout purpose... check out CSS
(Cascading Style Sheets) for more
On Sat, 23 Feb 2002, Dani wrote:
Hi!
I have just visited a webiste and I have notice that user can't really
see the .php extension at the end of the URL address. And when I look at
the link address it's got 'class=click' .
Could someone help me to understand this please?
td
Thanks guys!
Thalis A. Kalfigopoulos wrote:
On Sat, 23 Feb 2002, Dani wrote:
Hi!
I have just visited a webiste and I have notice that user can't really
see the .php extension at the end of the URL address. And when I look at
the link address it's got 'class=click' .
Could
The function, nl2br() swaps end-line characters for HTML br tags.
This is usually adequate for this situation. Though the default
end-line character (\n or \r) can differ between operating systems, I
have yet to experience a major problem. -Kevin
-Original Message-
From: Dani
This may be a bit off topic but I am trying to install the pdflib package
for Linux so I can make pdfs through php and I was wondering if anyone might
know the command to download a file via CRT from an http source.
I apologize to the OT but I cant seem to get much of anything to work for
me.
El vie, 22-02-2002 a las 04:54, jas escribió:
I don't know what it is but I am having a hell of a time trying to get some
results of a query setup into an array or variable (too much of a newbie to
know which) that can be passed to a confirmation page before deleting the
record from a table.
it seems interesting. but look real carefully at the PHP snippet gif on the
features page (under the find Icon) g
Richard Baskett [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Does anyone have any experience with JaneBUILDER?
http://www.seejanecode.com It
Oh that's too funny.. Their code is screwed up *grin* plus the code it
exports.. Don¹t care much for the tabbing, but that could probably be fixed,
but.. Oh man that is funny. Thanks! :)
Rick
If I accept you as you are, I will make you worse; however, if I treat you
as though you are what you
Try wget if it's installed. If not, lynx, a shell-based web browser, is
installed on quite a few machines.
J
Ben Turner wrote:
This may be a bit off topic but I am trying to install the pdflib package
for Linux so I can make pdfs through php and I was wondering if anyone
might know
Hi Guys,
I have some images stored in my MySql database that I'd like to display on
the bottom of my HTML page. However, whenever I attempt to display the
images using the follow code:
$getPhoto = mysql_fetch_object($result);
$Type = $getPhoto-type;
Header(Content-type: $Type);
$Body =
Yea...I thought of that too, I searched the the entire file system for
*libgd*, removed everything and then tried to ./configure php, to make sure
it failed, it did, then I reinstalled gd and reran the configure, it worked
just as before, gdImageStringFTEX=no and same error in the
Reginald Mullin [EMAIL PROTECTED] wrote:
Now I understand why I'm getting the error. What I'd like to know is how to
get around it? Basically what I want is the image in the DB to be displayed
like any regular image would be on an HTML page, i.e. img
src=imageGoesHere height=x width=x
Do I need Wes's patch for gdImageStringFTEX to work??? I was mistaken, I
thought the patch only fixed the anti-aliasing problem?
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Perhaps you have another libgd on your system that the -lgd in that
It does only fix the anti-aliasing problem. ImageFtText() works fine.
On Fri, 22 Feb 2002, Ernie Dipko wrote:
Do I need Wes's patch for gdImageStringFTEX to work??? I was mistaken, I
thought the patch only fixed the anti-aliasing problem?
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
Why not download a forum, such as phpbb (www.phpbb.com) and check out their
code? =)
Jeff
At 03:41 PM 2/22/2002 -0500, Leif K-Brooks wrote:
I'm planning to make a forum built into my site. I know all of the forums
have bbcode, and I doubt they all programmed it themselves. Is there
somewhere
Hi,
Anybody here in this list have successfully integrated paypal to their websites.
Like sending item info to the paypal site and getting response code and based on that
do some action stuff.
I have also searched through archives http://interchange.redhat.com/
some one this list
Im programming a page where I have a java-tree-menu that gets generated
from a db. The code works perfectly but sometimes when a browser reads the
page I just get half of the page. I have noticed this behaivour on many
different browsers such as mozilla, netscape, galeon, explorer and even
wget
Ok..found something interesting.
PHP + Apache 2.0.32 does not run on glibc 2.2.5.
(fyi 2.2.5 was compiled with 3.0.3
and my kernel, and binutils, and openssl)
I tarred up an installation of Apache 2.0.32 I made from a different
machine running 2.2.4, compiled from 2.96, as well as the php
Hello,
I'm trying to find out how to calculate some dates, and the part I'm
having problems with is finding the date of the first Monday in
September.
I'm looking into the strtotime() function which works some great magic
with dates, but I can't figure out how to use the day of the week syntax
Nevermind, I figured it out, didn't see that you could pass a timestamp
to strtotime.
Thanks.
On Fri, 2002-02-22 at 14:22, Jeff Bearer wrote:
Hello,
I'm trying to find out how to calculate some dates, and the part I'm
having problems with is finding the date of the first Monday in
I am sorry, and hate to keep bugging, but I am confused.
If in order to have ImageFTText() work I need HAVE_GD_STRINGFTEX in the
php_config.h. and gdImageStringFTEx is not part of the patch, where is
gdImageStringFTEx...
I just searched all the gd header files (grep -i StringFTEX gd*.h) then
I guess it's because I didn't really follow Niklas' post, so I'll ask
the first part of yesterday's question again, if someone can help me
think my way through it. I've been looking at
http://www.php.net/manual/en/ref.array.php but don't really get HOW to
build an array from my MySQL data.
I'm
Jtjohnston [EMAIL PROTECTED] wrote:
Where/How do I start in building a new array? .= doesn't work:
$authors .= explode(;, $mydata-KW);
'.=' doesn't work because that does a string append.
you just want:
$authors = explode(;, $mydata-KW);
then you can sort the array using sort().
On Fri, 22 Feb 2002 21:38:16 -0500, you wrote:
I'd to know how difficult it is to achieve the following:
Create login page, when the submit button is clicked, the user info is checked
against a database as
to whether is login info is valid. if it is valid, a page is displayed that lists all
John Ericson wrote:
Im programming a page where I have a java-tree-menu that gets generated
from a db. The code works perfectly but sometimes when a browser reads the
page I just get half of the page. I have noticed this behaivour on many
different browsers such as mozilla, netscape,
Also, for adding items onto an array use array_push()
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
On Friday, February 22, 2002, at 07:41 PM, Jim Winstead wrote:
Jtjohnston [EMAIL PROTECTED] wrote:
Where/How do I start in building a new array? .= doesn't work:
OK. I use:
while ($mydata = mysql_fetch_object($news))
{
$authors = explode(;, $mydata-AS);
}
Then why Invalid argument supplied for foreach()
Am I indeed building an array as I go through my database?
foreach($authors as $author)
{
#echo sort($author).br\n;
echo $authorbr\n;
}
Yeah but, this doesn't work either? I'm trying :)
$news = mysql_query(select AS from $table);
while ($mydata = mysql_fetch_object($news))
{
# $authors = explode(;, $mydata-AS);
array_push ($authors, explode(;, $mydata-AS));
}
foreach($authors as $author)
{
echo $authorbr\n;
}
--
What's the difference between
if (isset($submit_happening))
and
if $submit_happening)
John
[EMAIL PROTECTED] wrote:
On Fri, 22 Feb 2002 21:38:16 -0500, you wrote:
I'd to know how difficult it is to achieve the following:
Create login page, when the submit button is clicked, the user info
Well, if $submit_happening is set to 0, 0 or false then
if($submit_happening) will evaluate to false while
if(isset($submit_happening)) will evaluate to true
As the documentation (please read http://www.php.net/isset) isset()
returns true if the variable exists and false if it doesn't.
-Rasmus
100 matches
Mail list logo