***_PLEASE CC me as I am on digest_***
Anyone have a link or links to how to definitively make safe inserts to
databases with form information?
I'm thinking this has to do with add/remove slashes. BUT, I also think
that it might be a good idea to write a function that adds slashes to
all SQL
Is it possible to create an excel file with some data from mySQL, using PHP
?
Thanks,
Evan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday 18 May 2002 00:18, Evan wrote:
Is it possible to create an excel file with some data from mySQL, using PHP
?
Yes if you know the file format for excel. If not then write your data into a
CSV file.
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software
depending on your needs you could just create a .csv file (comma seperated
text) that excel can read easily
- Original Message -
From: Dennis Gearon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 17, 2002 11:13 AM
Subject: [PHP] forms into database and visa versa
***_PLEASE
I guess you'd have to look around for exact specs on how Excel marks up
it's source (if you want formatting, bold, etc), but it's quite easy to
create a CSV (comma separated value) file which can easily be imported into
Excel, if you're happy to have no formatting.
I'm sure a quick dig around
You can use COM, if you're running on a Windows server. Haven't tried it
myself, right enough...
==
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED]
-Original Message-
Is it possible to create an excel file with some data from mySQL, using PHP
?
Yes if you know the file format for excel. If not then write your data into a
CSV file.
I just output the data as regular HTML (tabled, usually) but send the following
headers first:
Thanks to all :-)
Bye,
Evan
Evan [EMAIL PROTECTED] ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is it possible to create an excel file with some data from mySQL, using
PHP
?
Thanks,
Evan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
Is it possible to create an excel file with some data from mySQL, using PHP
?
[/snip]
Evan,
I'll send you the article I recently wrote for evolt.org, it details all of
the things you need to know. Excel will honor all HTML table formatting
issues, except color. Colors need to be stated
It is also possible to connect directly to MySQL from Excel via MyODBC.
-Rasmus
On Fri, 17 May 2002, Chris Boget wrote:
Is it possible to create an excel file with some data from mySQL, using PHP
?
Yes if you know the file format for excel. If not then write your data into a
CSV
Hi,
I have forms that retrieve date from mysql databases and send (for storage) data to
same databases. I note many functions to make sure that the data is correct in
appearance when it comes to special characters.
addslashes()
stripslashes()
htmlspecialchars()
htmlentities()
It is also possible to connect directly to MySQL from Excel via MyODBC.
True, but only if you are running PHP on a windows platform, yes?
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No, this has nothing to do with PHP. You can run MySQL on Windows or
UNIX, doesn't matter, and set up a connection directly from Excel to
MySQL.
PHP can of course run anywhere you want and manipulate the data in MySQL
which will then be reflected in Excel.
-Rasmus
On Fri, 17 May 2002, Chris
[snip]
It is also possible to connect directly to MySQL from Excel via MyODBC.
True, but only if you are running PHP on a windows platform, yes?
[/snip]
Nope, no PHP, just the ODBC driver would have to live on Windows
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
No, this has nothing to do with PHP. You can run MySQL on Windows or
UNIX, doesn't matter, and set up a connection directly from Excel to
MySQL.
PHP can of course run anywhere you want and manipulate the data in MySQL
which will then be reflected in Excel.
Are there examples anywhere that
Are there examples anywhere that illustrate how this can be done? I'm not very
interested in looking into this alternative.
You are not very interested, but you want examples? Just read the MyODBC
docs at mysql.com.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To
Hi all,
Howcome, when I do a SQL lookup, I can only access the array once?
Say, I have...
?
$SQL = mysql_query(SOME SELECT STATEMENT);
while ($var = mysql_fetch_array($SQL)) {
echo $var['columbname'];
}
// that works, and prints out the rows in the table
// my codes continues.
?
some
reset()
On Fri, 17 May 2002, Chris Knipe wrote:
Hi all,
Howcome, when I do a SQL lookup, I can only access the array once?
Say, I have...
?
$SQL = mysql_query(SOME SELECT STATEMENT);
while ($var = mysql_fetch_array($SQL)) {
echo $var['columbname'];
}
// that works, and prints out
Are there examples anywhere that illustrate how this can be done? I'm not very
interested in looking into this alternative.
You are not very interested, but you want examples?
eep, sorry. not should have been now.
Just read the MyODBC docs at mysql.com.
Excellent. Thank you very
Hello,
On 05/17/2002 01:18 PM, Evan wrote:
Is it possible to create an excel file with some data from mySQL, using PHP
?
Sure, you can use this class to generate Excel files on fly on even in
non-Windows platforms.
http://www.phpclasses.org/biffwriter
--
Regards,
Manuel Lemos
--
PHP
At 02:13 PM 5/17/2002 -0300, Manuel Lemos posted the following...
Hello,
On 05/17/2002 01:18 PM, Evan wrote:
Is it possible to create an excel file with some data from mySQL, using PHP
?
Sure, you can use this class to generate Excel files on fly on even in
non-Windows platforms.
Heck,
Hi. I'm fairly new to PHP and programming in general. I'm learning mostly
by deconstructing what others have written...but even though I have plenty
of PHP books and have searched the Internet high and low, I'm stumped by the
exact meaning in the following function of what the question mark's
Anyone have a link or links to how to definitively make safe inserts to
databases with form information?
It's a good idea to validate all data you're sticking in before you do.
For example, if you have a numeric field, you don't want the person to
be able to submit letters in that field. So,
This isn't a php question, which is why you aren't getting any answers...
there are many ways to go about this. with cybercash and payflow, and all
other payment gateways, you DO need a merchant account. specifically, a
merchant account that is compatible with the payment gateway you're
Hi,
anyone know/done good php training courses in london
thx
adrian
On 17 May 2002 at 12:23, Jeff Field wrote:
$theValue = ($theValue != ) ? ' . $theValue . ' : NULL;
It's a shortened version of the if...else construct. As in...
condition ? this_if_true : this_if_false
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Fri, May 17, 2002 at 12:23:45PM -0500, Jeff Field wrote:
I'm stumped by the
exact meaning in the following function of what the question mark's (?)
and colon's (:), mean and do?
That's the ternary comparison operator. See
http://www.php.net/manual/en/language.operators.comparison.php,
The ? in this senario is called the ternary operator
basically shorthand for an if/else statement e.g
$theValue = ($theValue != ) ? ' . $theValue . ' :NULL;
is the equivalent of
if($theValue != ) {
$theValue =$theValue ;
}
else{
$theValue =NULL;
}
- Original Message -
From: Jeff Field
Hi all,
I have got this code but I can get it to work, it doesnt make sense!
snip
?php
$host=localhost;
$username=user;
$password=pass;
$database=admin;
$mysqlconnect = mysql_connect($host, $username, $password) or die (Cannot
connect to mySQL server, check it is running);
On Fri, 17 May 2002, r wrote:
Sorry for the late reply,
but i have a boss who wants everything done RIGHT NOW!
Anyway, as an example think a person uploads a .php or .exe file, I just
dont want it to run on my webserver
how can i restrict him/her?
Just make sure the uploads are in a
I want to show in random way 8 pictures (jpg) from a collection of 20 I have
, so the users have more interest to visit the page.
I use the follow small code with the help from the manual:
But the random numbers are all accending order for 1 - 20 and in cycle, as
the seed comes from computers
On Fri, 17 May 2002, Martin Wickman wrote:
Jared Boelens wrote:
This is the one my company uses:
http://nocc.sourceforge.net/
I found it very easy to modify, and it fully supports attachments as
well as the related RFCs.
I had problem with it, since it required imap stuff and whatnot.
The mysql_select_db() function is going to return a handle. You need to
capture that handle and use it as the second parameter in your mysql_query()
function. Although this is not required in certain cases where the server
automatically knows which database to work with, chances are thats whats
also try to:
echo mysql_error();
after the select-query, it will tell you what went wrong.
Thomas
On Fri, 17 May 2002 18:45:07 +0100
[EMAIL PROTECTED] (Randum Ian) wrote:
Hi all,
I have got this code but I can get it to work, it doesnt make sense!
snip
?php
$host=localhost;
On Fri, 17 May 2002, James E. Hicks III wrote:
I do a
system(html2ps SOME.html SOME.pd);
then I do a
system(ps2pdf SOME.pd);
How about just:
system('html2ps some.html | ps2pdf some.pdf');
?
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Can anybody tell me where I can find a list of all the possible headers that
I can use in the header function? I searched through the manual and can't
seem to find a list of headers.
I need to know what header it is that display an authorization required or
forbidden when my authentication
On Fri, 17 May 2002, Joshua E Minnie wrote:
Can anybody tell me where I can find a list of all the possible headers that
I can use in the header function? I searched through the manual and can't
seem to find a list of headers.
Everything's in the RFC.
Don:
I have forms that retrieve date from mysql databases and send (for
storage) data to same databases. I note many functions to make sure
that the data is correct in appearance when it comes to special
characters.
addslashes()
stripslashes()
htmlspecialchars()
htmlentities()
On Fri, 17 May 2002, Don wrote:
I have forms that retrieve date from mysql databases and send (for
storage) data to same databases. I note many functions to make sure
that the data is correct in appearance when it comes to special
characters.
addslashes()
stripslashes()
Hi
I've got a PHP powered site that involves some form submissions for searches
and when using the browser's 'back' button to return to the search results
page I get the horrible 'Page expired' warning due to the page being created
from variables sent in a form.
I know there is a way to
On Fri, 17 May 2002, Marcus James Christian wrote:
I love PHP but I haven't gotten deep into it because of the issue of
needed to upload it to my hosts server to test it.
I'd love to get REALLY good with PHP, advanced shopping cart stuff, DB
etc. but I just know the way my mind works and
On Fri, 17 May 2002, Scott Graham wrote:
I've got a PHP powered site that involves some form submissions for searches
and when using the browser's 'back' button to return to the search results
page I get the horrible 'Page expired' warning due to the page being created
from variables sent in
I've gotta be able to do either one. Sometimes the script just stops with the PS
and sends that in the email based on a flag. It depends on what format the
customer prefers his invoices in.
James
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002
Just wondering what would cause the following:
I have a 512/128 cable connection through my ISP that I'm hosting my
sites through. I have a 10gb/mo transfer limit (u/l and d/l) so when I
saw mention of the ob_gzhandler (and mod_gzip for Apache), that kind of
got me interested in it.
Anyway, I
On Fri, 17 May 2002 [EMAIL PROTECTED] wrote:
I am a newbie so be kind
I have looked into the manual about directory functions etc.
I want to return all the files from a directory into a array.
Could some one give me a few pointers or something?
I keep getting confused but I have used
This will just start Apache if I remember correctly. You still have to alter
the httpd.conf file.
Details for MacOSX php setup are here:
http://www.macdevcenter.com/pub/ct/49
php is covered in part III
- Original Message -
From: Miguel Cruz [EMAIL PROTECTED]
To: Marcus James Christian
Anthony,
I find it is useful to write code such that every outcome, however remote, is handled
by your code:
$query = INSERT INTO ... blah ;
// pconnect, select and query
if ($link_identifier = mysql_pconnect(DBSERVERHOST, DBUSERNAME, DBPASSWORD)) {
if ( mysql_select_db(DBNAME,
Jason Soza wrote:
Just wondering what would cause the following:
I have a 512/128 cable connection through my ISP that I'm hosting my
sites through. I have a 10gb/mo transfer limit (u/l and d/l) so when I
saw mention of the ob_gzhandler (and mod_gzip for Apache), that kind of
got me
On Fri, 17 May 2002, Dan Hardiker wrote:
from the cron I would call this command...
wget -q -T10 http:/www.mydomain.com/myScript.php -0 /dev/null
This makes it highly insecure as anyone could execute it (unless you
locked it down which is silly when you could just run it locally
Analysis Solutions wrote:
On Fri, May 17, 2002 at 10:27:50AM -0400, Analysis Solutions wrote:
Does this mean that if i want to start accepting credit cards on my
site i wont have to pay for a credit card merchant account?
You betcha.
Oh, Dear! I didn't see the wont in there on
Ok
Let's say I'm querying a table, and looping thru the results:
$connect=mysql_connect(host,user,pass);
$thedb=mysql_select(database1);
$thequery=select * from foo;
$theresult=mysql_query($thequery) or die (mysql_error())
while ($output=mysql_fetch_assoc($theresult)){
do stuff here..
}
Didn't do the trick
But it did point my towards mysql_data_seek, which did the job beautifully
:)
Thanks
--
me
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Chris Knipe [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, May 17, 2002 7:04 PM
Subject: Re: [PHP]
On Fri, 17 May 2002, D Lau wrote:
http://gtk.php.net/ and
http://www.php.net/manual/en/features.commandline.php for a
Sorry, I forgot to say my requirement is to make this a browser only
application.
Would all these still works?
No, if you want highly interactive apps in a browser
On Fri, 17 May 2002, Kelly Meeks wrote:
Let's say I'm querying a table, and looping thru the results:
$connect=mysql_connect(host,user,pass);
$thedb=mysql_select(database1);
$thequery=select * from foo;
$theresult=mysql_query($thequery) or die (mysql_error())
while
Kelly Meeks wrote:
Ok
Let's say I'm querying a table, and looping thru the results:
$connect=mysql_connect(host,user,pass);
$thedb=mysql_select(database1);
$thequery=select * from foo;
$theresult=mysql_query($thequery) or die (mysql_error())
while
Robert Cummings wrote:
Kelly Meeks wrote:
Ok
Let's say I'm querying a table, and looping thru the results:
$connect=mysql_connect(host,user,pass);
$thedb=mysql_select(database1);
$thequery=select * from foo;
$theresult=mysql_query($thequery) or die (mysql_error())
while
On Fri, 17 May 2002, Jason Soza wrote:
Am I doing something wrong? Shouldn't the ob_start() by itself just
load all output into a buffer and not display it until I call ob_flush
()?
Or when you get to the end of execution...
http://php.net/ob_implicit_flush
miguel
--
PHP General
I just installed Red Hat 7.3 with Apache and PHP. I ran a simple script
to test the imap_open function and it doesn't work when using the
values for servers on my subnet.
http://www.gym.itesm.mx/imap.php
However, if the mailbox I request to open is on another server outside, it
does work.
Hmmm... So if I -wanted- to buffer the entire page using ob_gzhandler,
I wouldn't use ob_implicit_flush(), correct? Or would this be
beneficial in this case? The way I read the manual page on
ob_implicit_flush() is that it flushes after each output call. Would
that mean that
You can just set output_handler in your php.ini file to automatically
buffer and compress everything.
On Fri, 17 May 2002, Jason Soza wrote:
Hmmm... So if I -wanted- to buffer the entire page using ob_gzhandler,
I wouldn't use ob_implicit_flush(), correct? Or would this be
beneficial in this
Hi,
On my form, I have a text area. I was doing some testing and on one line, I entered
the following:
test line
When I looked at the results pages sent to the browser, that line was missing. I
think that the character is the culprit. I've tried stripslashes() and
htmlentities() but I
Any hint from the developers as to when to expect 4.3.0?
cheers,
thalis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 17 May 2002, Thalis A. Kalfigopoulos wrote:
Any hint from the developers as to when to expect 4.3.0?
Check the archives of this list, as it's been hinted at more than once in
the past week or so.
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Clearly test line is being interpreted by the browser as an HTML tag.
Use htmlspecialchars() to encode these characters in the string. Or find
and replace with lt; and with gt;.
-Kevin
- Original Message -
From: Don [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Friday, May
Please can anyone tell me how to cope with IE6 showing files after browsing
with input type=file
The files are always shown with backslashes.
On the next page $_FILES[file][name] will only have the full
drive\dir\file path if the backslashes are converted manually to forward
slashes.
The
Hi,
I'm trying to find a way to determine whether a clients browser current
url is prefixed by http or https. However, I cannot seem to find the
right predefined variable to give me this information. Basically, I want
the same thing that HTTP_REFERER provides, but for the _current_ page.
Any
I would guess you want $_SERVER[SERVER_PROTOCOL] which returns
HTTP/1.1 for me and probably HTTPS... for https connections... also if
you're using apache I think it sets some SSL_* variables that exist only
when using https.
On Fri, 17 May 2002, Steven Walker wrote:
Hi,
I'm trying to find a
Thanks! I got it:
$_SERVER['HTTPS'] == on
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
On Friday, May 17, 2002, at 01:09 PM, Philip Hallstrom wrote:
I would guess you want $_SERVER[SERVER_PROTOCOL] which returns
HTTP/1.1 for me and probably HTTPS... for https
Hello everyone.
I have been using PHP since version 4.0.6 and always
compile from source. I have not had a single problem
until now. I'm trying to upgrade from php-4.1.2 to
php-4.2.1, and when i make install php-4.2.1, *any*
PHP page i access throws off a ton of errors that
i've never seen
Hey guys,
i'm getting this error whe i try to access this variable. $answers[answer$n]
Parse error: parse error, expecting `']'' in
/home/blindtheory/web/quiz/add_quiz/add_quiz_process_2.php on line 36
the variable $answer[answers$n] comes from a form on the preceding page in
which a number
I have a PHP script that computes the URLs to files that i need to
download. Is it possible to put passthru() with wget in a while loop and
donwload multiple files at one time ? Or does passthru() complete the shell
command and then proceed.
Any other suggestions ?
thx in advance
gamin.
Try $answers[answer.$n]
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
-Original Message-
From: Jule [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 4:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $answers[answer$n]
Hi everyone!
I'm still learning PHP and MYSQL using windows98, MYSQL, PHP 4 in my
local hard drive.
I want to learn uploading image and resizing image in my local machine.
when I execute this code:
?PHP
//setup image
$height = 200;
$width = 200;
$im = ImageCreate($width,$height);
$white =
Probably don't have the GD extension enaabled.
On a win machine, it's easy, look in your php.ini
and set the extensions_dir to where your extensions
are then un-comment php_gd.dll
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
Testimonial time!
Despite ROCK STAR assistance from a PHP developer, I'm having troubles with
mssql_*() functions. most of the problems are gone (or being fixed by some
AWESOME people), but to make use of those fixes, i've got to use php v
4.3-dev. and there's other bugs in that (as there
I've been using it for about 4 months and it's very stable.
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: Jerome Houston [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 4:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
Could someone who has a clue about this fill in Serg and the rest of the
folks on this list who might be interested?
-- Forwarded message --
Date: Fri, 17 May 2002 23:32:28 +0300
From: Serg Lysak [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Kiev party
Hello webmaster,
So, anybody out there have PHP installed on their local home
desktop Mac OSX box able to test by a quick preview in
browser from say an app like BBedit?
I went to:
http://www.google.com/
I entered the following into their dinky little search box:
mac osx apache mysql php installer
I
I've read the documentation but am still confused about what
to use when.
When passing data from forms to database, which do I use?
When retrieving data from database to display in forms,
which do I use?
Kinda depends on what you're using the data for really. If you don't
care
On Sat, 18 May 2002, David Freeman wrote:
As a general rule, though, you'll need to 'escape' anything that your
database won't like - this is typically the ' and chars. Addslashes()
will do that for you. Anything else you want to do depends on what you
need the data for.
When you suck
When you suck the data back out you'll obviously need to
stripslashes() to get rid of the 'escape' chars you added above.
Nope, because the escape characters don't actually get added to the
database.
When the database's command interpreter sees it, it removes
the escape
a question:
if i have this:
for ($n = 1; $n = $quiz[number_answers]; $n++) {
$table = $qcode._answers;
$value = $answers[answer.$n];
$value2 = answer.$n;
$query_alter_table = ALTER TABLE $table ADD $value2 TEXT NOT NULL;
$query_add_answers = INSERT INTO
Im looking to know how to handle it.
HTTP_ACCEPT_LANGUAGE = en-us, en;q=0.75, th;q=0.50, yi;q=0.25
What are the 'q' values for?
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
update table set answer3=5 where id=2;
miguel
On Fri, 17 May 2002, Jule wrote:
a question:
if i have this:
for ($n = 1; $n = $quiz[number_answers]; $n++) {
$table = $qcode._answers;
$value = $answers[answer.$n];
$value2 = answer.$n;
$query_alter_table =
On Fri, 17 May 2002, Gerard Samuel wrote:
Im looking to know how to handle it.
HTTP_ACCEPT_LANGUAGE = en-us, en;q=0.75, th;q=0.50, yi;q=0.25
What are the 'q' values for?
How much they'd like to receive one of those other languages. The closer
the number is to 1, the more excited they are
I haven't jumped ship to OSX yet (still on OS9), but I believe it's not far
away... However, I don't know if I'd put my test server on the same box...
time will tell, but I prefer having my old clunker P133 box under the desk
running the same OS / Apache version / PHP version / MySQL version as
After reading the manual Istill can't convert this
09/May/2002 to a timestamp.
Any Pointers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A couple of ways to do it:
strtotime('09 May 2002');
mktime(12,0,0,5,9,2002);
On Sat, 18 May 2002, Josh Edwards wrote:
After reading the manual Istill can't convert this
09/May/2002 to a timestamp.
Any Pointers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
hi,
i'm in a bit of a bind and i'm hoping someone can help me. i'm
working on a project in which some data was saved into a postgresql
database. It was copied from quark express and entered through a php
interface. Unfortunately some of the records have a strange character
encoding.
Okay, I'm apologizing right now for this, but I hope it's at least
tolerable. I have this:
for ($i=1; $i=$num_pages; $i++) {
// print stuff here
}
For each loop, I want to add 20 to $i, so after the first iteration, I have
21, then 41, 61, etc. I've tried $i+20, $i + 20, I've
try,
for ($i=1; $i=$num_pages; $i = $i + 20) {
}
or try,
$i = 1;
while ($i=$num_pages) {
//text here
$i = $i + 20;
}
I got those little problems too all the time..
and the boards/lists always help.
Jule
On Friday 17 May 2002 23:19, you wrote:
Okay, I'm apologizing right now
Hmm... Wouldn¹t you just do this?:
for ($i=1; $i=$num_pages; $i+20) {
// print stuff here
}
Rick
The vision must be followed by the venture. It is not enough to stare up
the steps - we must step up the stairs. - Vance Havner
From: Jason Soza [EMAIL PROTECTED]
Date: Fri, 17 May 2002
would that work?
isn't $i++; abbr. for $i = $i + 1;
so now the $i + 20; doens't declare anything.
just like $i += $b; is abbr. $i = $i + $b;
Jule.
On Friday 17 May 2002 23:14, you wrote:
Hmm... Wouldn¹t you just do this?:
for ($i=1; $i=$num_pages; $i+20) {
// print stuff here
}
Well, I tried that but the page doesn't finish loading... I.e. a script that
normally doesn't take more than a second to load just sits there. With $i++,
everything's fine - with $i+20, the browser says it's loading, but all I
have is a white screen for about 30 seconds... Then it times out.
Hi
That looks like UTF-8 encoding and I think you will need the iconv
extension installed to convert it easily.
Tom
At 12:56 PM 18/05/2002, darcy w.christ wrote:
hi,
i'm in a bit of a bind and i'm hoping someone can help me. i'm working
on a project in which some data was saved into a
For each loop, I want to add 20 to $i, so after the first
iteration, I have
21, then 41, 61, etc. I've tried $i+20, $i + 20, I've tried looking in the
manual, but I assume this is some C-type function, and I'm not
familiar with
C!
Well this is a bit of a detour from the other suggestions
I apologize :) yes you need to do this:
for ($i=1; $i=$num_pages; $i=$i+20) {
echo $i - is ibr /;
}
Make sure $num_pages is set though.. If not it wont work you'll just get a
blank white page. Yes I did some testing *hehe* It worked beautifully when
$num_pages is set though..
Rick
The
Hi
What you need is
for ($i=1; $i=$num_pages; $i+=20) {
// print stuff here
}
Tom
At 01:19 PM 18/05/2002, Jason Soza wrote:
Okay, I'm apologizing right now for this, but I hope it's at least
tolerable. I have this:
for ($i=1; $i=$num_pages; $i++) {
// print stuff here
}
Thanks Craig, that worked!
I wonder why the other suggestions weren't working. They seemed logical
enough, I even tried variations of your suggestion, first I tried:
for ($i=1; $i=$num_pages; $number = $i + 20) {}
That wasn't working, still was getting the 30 second timeout. Then I tried:
for
I wonder why the other suggestions weren't working. They seemed logical
enough, I even tried variations of your suggestion, first I tried:
for ($i=1; $i=$num_pages; $number = $i + 20) {}
for ($i=1; $i=$num_pages;) { $number = $i + 20; }
The problem with these two statements was that the
101 - 200 of 215 matches
Mail list logo