from
there, it will tell you where your syntax is wrong.
HTH,
Steve Bradwell
MIS Department.
"If you give someone a program, you will frustrate them for a day. If
you
teach them how to program, you will frustrate them for a lifetime."
-Original Message-
From: Markus Jäntti [mail
We're taking over.
Steve Bradwell
MIS Department.
"If you give someone a program, you will frustrate them for a day. If
you
teach them how to program, you will frustrate them for a lifetime."
-Original Message-
From: Nick Wilson [mailto:nick@;tioka.com]
Sent: Wednes
LOL, thanks for the laugh on a friday afternoon =].
-Original Message-
From: Julio Nobrega [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 3:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Multiple Inheritance Emulation
Julio Nobrega em Friday 27 September 2002 15:40 foi agra
Welcome Steve,
You'll need to do two things to get started, download apache and php for
windows, and configure 2 files - httpd.conf (apache), and php.ini. A good
tutorial can be found here :
http://softwaredev.earthweb.com/script/article/0,,12014_912381,00.html
After that create a .php file in
One thing that has helped me was to write a db class and use it to connect
to mysql, then all you have to do is change the class, and not all your code
when you change the db.
-Steve
-Original Message-
From: Brendon G [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 4:03 AM
To
Well, one major advantage I have found using MySQL verses txt files is the
simple implementation of transactions, if you are doing multiple
transactions that are related, it is nice to simply "rollback" all other
statements if one fails or "commit" if they work. Of course you can do this
other way
Lol. Here, Here!
-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 11:06 AM
To: Gian Michele
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] editor php
/bin/vi
:)
Adam
On Thu, 19 Sep 2002, Gian Michele wrote:
> Hi,
Yes you can,
check http://www.php.net/manual/en/ref.com.php for examples.
HTH,
Steve.
-Original Message-
From: Matthew Tapia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 9:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Microsoft Office
Can you use PHP to add appts
Hey there,
This is a page I wrote that does that with sessions, sorry its a little
messy but it should help you with the general idea.
HTH,
Steve.
//Copy the below into a php file and change all the variables and sql
statement to reflect your own data.
Error';
echo '1:Connection to PH
is_int($f) will return true if $f is an integer, false otherwise.
Check http://www.php.net/manual/en/function.is-int.php
HTH,
Steve.
-Original Message-
From: Fifield, Mike [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 4:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] check f
Maybe try somthing like this, write a function containing all your like
statements.
function likeStatements( ){
//write your statements in this function if they are always the same.
}
//then have an if structure like the following that calls that function in a
while loop.
if ( isset($a) && !i
Do you have phpMyAdmin running yet? If so you create new databases with the
click of a button. The first page you see should say Welcome to phpMyAdmin
...ver etc. If you have set phpMyAdmin to run on an existing MySQL install,
the drop down boxes "should" contain your existing databases if configu
Ya that's pretty much it. Just do:
mysql_query("BEGIN");
$sql = "Update bla...";
$result = mysql_query($sql);
if($result)
mysql_query("COMMIT");
else
mysql_query("ROLLBACK");
HTH
Steve.
-Original Message-
From: Randy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 10
I would suggest you write a method (called mydb() for example) that connects
to your database, and if needed, call it from your constructor like:
$this->mydb(); This way you can always reuse the method from other code.
hth,
Steve.
-Original Message-
From: Mark Armendariz [mailto:[EMAIL P
l Message-
From: Chris Crane [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 11:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Classes vs. Functions
Wow...this is pretty cool.
Do you HAVE to declareall your varibles ahead of time?
"Steve Bradwell" <[EMAIL PROTEC
Classes are great for code reusability, I heavily use a MySQL object or
class to make all my conections to a mysql database now and I have included
methods for Transactions.
Its a long one but its the class I use the most and is a great example of
what they are good for.
dbhost;
}
func
Well, I'm not sure if this is what your looking for but the simplest way
might be to use JavaScript. Have the second form that you want to post
without a submit button being clicked have an onSubmit event. So on submit
of the first form, javascript will submit the second without the user
clicking
agreed.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] RE:
lets all spam Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Steve
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:26 PM
To: Steve Bradwell; [EMAIL PROTECTED]
Subject: Re: [PHP] confused newbie on PHP and Javascript.
> I am having a problem, mostly concept wise of how, or if I can use client
> side
Hello All,
I am having a problem, mostly concept wise of how, or if I can use client
side Javascript in a server side php statement.
I have a JavaScript function that onChange of a list box, takes the value of
an option and grabs data from a MySQL table. My problem is how do I use the
JavaScript
(25) - Here's a virtual quarter, call someone who cares.
Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 5:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Done w/ PHP - VB or C# ?
I know I'll get mauled big-time on this mailing list
HI Girish,
I'm pretty new to php, using for about 8 months now, I haven't heard of
these, can you go into some detail for me?
Thanks,
Steve
-Original Message-
From: Girish Nath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 9:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Cool PHP T
Wow! I am impressed, thats too cool. And man is that ever going to be
helpful.
Thanks,
Steve
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 10:25 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Formatting Information in header? Gridlines in Excel
This is intriguing me, are you opening up excel in a browser window or just
printing out html tables?? I am confused.
Thanks,
Steve.
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Formatting In
I am using Apache php and MySQL at work and at home, at work I have a win98
box and I use Maguma Studio Light for php as an editor, at home I use VIM
for my editor, Maguma is really working for me. What I did was download php,
MySql, and Apache then find a good tutorial, of which there are many, o
I was just doing some reading on indexes when I saw this post and I have a
question about "Over Indexing".
I have a MySQL table that stores inventory transactions, in, out etc. I
mainly store
fields that are primary indexes in other tables, Paul DuBois' MySQL book
says that anything used
in a wher
Not really sure but str has to be $str, and I usually do print lines like
this
$str = "I can NOT use ".$hash['vars']." in strings";
the . will concat the strings together.
Hope this helps,
-Steve
-Original Message-
From: Ferry van Steen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May
Hi,
Sorry to bud in on this, but I was thinking about writing my next php app
oop style to learn. Are you saying that It is going to be slower or
poorer performance?
Thanks alot
-Steve the newbie.
-Original Message-
From: Julio Nobrega Trabalhando [mailto:[EMAIL PROTECTED]]
Sent: Wedn
How are you printing the vars??
like this?
echo $des;
-Steve
-Original Message-
From: Luiz Rafael Culik Guimaraes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Help need (Urgent)
Dear Friends
I have an form that get the user i
I agree John, what kind of intelligent person would advertise a M$ job on
a PHP list, be gone company man.
-Steve.
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 11:45 AM
To: [EMAIL PROTECTED]
Cc: 'PHP General'; [EMAIL PROTECTED]
Subject: R
situation.
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
"Don't work for recognition, but always do work worthy of recognition."
"Steve Bradwell" <[EMAIL PROTECTED]> wrote:
> Try this,
>
> $query = &q
Try this,
$query = "DELETE FROM [users] WHERE [user] = '$user'";
$result = mssql_query($query) or die("Unable to delete user");
if ($result)
//delete worked.
else
//delete failed.
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 3
Ha, Sorry wrong instance here, ya global or pass the vars to the function.
-Original Message-
From: Steve Bradwell [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 3:13 PM
To: 'Liam Gibbs'; [EMAIL PROTECTED]
Subject: RE: [PHP] Variables not set
I'm pretty new to
I'm pretty new to php but I think your this() function you need to say:
$h = $$this;
$i = $$that;
which means the value of the var.
Sorry if I'm wrong.
-Steve
-Original Message-
From: Liam Gibbs [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 3:13 PM
To: [EMAIL PROTECTED]
Subje
Professional PHP Programming from WROX publishing is a good book too.
I use php and MySQL.
-Steve.
-Original Message-
From: Chris Montgomery [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Newbie Book & Database Question
Howdy,
I
http://www.php.net/manual/en/function.ereg-replace.php
-Steve.
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 12:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] replacing first occurence
What function can I use to replace just the first oc
I like VIM. at www.vim.org its got great color for a multitude of languages
and its a powerful editor too.
-Steve.
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 5:40 PM
To: PHP
Subject: RE: [PHP] PHP editor for windows
www.editplus.c
Hey Alex,
I use a short function like this because the date is really just a string
you can pick it apart and re-arrange it.
function Format_Date($Date){
return $Date =
((substr($Date,6,2))."-".(substr($Date,0,2))."-".(substr($Date,3,2)));
}
Steve.
-Original Message-
From: Alex [mailto
Hi everyone,
My appologies if this is a repost, it's a monday morning. I wan't to know if
there is a function in php that I can use to launch an mdb or exe from the
users hard drive, I would like to avoid a temp copy being created in
windows/iexplorer temp dir because I am getting 2 copies openin
Hi everybody,
Is there a php function I should use to launch an executable program from a
users hard drive instead of just creating a link to it??
Thanks alot,
Steve.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there,
I am populating form elements (type="text") with values from a db, but if
the string has a space in it, it cuts the string off at the space. eg. $var
= "the cat in the hat" but all you see in the text box is "the". is there a
function I should be adding to my echo line?
Also I have an
41 matches
Mail list logo