[PHP] 2 newbie questions ;)

2002-04-12 Thread Steve Bradwell
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

[PHP] confused newbie on PHP and Javascript.

2002-06-13 Thread Steve Bradwell
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

RE: [PHP] confused newbie on PHP and Javascript.

2002-06-13 Thread Steve Bradwell
-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 Javascript

RE: [PHP] RE: ############

2002-07-09 Thread Steve Bradwell
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

RE: [PHP] Submit code

2002-07-16 Thread Steve Bradwell
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

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Steve Bradwell
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. ? class mysqldb {

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Steve Bradwell
: 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 PROTECTED] wrote in message

[PHP] launching an exe

2002-04-15 Thread Steve Bradwell
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

[PHP] newbie running an exe

2002-04-15 Thread Steve Bradwell
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

RE: [PHP] format date

2002-04-16 Thread Steve Bradwell
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

RE: [PHP] PHP editor for windows

2002-04-22 Thread Steve Bradwell
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

RE: [PHP] replacing first occurence

2002-04-24 Thread Steve Bradwell
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

RE: [PHP] Newbie Book Database Question

2002-04-25 Thread Steve Bradwell
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

RE: [PHP] Variables not set

2002-04-26 Thread Steve Bradwell
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]

RE: [PHP] Variables not set

2002-04-26 Thread Steve Bradwell
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 php but I think

RE: [PHP] Checking to see if a DELETE was successful from MSSQL

2002-04-30 Thread Steve Bradwell
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 30,

RE: [PHP] Checking to see if a DELETE was successful from MSSQL

2002-04-30 Thread Steve Bradwell
that 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 = DELETE FROM [users] WHERE [user] = '$user

RE: [PHP] convert access to JAVA PHP mysql Xml Soap

2002-05-01 Thread Steve Bradwell
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:

RE: [PHP] Help need (Urgent)

2002-05-01 Thread Steve Bradwell
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

RE: [PHP] Re: why is better?

2002-05-02 Thread Steve Bradwell
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:

RE: [PHP] Hashes in strings

2002-05-02 Thread Steve Bradwell
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 02,

RE: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread Steve Bradwell
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 where

RE: [PHP] PHP editing environment

2002-05-03 Thread Steve Bradwell
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,

RE: [PHP] Formatting Information in header? Gridlines in Excel

2002-05-06 Thread Steve Bradwell
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

RE: [PHP] Formatting Information in header? Gridlines in Excel

2002-05-06 Thread Steve Bradwell
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

RE: [PHP] Cool PHP Tricks/Features ?

2002-05-14 Thread Steve Bradwell
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

RE: [PHP] Done w/ PHP - VB or C# ?

2002-05-16 Thread Steve Bradwell
(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

RE: [PHP] PHP - class question

2002-08-14 Thread Steve Bradwell
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

RE: [PHP] php Transaction question

2002-08-20 Thread Steve Bradwell
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:14 AM

RE: [PHP] phpMyAdmin is this possible

2002-08-20 Thread Steve Bradwell
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

RE: [PHP] question

2002-09-04 Thread Steve Bradwell
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)

RE: [PHP] check for a number

2002-09-04 Thread Steve Bradwell
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

RE: [PHP] RE: A straightforward user login coding

2002-09-09 Thread Steve Bradwell
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. ? session_start(); if(isset($level))

RE: [PHP] PHP and Microsoft Office

2002-09-18 Thread Steve Bradwell
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

RE: [PHP] editor php

2002-09-19 Thread Steve Bradwell
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,

RE: [PHP] MySQL vs. basic text file

2002-09-23 Thread Steve Bradwell
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 ways

RE: [PHP] ADOdb

2002-09-24 Thread Steve Bradwell
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

RE: [PHP] Getting started with PHP

2002-09-26 Thread Steve Bradwell
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

RE: [PHP] Re: Multiple Inheritance Emulation

2002-09-27 Thread Steve Bradwell
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

RE: [PHP] Yahoo moves to PHP

2002-10-30 Thread Steve Bradwell
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: Wednesday, October 30, 2002 8

RE: [PHP] New to PHP, and stuck

2002-11-06 Thread Steve Bradwell
it 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 [mailto:janmark