the second one).
Thanks,
Mike Smith
Thanks Steven/Tony for your replies. I'll consider this a bit more before I
jump in. I appreciate different perspectives. And I'll have to digest Tony's
solution.
Thanks,
Mike Smith
Steve,
Check out the while loop
(http://us.php.net/manual/en/control-structures.while.php). It'll do
what you need.
--
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to recursively send data to the same form. Based on the data, I
want to determine which action is to be processed. It appears that the
$_POST is not being cleared out or cached once it is sent to the server.
Here is my code that I'm trying to test with. It doesn't seem to
I'm trying to
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5/21/07, David BERCOT [EMAIL PROTECTED] wrote:
Hi Mike,
Le Mon, 21 May 2007 10:24:52 -0400,
Mike Smith [EMAIL PROTECTED] a écrit :
David,
Is MSDE running in mixed mode authentication? I believe by default it
only uses Windows authentication. If you're not sure you can readup on
how
input type=text name=name[]
*note the [].
--
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
: LarryCurlyMoe
On 1/17/07, Németh Zoltán [EMAIL PROTECTED] wrote:
And how does it work? does it create a sub-array of $_POST?
And is it documented somewhere in the manual?
Greets
Zoltán Németh
On sze, 2007-01-17 at 10:54 -0500, Mike Smith wrote:
input type=text name=name[]
*note the [].
--
Mike
I am currently working on a project using SQL Server 2000. I don't
think there would be a big advantage to switching to sql server 2005
for this project, but is anyone using 2005 (or one of the Express
versions) with PHP? Looks like it only uses the native client?
--
Thanks,
Mike Smith
--
PHP
I bought the Beta PDF of Pragmatic Ajax
(http://www.pragmaticprogrammer.com/titles/ajax/?ajaxian). It actually
has a chapter that walks you through creating a zooming movable map
(ala Google Maps). Nice intro to Ajax too (and Frameworks). If you
don't find a tutorial online somewhere I'd recommend
Change:
select name=theme
option name=blue value=blueblue/option
to:
select name=theme
optionblue/option//You don't need the value=blue in this case
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
...dang, hit the reply, not the reply to all...Sorry about that Jay.
http://sourceforge.net/projects/phpwiki/
I haven't tried it, but it looks like phpwiki supports adodb/pear, so
if you've got you mssql extension loading you should be able to use
it. How's that for a product endorsement!
Mike
($match);
echo Panel: .$match[0];
}
The $match array is empty.
Actually looking at the data there are so many typos (imported from
Excel) that I will probably have to update by hand, but out of
curiosity now what would be a good regex for the info given?
Thanks,
Mike Smith
--
PHP General
Eric, thanks for replying. I couldn't quite get that to work. Albert,
I'm currently working with what you suggested, though the unit names
are not that consistent:
$vals = preg_split(' ?X? ',$unit[1]);
echo strong.$unit[1]./strongbr /\n;
echo Panel: .$vals[0].br /Width: .$vals[1].br /Height:
On 1/10/06, Sue [EMAIL PROTECTED] wrote:
Hello,
We have a form that contains a Select option for a listing of available
dates for the user to choose from. Right now we have to manually change the
dates within the form's Selection list as new dates become available to
choose from. We
On 12/20/05, Nanu Kalmanovitz [EMAIL PROTECTED] wrote:
Thanks!
Since I am a newbie with the Apache \ PHP \ MySQL, can u tell me what file
and what shall I add\change in it?
TIA
Nanu
Google for install php netware
Try: http://developer.novell.com/ndk/whitepapers/namp.htm
--
PHP General
I have an application that allows the users to input a formula:
(Width*Height)/144
This formula gets updated with a part's specific width height and
actually returns:
(36.0*58.0)/144
I use preg_replace to replace Width and Height with values from the
following array:
[Width] =
Try;
$foo = preg_replace($find,$replace,$partFormula);
return $foo
Unfortunately no. I also tried making the formula look like this:
?php (36.0*58.0)/144 ?
and returning it with:
eval('?' . $a . '?php ');
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Let's do an experiment. Place these two lines of code in a page, then load
it in a browser;
?php
$foo = (36.0*58.0)/144;
echo $foo;
?
works fine for me. If you change
?php (36.0*58.0)/144 ?
to
?php echo (36.0*58.0)/144; ?
Yep, that does work. Thanks Jay.
I'm not aware of any. I am kind of developing my own for my current
Materials System. We purchase aluminum and glass from multiple
suppliers. The costing of those materials can vary supplier to
supplier. I'm working on an interface that will basically let the
Material dept work with a Part Profile
I'm wondering if someone has a better solution then I've come up with.
I've got a few reports that pull from various tables. Some times I'm
not able to put all the tables into a single query/view. So I end up
with a master query and 1 (or more) supporting queries. I'm using
MSSQL
I'm trying to consolidate code in a new project. My dirs are:
/
/inc
core.class.php
/mods
/mods/system
system.class.php //extends core.class.php
user.class.php //extends system.class.php
In core.class.php I have my generic special html methods and my db
connection. I'm having trouble
How about: http://www.capescience.com/webservices/globalweather/index.shtml
--
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi JAson,
I'm leaving tomorrow for CA to do some of the testing and workflow.
I'll let you know how it turns out.
--
Mike
On 5/6/05, Jason Barnett [EMAIL PROTECTED] wrote:
Mike Smith wrote:
On 4/18/05, Eric Wood [EMAIL PROTECTED] wrote:
- Original Message -
From: Mike Smith
I'm
Check your php.ini. It seems you are running this on Windows w/Apache.
Make sure php_mssql.dll (or php_mssql.so if you are on Linux) is NOT
commented out. Also, I think you'll need a SQL account. Is the SQL
Server in mixed mode or Windows authentication? Look in Enterprise
MAnager or the registry
On 4/28/05, Richard Lynch [EMAIL PROTECTED] wrote:
I'm betting dollars to doughnuts that you've got a newline at the end of
$sql1 which is messing you up.
You're right! Give that man a doughnut! When I tested the query in
Query Analyzer. I hit [Enter] to format the query and make it
readable,
Thanks Richard,
That did the trick. That and one query was in another database, that
my users didn't have rights to...Doh! Works well.
Thanks,
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
);//This doesn't work
$r = $this-db-Execute($sql2);//This does work
}
}
$sql1 $sql2 are one and the same. Any ideas what I'm missing?
Thanks,
Mike Smith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 4/15/05, Mike Smith [EMAIL PROTECTED] wrote:
I just ordered a CueCat from eBay to play with reading Barcodes. Of
course we'll use a Symbol or some other reader when we implement this
in production, but I thought this would be a start. There are several
classes at phpclasses.org
(http
On 4/18/05, Eric Wood [EMAIL PROTECTED] wrote:
- Original Message -
From: Mike Smith
I'm using a script to generate the barcodes (3 of 9 or Code39):
http://www.sid6581.net/cs/php-scripts/barcode/
This script seems to limit the input barcode to 15 characters... um...
-eric woo
need to have all our
barcodes in a single format (codabar, code39, etc). Would I then need
to store barcode data. The barcodes will be generated from unique part
numbers so I'm thinking I can generate them (and compare them to
input) on the fly.
--
Thanks for any help,
Mike Smith
--
PHP General
Thanks Jason,
I'll pass along any info I come across. I can generate barcodes easily
enough. I guess I'll wait until I get the CueCat and see what troubles
I run into. Our suppliers seem willing to cooperate in terms of
putting whatever barcode we tell them to.
Thanks,
Mike
--
PHP General
or MySQL
(ADODB or PEAR).
TIA,
Mike Smith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
For Apache2.x: http://www.php.net/manual/en/install.windows.apache2.php
For Apache1.x: http://www.php.net/manual/en/install.windows.apache1.php
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
TIA,
Mike Smith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Change:
while ($c=0;$ccount($_POST['tourid']):$c++)
to (change the : before $c++ to ;):
for ($c=0;$ccount($tourid);$c++)
I think i mentioned the while loop in my first reply. I should have said for.
(See: http://us2.php.net/for, http://us3.php.net/while,
http://us4.php.net/foreach)
I'm not
Code:
print 'table width=545 border=0 cellspacing=0 cellpadding=0
align=centertr';
print 'form action=test1.php method=POST';
$i = 1;
while ($i = $tour_days) {
print 'input type=hidden name=tourdays value='.$tour_days.'';
print 'input type=hidden name=tourid'.$i.'
Thanks Matthew,
I appreciate your feedback. I'll be working on it this morning, and I
might take a look at Smarty too.
Thanks,
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Any suggestions or I do I have the general idea?
TIA
Mike Smith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 17 Jan 2005 09:23:19 -0600, Shawn McKenzie [EMAIL PROTECTED] wrote:
I have not been successful with running PHP under DOS (no windows). Is
this possible?
TIA,
Shawn
Have you downloaded the PHP zip file and added c:\php (or wherever you
extract it) to your path?
Mike
--
PHP
You'll need to modify your httpd.conf. Depending on you OS/Apache
version it will be different.
For Windows/Apache1.3.x:
http://us2.php.net/manual/en/install.windows.apache1.php
For Windows/Apache2.x:
http://us2.php.net/manual/en/install.windows.apache2.php
For Linux/Apache1.3.x:
echo $name[0];
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Would something like this work
If($_POST['submit']){//add error checking for whatever critical fields
echo Thank you for filling out my form.\n;
} else {
//display form with a input type=submit name=submit value=Save
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I think you need the httpd-devel package.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How about:
if ( is_array($_SESSION['schools'] ) ) {
foreach($_SESSION['schools'] as $h) {
If($h!=){ //First added line
$query = INSERT INTO Prof_Schools (ProfID, School)
VALUES ('$LID', '$h');
$res6 = run_query($query);
echo $query;
} //End added line
}
}
--
PHP General Mailing List
Yes, I did that and it works correctly now. I was
tryin g to better understand why the difference in the
behaviour.
Stuart
The first array is created by selecting individual elements from a
muli-select list
(My multi-select is a little hazy, but I think it's something like...)
select
I am trying to cache a database recordset so users can sort, etc
without hitting the database everytime. I'm using ADODB to access a
MSSQL database.
$s = SELECT id, part, description FROM parts\n;
$r = $db-Execute($s);
$parts = array(id=array(),part=array(),desc=array())
while(!$r-EOF){
On Thu, 21 Oct 2004 11:39:23 +0200, Reinhart Viane [EMAIL PROTECTED] wrote:
Hey all, i'm new to this list so forgive me if i make any huge
mistakes.
I'm in a beginning stage of learning php and i hope you guys can help me
out with this question:
in a file named checkuser i do this when a
-Original Message-
From: Mike Smith [mailto:[EMAIL PROTECTED]
Sent: donderdag 21 oktober 2004 13:28
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions question
On Thu, 21 Oct 2004 11:39:23 +0200, Reinhart Viane [EMAIL PROTECTED] wrote:
Hey all, i'm new
My guess is your client has the latest version of PHP (4.2.0) whiile
the old server had an older version (pre 4.2.0).
register_globals = off in the php.ini
http://us2.php.net/manual/en/ini.sect.data-handling.php#ini.register-globals
Change
? if (!isset($area)) { ?
to
? if (!isset($_GET['area']))
).
Thanks,
Mike Smith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
mssql_connect($server,$user,$password);
Check php.ini, uncomment out
extension=php_mssql.dll
If your running php on a server that does not have SQL Server on it, I
think at least you need to install the SQL client tools.
Good luck!
Mike Smith
--
PHP General Mailing List (http://www.php.net
of the class and setting it in the constructor
function.
Mike Smith [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I've been doing procedural coding for a few month's, but perceive the
need for OOP for some of the projects I've done. I'm starting out and
and would like some feedback, before I
I've been doing procedural coding for a few month's, but perceive the
need for OOP for some of the projects I've done. I'm starting out and
and would like some feedback, before I tread down the wrong path. The
books I'm looking at Professional PHP (Wrox), and Visual QuickStart PHP
have
I have used MAS90. If you're using MAS90 you'll need to create an ODBC
connection (http://us3.php.net/manual/en/ref.odbc.php). If it's MAS200 (SQL)
use mssql functions (http://us3.php.net/manual/en/ref.mssql.php). By
installing the MAS90 client software you install the necessary ODBC drivers
: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 8:19 AM
To: Mike Smith
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Subtotal
SELECT *, SUM(units) subtotal FROM table GROUP BY date
- do you mean this?
Mike Smith wrote:
I'm trying to present a simple SELECT statement GROUPED
Voigt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 8:37 AM
To: Mike Smith
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Subtotal
Umm, add:
SUM([rushqty]) AS 'rushsub'
To your select, wouldn't that work?
On Wed, 2003-03-19 at 11:19, Mike Smith wrote:
Here is my query (MSSQL 2000
]\n;
$body .= /td\n;
$body .= /tr\n;
}
...
//close table, html
?
Any help is appreciated.
Thanks,
Mike Smith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to present a phone directory in a printable format that will
make most people happy. What I need to do is take the results from our
database and break it into two tables. ie.
table
Extension FName LName Dept.
...25x
/table
table
Extension FName LName Dept.
...Records 26+
/table
This
Smith; [EMAIL PROTECTED]
Subject: Re: [PHP] Wrapping SQL results in 2 tables
--- Mike Smith [EMAIL PROTECTED] wrote:
I'm trying to present a phone directory in a
printable format that will make most people
happy. What I need to do is take the results
from our database and break it into two
since I've started scripting in PHP, but would
appreciate any pointers.
Thanks for pointing me in the right direction!
Mike Smith
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 13, 2002 4:22 AM
To: 'Mike Smith'; PHP General
Subject: RE: [PHP
=$id) this record cust will now be company T/T
All the other fields fill in correctly. Is it seeing the # as a comment?
-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 3:57 PM
To: Mike Smith; PHP General
Subject: Re: [PHP] Escaping
I have a string I'm returning from a database. Some entries have # signs
in the names ie (COMPANY #42, COMPANY #43...). When I display results
all I have is COMPANY. Everything after the # is dropped off. I tried:
If ($cust) {
$cust2=ereg_replace('#','no',$cust);
//tried
Stephen wrote:
I found how it works, and it doesn't put it into a mixed number. I work on
it this week and see if I can't fix it. Thanks for all the help people!
- Original Message -
From: Andrew Brampton [EMAIL PROTECTED]
To: Stephen [EMAIL PROTECTED]
Sent: Monday, December 09, 2002
Set the FORM ACTION=script.php and METHOD=POST ie...
FORM NAME=Employees ACTION=script.php METHOD=POST
SELECT NAME=name
OPTION SELECTED VALUE=/OPTION
OPTION VALUE=John/OPTIONJohn
OPTION VALUE=Mary/OPTIONMary
/SELECT
/FORM
script.php:
?php
echo $name;
?
Beauford.2002 wrote:
Hi,
I'm sending
;[LN];Q+[0-9]{6} and echos
Q+[0-9]{6} as the clickable link.
Thanks,
Mike Smith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nevermind.
This works:
ereg(Q+[0-9]{6},$Data[$n],$qarticle);
$GetLine = explode(\r, ereg_replace(Q+[0-9]{6},a
href=\http://support.microsoft.com/default.aspx?scid=kb;[LN];$qarticle[0]\;
target=\blank\$qarticle[0]/a,$Data[$n]));
Mike Smith [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED
column with a button next to each line item to save the
changes, but would (for simplicity) rather have the one Receive button.
Regards,
Mike Smith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
68 matches
Mail list logo