On 4/24/2013 2:01 PM, Jim Giner wrote:
I know - it sounds OT, but listen.
I have a form that has a sign in button which attempts to sent the
user to a form in a password-protected folder. In order to get there
the user must provide credentials. Once there the receiving script
simply sets
I know - it sounds OT, but listen.
I have a form that has a sign in button which attempts to sent the
user to a form in a password-protected folder. In order to get there
the user must provide credentials. Once there the receiving script
simply sets a session var and does a header() back
). The
appearance is wrong; it is still broken. No errors are being thrown. We are
baffled.
Ken
If you have the Suhosin patch installed, it also introduces other limits
to GET and POST variable counts within PHP.
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General
On 04/24/2013 03:24 PM, Ken Kixmoeller wrote:
Thanks, Jim ---
Is this different from the max_input_vars discussion above? (from David
OBrien)
yes. For example...
php.ini:[suhosin]
php.ini:;suhosin.log.syslog =
php.ini:;suhosin.log.syslog.facility =
php.ini:;suhosin.log.syslog.priority
On 4/23/2013 10:39 AM, Glob Design Info wrote:
Well all, it turns out the *correct* answer to my question, which no one
answered, and which only degenerated into a kindergarten-like argument is:
You need to add the port # to the *end* of the mysql_connect() call.
i.e.:
$link = mysqli_connect(
On 4/21/2013 7:35 PM, Glob Design Info wrote:
A very complex solution that takes time to learn, configure, and
install, vs. a single file I can toss on the server.
Over-engineering is what is daft.
As has been pointed out to you - your simplistic approach to this task
is going to cost you
Why are you allowing anyone to connect to your database from a form?
Cheers,
tedd
_
tedd.sperl...@gmail.com
http://sperling.com
A little OT, but...
What do you mean by this question? How do you check someone's
credentials if not by connecting to a db to verify the
On 4/20/2013 11:44 AM, Stuart Dallas wrote:
On 20 Apr 2013, at 16:25, Jim Giner jim.gi...@albanyhandball.com wrote:
Why are you allowing anyone to connect to your database from a form?
A little OT, but...
What do you mean by this question? How do you check someone's credentials
On 4/19/2013 9:33 PM, Glob Design Info wrote:
They aren't on the same server. The DB is on xeround.com, the web server
is localhost.
The host value is set and working. If I hard-code the user and password
values in the mysql_connect() call and leave the host value as is, it
connects fine. Only
On 4/20/2013 12:23 AM, Glob Design Info wrote:
No, no spaces.
I am wondering if I need to use htmlspecialchars()
On Apr 19, 2013, at 7:17 PM, Jim Giner jim.gi...@albanyhandball.com wrote:
On 4/19/2013 9:33 PM, Glob Design Info wrote:
They aren't on the same server. The DB is on xeround.com
On 4/11/2013 7:34 AM, Rafnews wrote:
Hi,
I would like to insert a piece of HTML code inside several pages.
all pages are differently named.
i need in each page to find a particular tag, let's say div
id=#submenu.../div (so based on its ID and tagname) and inside it
to insert my PHP/HTML code.
On 4/11/2013 10:48 AM, Rafnews wrote:
On 11.04.2013 13:34, Rafnews wrote:
Hi,
I would like to insert a piece of HTML code inside several pages.
all pages are differently named.
i need in each page to find a particular tag, let's say div
id=#submenu.../div (so based on its ID and tagname) and
On 4/4/2013 7:02 AM, Ashley Sheridan wrote:
I've noticed the first line looks a little odd. It might be valid, just
probably not the way I've ever done it. For my own sanity, could you try
changing it to:
if (isset($_POST['lastname']) isset($_POST['lastname']))
Thanks,
Ash
I took your script and added some stuff. Call it testisset.php,
upload it and try to run it.
Script below - Please copy and run it EXACTLY as written:
?php
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', '1');
$errmsg = POST is:br;
foreach($_POST as $k=$v)
$errmsg .= $k
On 4/1/2013 2:05 PM, Jim Giner wrote:
I'm looking for some ideas on how to handle the following get a datetime
value that is relative to a specific future date when presented with a
partial day time value.
Specifically, I have an appl that requires some lengthy input involving
days and times
I'm looking for some ideas on how to handle the following get a datetime
value that is relative to a specific future date when presented with a
partial day time value.
Specifically, I have an appl that requires some lengthy input involving
days and times. I have streamlined the d/e effort so
On 4/1/2013 2:32 PM, Mattias Thorslund wrote:
On 4/1/13 11:15 AM, Mattias Thorslund wrote:
On 4/1/13 11:05 AM, Jim Giner wrote:
I'm looking for some ideas on how to handle the following get a
datetime value that is relative to a specific future date when
presented with a partial day time value
On 3/31/2013 12:53 AM, John Taylor-Johnston wrote:
I'm using
if($mydata-DPRresponselocationaddress1 != )
is this the same as
if (!isset($mydata-DPRresponselocationaddress))
http://php.net/manual/en/function.isset.php
or
if (!empty($mydata-DPRresponselocationaddress))
On 3/27/2013 8:43 PM, Daniel Fenn wrote:
I think ;magic_quotes_gpc = Off should be magic_quotes_gpc = Off
Then restart apache/php or whatever it is your running
Regards,
Daniel Fenn
On Thu, Mar 28, 2013 at 11:39 AM, Madan Thapa madan.feedb...@gmail.com wrote:
Hi,
I installed php 5.3.23
On 3/27/2013 3:35 AM, John List wrote:
Preparations are in full swing for the very first Midwest Open Source
Software Conference (MOSSCon), to be held in Louisville on May 18-19.
Your help in spreading the word and helping us fill out our schedule of
presentations and workshops would be
On 3/25/2013 5:45 PM, Tommy Pham wrote:
What about
onclick='window.open(http://domain.com/path/to/generated/pdf;, _blank)'
?
Regards,
Tommy
Appreciate the attempt to help, but as I posted earlier I went around
and modified all my scripts to handle my 'target' problem by introducing
On 3/26/2013 10:35 AM, Matijn Woudt wrote:
On Tue, Mar 26, 2013 at 3:04 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
Appreciate the attempt to help, but as I posted earlier I went around
and modified all my scripts to handle my 'target' problem by introducing
multiple form tags into my
target as in the form attribute
In my appl devl I utilize an extra window when my current form is asked
to generate a pdf report. Works well since that way the user can
generate one report into a new window, read it, close it, and still have
the reports menu in front of him/her and generate
header('Content-Disposition: attachment; filename=downloaded.pdf');
On Mon, Mar 25, 2013 at 11:01 AM, Jim Giner jim.gi...@albanyhandball.comwrote:
target as in the form attribute
In my appl devl I utilize an extra window when my current form is asked to
generate a pdf report. Works well since
directly to
the user (as it would with a popup window), instead he will need to
open the downloaded file in his computer.
On Mon, Mar 25, 2013 at 12:23 PM, Jim Giner
jim.gi...@albanyhandball.com wrote:
On 3/25/2013 10:13 AM, Samuel Lopes Grigolato wrote:
Have you tried to set a Content-Disposition
In light of the apparent lack of any solution, I have embarked on
changing all my report choices to use multiple forms with different
target attribs as needed. For many of them not a big deal, but for
several it adds a degree of difficulty since I have to copy the values
of any input fields
On 3/22/2013 10:22 AM, inu...@gmail.com wrote:
I am very new to the PHP application and would like to create a new
project.
I would like to have a file to save my application level variable and
functions.
I would like to know does PHP have any default file name and file path for
this file like
On 3/17/2013 9:22 AM, georg wrote:
Anyone knows a good reading about how and when images displayd with HTML tags
are
re-sized ?
tnx
georg
not php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 3/14/2013 4:05 PM, Matijn Woudt wrote:
On Thu, Mar 14, 2013 at 11:44 PM, Jim Lucas li...@cmsws.com wrote:
On 03/14/2013 11:50 AM, Samuel Lopes Grigolato wrote:
Something like if (is_numeric($var) $var == floor($var)) will do the
trick. I don't know if there's a better (more elegant) way
On 3/15/2013 10:11 AM, georg wrote:
Actually I think you are right;
what I would have liked (as a natural extension of the depression:)
is actually a FRAME tag that stands without the FRAMESET
and which as target=framename instead of the frame defining
name=framename
and which just
if a variable, that is a string,
could be converted to an integer. Not if a variable is an integer.
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 3/13/2013 4:38 PM, Dale H. Cook wrote:
Let me preface my question by noting that I am virtually a PHP novice. Although
I am a long-time webmaster, and have used PHP for some years to give visitors
access to information in my SQL database, this is my first attempt to use it
for another
On 3/14/2013 12:40 PM, Dale H. Cook wrote:
I have made some progress. It occurred to me that the problem that I had in accessing files outside the web
root could be a pathing problem, and that was the case. I finally ran phpinfo() and examined
_SERVER[DOCUMENT_ROOT] to see what the correct
On 3/14/2013 12:43 PM, Dale H. Cook wrote:
At 11:20 AM 3/14/2013, Jim Giner wrote:
And use a captcha (which I personally can never read!) to keep the robots at
bay.
I dislike CAPTCHAs, and some bots are pretty good at beating them. I'm
exploring alternatives that exploit the differences
On 3/14/2013 3:44 PM, Dale H. Cook wrote:
At 01:26 PM 3/14/2013, Jim Giner wrote:
I don't think you ever want the filename buried in the web page.
Why not? The file itself is outside the root. In any case the finished product
will use tokens instead of filenames. While I am working out
always used this:
if ( $val == (int)$val ) {
http://www.php.net/manual/en/language.types.integer.php#language.types.integer.casting
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
On 3/13/2013 7:57 AM, Gary wrote:
ma...@behnke.biz wrote:
Do us all a favor abnd stay away from open source if you do not honor
the work
us wannabes put into it.
As I said before I wasn't aware you would feel that the cap fitted.
If you do feel that, then perhaps instead of complaining at me
On 3/12/2013 9:04 PM, Angela Barone wrote:
On Mar 12, 2013, at 5:16 PM, David Robley wrote:
Presumably there is a fixed list of State - those are US states? -
so why not provide a drop down list of the possible choices?
There is, but the problem must have been that if someone
On 3/12/2013 3:45 PM, Angela Barone wrote:
$zip_short = substr($zip, 0, 3);
foreach ($states[$state] as $zip_prefix) { // -- line 377
if ($zip_prefix == $zip_short) {
break;
} else {
$match = 'no';
}
}
I see the in the foreach. Since you are not modifying
$states = array(
'AL' = array( '350','351','352','353', ),
'AK' = array( '995','996','997','998','999', ),
'AZ' = array( '850','851','852','853','854', ),
...
'WI' = array( '530','531','532', ),
'WY' = array( '820','821','822','823','824', ),
);
?
Seeing
On 3/11/2013 10:14 AM, Ashley Sheridan wrote:
Gary listgj-phpgene...@yahoo.co.uk wrote:
Ashley Sheridan wrote:
In any case, you could probably take something you like from another
framework if you have the time/inclination/capability.
I honestly think I am simply going to write the shit
Gary,
Until I read this post of yours I never knew what CRUD stood for, let
alone knew that such an acronym was even needed in the world.
If you are complaining about not being able to find software written to
handle Creating, Reading, Updating and Deleting data in a table or
tables that
On 3/10/2013 5:12 PM, Ashley Sheridan wrote:
http://csscreator.com/divitis
Thanks,
Ash
http://www.ashleysheridan.co.uk
Is it Friday again already?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Did some testing with a form.
Tried it with IE9, Chrome 25.0.xxx and Safari 5.7.1
Mixed results - good and bad
IE - forget it. The new form attrib does not work.
Chrome - only works if the input element is in the form but has NO form
attrib OR if it is NOT in the form and has only ONE form
On 3/8/2013 2:45 PM, John Taylor-Johnston wrote:
I have a form
form action=CRTP_Query.php id=CRTP_Query method=post
target=_CRTPinput value=Query form=CRTP_Query type=submit/form
OnSubmit, I want to include data from another form (form=DPRform).
input name=DPRsurname type=text form=DPRform
On 3/8/2013 3:43 PM, John Taylor-Johnston wrote:
Scratch that, IE does not like form elements outside the /form!!?? :,(
I can't a form within a form either, unless ... I float a div??.
John Taylor-Johnston wrote:
I have a form
form action=CRTP_Query.php id=CRTP_Query method=post
On 3/8/2013 2:45 PM, John Taylor-Johnston wrote:
I have a form
form action=CRTP_Query.php id=CRTP_Query method=post
target=_CRTPinput value=Query form=CRTP_Query type=submit/form
OnSubmit, I want to include data from another form (form=DPRform).
input name=DPRsurname type=text form=DPRform
On 3/8/2013 11:07 PM, tamouse mailing lists wrote:
On Fri, Mar 8, 2013 at 9:17 PM, Jim Giner jim.gi...@albanyhandball.com wrote:
On 3/8/2013 2:45 PM, John Taylor-Johnston wrote:
I have a form
form action=CRTP_Query.php id=CRTP_Query method=post
target=_CRTPinput value=Query form=CRTP_Query
On 3/4/2013 11:04 PM, tamouse mailing lists wrote:
I would like to just take a step back and ponder what the user
experience of this will be. Click a submit button, one of *many* as
the OP says, and a new browser window opens? I don't think that is how
most people experience the web these days.
On 3/5/2013 7:32 PM, Tedd Sperling wrote:
On Mar 4, 2013, at 12:54 PM, John Taylor-Johnston
john.taylor-johns...@cegepsherbrooke.qc.ca wrote:
If you want to open a new page in response to a submit button press (using PHP)
you may be out of luck. I don't know of a way to do it without
On 3/4/2013 12:44 AM, John Taylor-Johnston wrote:
I have many different submit button.
input value=Update type=submit
input name=DPRmode value=Enter Data type=submit
When php processes value=Enter Data, I would like to open a new
window, but only if I click this one.
Possible? I knw ther is an
On 3/2/2013 7:03 AM, Maciek Sokolewicz wrote:
The problem is the simple fact that the variable $MessageSubject is not
defined until 4 lines farther into the script. Changing the variable to
$_POST['MessageSubject'] (and concatenating using the concatenation
operator (the period: '.' )) should
\
#language.types.string.syntax.heredoc
--
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 3/1/2013 12:43 PM, Daniel Brown wrote:
On Fri, Mar 1, 2013 at 10:57 AM, Nick Whiting prg...@gmail.com wrote:
Hello PHP'ers!
Just thought I would introduce myself to the mailing list since I've worked
with PHP for almost 10 years now and yet haven't really been community
active ...
I've
On 2/26/2013 4:27 PM, Curtis Maurand wrote:
I have the following:
$dsn = mysqli://$username:$password@$hostname2/$database;
$options = array(
'debug' = 3,
'result_buffering' = false,
);
$dbh = MDB2::factory($dsn, $options);
if (PEAR::isError($mdb2))
{
+= $_pdetail-_subTotal;
$_counter++;
}
}
I'm getting: Call to undefined method MDB2_Error::fetchrow()
anyone have any ideas? Can I not pass a database handle to a function?
Thanks,
Curtis
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http
) ) {
echo $item['price'];
} else {
echo 'Item does not have a price set';
}
}
Resources:
http://php.net/foreach
http://php.net/array_key_exists
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
On 2/22/2013 10:55 PM, tamouse mailing lists wrote:
This is the most suspicious looking thing.
Ya think?
I'm still trying to figure out what the OP wants us to do? Has he tried
anything?
From the sounds of it ( I didn't bother to un-zip his file) it appears
that he just wants to create
I *have* heard claims that something like this is preferrable, though:
if (FALSE === $variable)
I believe I read a comment somewhere once that writing your IF
statements that way helped to trigger an error message when the coder
forgot to use the double equal sign (==) in the statement. I
Basically it tells a savvy programmer whether or not his logic has
caused the var in question to exist. Many times it is important
simply to know that, not what the var contains, which can lead to an
error in processing.
The isset() will tell you that yes, I have this variable, letting you
On 2/20/2013 11:41 AM, Tedd Sperling wrote:
On Feb 18, 2013, at 7:54 PM, John Taylor-Johnston
john.taylor-johns...@cegepsherbrooke.qc.ca wrote:
I am capable with select name=DPRpriority. (I suppose I did it correctly?
:p )
But I haven't the first clue how to parse a select multiple and
On 2/20/2013 1:16 PM, John Taylor-Johnston wrote:
Hi,
I have a textarea when submitted creates a new form with the textarea
data in a hidden field:
input name=DPRnarration type=text hidden form=DPRform
value=Enter call
narration here.
But when this new form gets resubmitted, the \n get
On 2/20/2013 1:32 PM, Matijn Woudt wrote:
On Wed, Feb 20, 2013 at 7:16 PM, John Taylor-Johnston
john.taylor-johns...@cegepsherbrooke.qc.ca wrote:
Hi,
I have a textarea when submitted creates a new form with the textarea
data in a hidden field:
input name=DPRnarration type=text hidden
/forms.html#text-%28type=text%29-state-and-search-state-%28type=search%29
Does that explain why your example doesn't work?
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 2/19/2013 2:02 PM, John Taylor-Johnston wrote:
tamouse mailing lists wrote:
I hate arrays. :D
Here's a small snippet showing how it works, I hope:
foreach ($DPRpriority as $item = $value) {
echo li .$item.: .$value['name']. selected:
.$value['selected']. /li\n;
}
Question 1: when did
On 2/9/2013 11:58 AM, Mike Mackintosh wrote:
On Saturday, February 9, 2013 at 11:51 AM, Geoff Shang wrote:
On Sat, 9 Feb 2013, Jim Giner wrote:
Lately, my web pages are giving me some problems. Once a day or so one or
more of my pages/scripts will give me a 404 error page saying my web
On 2/10/2013 12:45 PM, Andy McKenzie wrote:
On Sat, Feb 9, 2013 at 11:51 AM, Geoff Shang ge...@quitelikely.com wrote:
On Sat, 9 Feb 2013, Jim Giner wrote:
Lately, my web pages are giving me some problems. Once a day or so one or
more of my pages/scripts will give me a 404 error page saying
Im pretty sure its not a script error cause it always works a second later
jg
On Feb 10, 2013, at 2:48 PM, Matijn Woudt tijn...@gmail.com wrote:
On Sun, Feb 10, 2013 at 6:53 PM, Jim Giner jim.gi...@albanyhandball.com
wrote:
On 2/10/2013 12:45 PM, Andy McKenzie wrote:
On Sat, Feb 9
This is a tough one.
Lately, my web pages are giving me some problems. Once a day or so one
or more of my pages/scripts will give me a 404 error page saying my web
page has timed out. Problem is that the page was just displayed. I
click on a link, the page shows up, I click on a button on
On 2/9/2013 11:21 AM, Andy McKenzie wrote:
Smart money is that it's nothing to do with you; in my experience,
that's usually a network problem. It could be on your end (I'm seeing
that a lot more often now that I've moved to a new house, or it could
be a problem with the server's connection.
On 1/31/2013 2:21 PM, Angela Barone wrote:
Hello,
I have a formula that says, if 'specialprice' is not empty and it is
lower than 'unitprice', use 'specialprice', otherwise use 'unitprice':
?php $result = mysql_query(SELECT LEAST(unitprice,ifnull(specialprice,'')) AS
used_price
On 01/30/2013 10:14 AM, patrick ficheux wrote:
Hi,
I want to get the list of running processes. also, I call exec() with
ps -A
What user is your httpd process running as?
run this from your cli:
ps aux | grep httpd
and show us the output
--
Jim Lucas
http://www.cmsws.com/
http
Regardless of the choice of interface to mysql, regardless of the
completely harmless but educational tips from Ash, and very deliberately
ignoring the un-helpful and extraneous comments of others,
I'm wondering how the OP is doing with getting his mysql access working.
Haven't heard from him
On 1/12/2013 1:28 PM, Rick Dwyer wrote:
On Jan 12, 2013, at 3:56 PM, admin ad...@buskirkgraphics.com wrote:
-Original Message-
From: Rick Dwyer [mailto:rpdw...@earthlink.net]
Sent: Saturday, January 12, 2013 8:26 AM
To: php-general@lists.php.net
Subject: [PHP] Can't connect to
Simple test I just did.
A simple script that first connects to mysql and then tries to select a db.
With a uid/pswd that I just made up for the script, I get the following:
Error - Could not connect to database from sql_db_connect
Access denied for user 'albany_ginerjm3'@'localhost' (using
On 1/2/2013 2:02 PM, Marc Guay wrote:
Something else that's happening with this, which makes it a Bad Idea
(tm) is that when the operator is or, as it is in my real life
scenerio, the 2nd variable occasionally doesn't get populated if the
first one returns true.
if ($a = foo || $b = bar){
/language.operators.bitwise.php
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 1/3/2013 5:22 PM, Marc Fromm wrote:
Thanks Jonathan. I removed the date() syntax function and it works.
From: Jonathan Sundquist [mailto:jsundqu...@gmail.com]
Sent: Thursday, January 03, 2013 2:16 PM
To: Marc Fromm
Cc: Serge Fonville; php-general@lists.php.net
Subject: Re: [PHP] date problem
On 01/03/2013 01:57 PM, Marc Fromm wrote:
$jes = 01/03/2012;
# php -r echo 01/03/2012;
0.00016567263088138
You might want to put quotes around that value so it is actually a
string and does not get evaluated.
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP
On 01/03/2013 11:43 AM, Andreas Perstinger wrote:
is the bitwise and operator.
So is a single pipe.
http://php.net/manual/en/language.operators.bitwise.php
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
would want to do this?
Won't this type of condition/test always return true?
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
would then have to ask, how often do you
think a string will be 0?
--
Jim Lucas
http://www.cmsws.com/
http://www.cmsws.com/examples/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 12/27/2012 10:42 AM, Tedd Sperling wrote:
On Dec 26, 2012, at 10:09 AM, Jim Giner jim.gi...@albanyhandball.com wrote:
While I fully understand the purpose of the do...while construct, I just never get used
to seeing it used. (in other langs I had to deal with a 'repeat...until construct
On 12/27/2012 10:47 AM, Curtis Maurand wrote:
A while loop is a blocking call. Be careful with them.
--Curtis
Huh?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 12/27/2012 1:29 PM, Matijn Woudt wrote:
On Thu, Dec 27, 2012 at 4:42 PM, Tedd Sperling t...@sperling.com wrote:
On Dec 26, 2012, at 10:09 AM, Jim Giner jim.gi...@albanyhandball.com
wrote:
While I fully understand the purpose of the do...while construct, I just
never get used to seeing
While I fully understand the purpose of the do...while construct, I just
never get used to seeing it used. (in other langs I had to deal with a
'repeat...until construct and dis-liked that also). I pretty much know
if I'm going to have to deal with a run at least once when I'm coding
and
On 12/25/2012 7:21 PM, Ken Arck wrote:
So I cannot do nested do loops in php?
?php
$a = 0 ;
$b = 0 ;
do {
echo $a\n ;
do {
echo $b\n ;
$b++
}while($b =10) ;
$a++;
}while($a = 20) ;
?
Why do you say that?
--
PHP General Mailing List (http://www.php.net/)
To
On 12/25/2012 4:21 PM, Ken Arck wrote:
So I cannot do nested do loops in php?
?php
$a = 0 ;
$b = 0 ;
do {
echo $a\n ;
do {
echo $b\n ;
$b++
}while($b =10) ;
$a++;
}while($a = 20) ;
?
You have a typo. Line 8
What are you expecting as output?
--
Jim Lucas
On 12/22/2012 11:29 AM, Tedd Sperling wrote:
On Dec 21, 2012, at 5:20 PM, Volmar Machado qi.vol...@gmail.com wrote:
What is the result in FF? And on IE? (the echoed string)
That's the problem, it's different.
If the last char in a string is set to null, then it causes JavaScript routines
On 12/21/2012 4:38 PM, Tedd Sperling wrote:
Hi gang;
I just ran into something I have never had a problem with before.
Here's the code:
--- start of code
$topic = '';
while($row = mysql_fetch_array($result)) // pulling stuff from a
database
{
On 12/21/2012 5:16 PM, Tedd Sperling wrote:
On Dec 21, 2012, at 4:58 PM, Jim Giner jim.gi...@albanyhandball.com wrote:
Never realized that you could address a string as an array of chars, which you
are doing. Could that be the issue? Or did I learn something new? Or should
you have used
On 12/21/2012 6:10 PM, Nathan Nobbe wrote:
On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
Neat idea Tedd, but judging by a quick test, I don't think changing the
value of the string is entirely supported though that notation.
php $str = 'blah';
php $str[3
On 12/21/2012 7:59 PM, Nathan Nobbe wrote:
On Fri, Dec 21, 2012 at 4:10 PM, Nathan Nobbe quickshif...@gmail.comwrote:
On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
On 12/21/2012 5:16 PM, Tedd Sperling wrote:
On Dec 21, 2012, at 4:58 PM, Jim Giner jim.gi
On 12/20/2012 10:27 AM, David Mehler wrote:
Hello,
I just read the Php5 changelog. Legacy features specifically magic
quotes were removed, does that mean that any system running php 5.4 or
newer does not need to use either addslashes() or stripslashes() when
dealing with form input?
Thanks.
On 12/20/2012 10:36 AM, Daniel Brown wrote:
On Thu, Dec 20, 2012 at 10:34 AM, Jim Giner
jim.gi...@albanyhandball.com wrote:
If you are using
mysql for a db, then you should already be using mysql_real_escape_string in
place of addslashes.
Actually, you should start moving toward MySQLi
On 12/15/2012 8:26 AM, tamouse mailing lists wrote:
On Dec 13, 2012 4:50 PM, Jim Giner jim.gi...@albanyhandball.com wrote:
Thanks for all the posts. After reading and googling all afternoon, I
think the best approach for me is:
Create two macros in Word (done!) to export each of my .doc
On 12/15/2012 8:29 AM, tamouse mailing lists wrote:
On Dec 13, 2012 4:50 PM, Jim Giner jim.gi...@albanyhandball.com wrote:
Thanks for all the posts. After reading and googling all afternoon, I
think the best approach for me is:
Create two macros in Word (done!) to export each of my .doc
I think im good with a text for the db and search capability and the pdf for
pure display
jg
On Dec 15, 2012, at 5:31 PM, tamouse mailing lists tamouse.li...@gmail.com
wrote:
On Sat, Dec 15, 2012 at 11:22 AM, Jim Giner
jim.gi...@albanyhandball.com wrote:
On 12/15/2012 8:29 AM, tamouse
On 12/12/2012 5:25 PM, Marco Behnke wrote:
Am 12.12.12 15:58, schrieb Jim Giner:
On 12/12/2012 8:08 AM, ma...@behnke.biz wrote:
Jim Giner jim.gi...@albanyhandball.com hat am 12. Dezember 2012 um
02:53
geschrieben:
On 12/11/2012 7:27 PM, Marco Behnke wrote:
Am 08.12.12 19:08, schrieb Jim
Thanks for the input gentlemen. Two opposing viewpoints!
I understand the concept of using files for the docs and a table to
locate them and id them. But I am of the opinion that modern dbs are
capable of handling very large objects (of which these docs are NOT!)
much easier than years ago,
101 - 200 of 2756 matches
Mail list logo