Re: [PHP] Flash + PHP

2001-01-20 Thread Mike Tuller
www.thickbook.com is a good start. Last I looked it covered Flash 4, and Flash 5 is quite a bit different. Basically you have PHP print the variables in HTML and Have Flash parse that. Flash can't directly parse PHP variables. It's not difficult once you figure it out. Mike From: "Abe Asghar"

[PHP] ldap_search()

2001-03-07 Thread Mike Tuller
Sorry about this, but I don't know much about LDAP, and the book I have doesn't tell me much. I was shown the following script to grab information from an LDAP server and display the results in a phonebook type format. HTML BODY ?php $ldapserver = "ldap.something.com"; $basedn = "dc=something,

Re: [PHP] ldap_search()

2001-03-09 Thread Mike Tuller
Ok. That makes sense. I have the structure printed out, so I shouldn't have a problem. From: "Nick Talbott" [EMAIL PROTECTED] Date: Thu, 8 Mar 2001 08:21:15 -0000 To: "Mike Tuller" [EMAIL PROTECTED], "php mailing list" [EMAIL PROTECTED] Subject: Re

Re: [PHP] Webmin

2001-03-16 Thread Mike Tuller
Webmin uses templates, so you could create anything you want. If you go into Webmin configuration under the Webmin tab, you will see templates. When you go in there you will see a menu for current theme. It should have Calderas theme. That at least means they are open to template creation. I

[PHP] Populate Popup Menu from Database

2002-06-29 Thread Mike Tuller
I have some popup menus and want the items in the menu to be populated from a database. In this case I have a table that contains a listing of departments. I have a page that I can go in and add/delete departments, and want the changes to reflect in the menu the next time you go to the page. I

Re: [PHP] Populate Popup Menu from Database

2002-06-29 Thread Mike Tuller
Thanks. I thought the example I found was a little to complicated for something like this. From: Cal Evans [EMAIL PROTECTED] Date: Sat, 29 Jun 2002 11:03:16 -0500 To: Mike Tuller [EMAIL PROTECTED], php mailing list [EMAIL PROTECTED] Subject: RE: [PHP] Populate Popup Menu from Database

Re: [PHP] Populate Popup Menu from Database

2002-06-29 Thread Mike Tuller
: Gremlins Associates Reply-To: [EMAIL PROTECTED] Date: Sat, 29 Jun 2002 23:54:22 +0800 To: [EMAIL PROTECTED] Subject: Re: [PHP] Populate Popup Menu from Database On Saturday 29 June 2002 23:41, Mike Tuller wrote: I have some popup menus and want the items in the menu to be populated from

Re: [PHP] Populate Popup Menu from Database

2002-06-29 Thread Mike Tuller
To let everyone know, I did apologize to Mr. Wong. I misunderstood what he was trying to ask me. I took it as he was saying It's easy, what is your problem rather than What is your problem . From: Chris Shiflett [EMAIL PROTECTED] Date: Sat, 29 Jun 2002 13:50:14 -0500 To: Mike Tuller [EMAIL

Re: [PHP] Populate Popup Menu from Database

2002-07-01 Thread Mike Tuller
'$department/option; } ? /select From: Erik Price [EMAIL PROTECTED] Date: Mon, 1 Jul 2002 09:18:12 -0400 To: Mike Tuller [EMAIL PROTECTED] Cc: php mailing list [EMAIL PROTECTED] Subject: Re: [PHP] Populate Popup Menu from Database On Saturday, June 29, 2002, at 11

Re: [PHP] Populate Popup Menu from Database

2002-07-01 Thread Mike Tuller
Thanks for the tip. From: Erik Price [EMAIL PROTECTED] Date: Mon, 1 Jul 2002 17:05:39 -0400 To: Mike Tuller [EMAIL PROTECTED] Cc: php mailing list [EMAIL PROTECTED] Subject: Re: [PHP] Populate Popup Menu from Database On Monday, July 1, 2002, at 04:22 PM, Mike Tuller wrote: Thanks

[PHP] Advice needed

2002-07-12 Thread Mike Tuller
I am trying to develop a front end to a database that will be used for entering information about the computer systems I take care of. It would be easy to do if it weren't for one problem. I want to list information about the drives that are in each system. There could be one, two, or 10

Re: [PHP] Advice needed

2002-07-12 Thread Mike Tuller
So I would have the progressive key inside the addvolume window? Can you explain how to go about doing this? - Original Message - From: Alberto Serra [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 12, 2002 8:56 PM Subject: Re: [PHP] Advice needed ðÒÉ×ÅÔ! Mike Tuller

Re: [PHP] Advice needed

2002-07-13 Thread Mike Tuller
see a problem with this idea, let me know. I think this would work, but I haven't started coding yet. Mike - Original Message - From: Alberto Serra [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 12, 2002 10:35 PM Subject: Re: [PHP] Advice needed ðÒÉ×ÅÔ! Mike Tuller wrote

[PHP] PDF Functions

2001-02-14 Thread Mike Tuller
I finally got everything to install on RedHat 7, but I can't do anything with pdflib like I had expected. I get back Fatal error: Call to undefined function: pdf_new() in /var/www/html/pdfclock.php on line 7. Line 7 is $pdf = PDF_new(); This is rather frustrating that every time I try to

Re: [PHP] PDF Functions

2001-02-14 Thread Mike Tuller
--with-mysql --with-xml --with-pdflib=/usr/local/lib --with-tiff From: Chris Carbaugh [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 14 Feb 2001 15:08:02 EST To: Mike Tuller [EMAIL PROTECTED], php mailing list [EMAIL PROTECTED] Subject: Re: [PHP] PDF Functions How about in /etc

Re: [PHP] PDF Functions

2001-02-14 Thread Mike Tuller
] Cc: Mike Tuller [EMAIL PROTECTED], php mailing list [EMAIL PROTECTED] Subject: Re: [PHP] PDF Functions Chris Carbaugh wrote: I have had problems in the past with RedHat's RPMs. They seem to put things in weird places. And just removing them and starting fresh with source

Re: [PHP] PDF Functions

2001-02-14 Thread Mike Tuller
PROTECTED] Date: Wed, 14 Feb 2001 19:39:04 EST To: Mike Tuller [EMAIL PROTECTED], Michael Stearne [EMAIL PROTECTED] Cc: php mailing list [EMAIL PROTECTED] Subject: Re: Re: [PHP] PDF Functions Well, first let me say that I'm kind of surprised I'm the only one trying to help you guys out

Re: [PHP] PDF Functions

2001-02-15 Thread Mike Tuller
yet though). Michael Chris Carbaugh wrote: OS X? What's that? :) Damn Mac PPC somethin or other I just don't get it.. In the mean time, I'd say 6.2 is a good bet. Good Luck, Chris On Wed, 14 Feb 2001, Mike Tuller wrote: Date: Wed, 14 Feb 2001 19:03:05

[PHP] PDF Functions

2001-02-18 Thread Mike Tuller
Ok. I have done everything I have been told to do, found on the web, and I can think of other than bringing in a voodoo priest to get this going. I'll try to explain what I have done so far. I have a system with RedHat 7.0 installed, and am trying to get PDFlib to work with PHP 4.04. The

[PHP] LDAP Listing

2001-02-27 Thread Mike Tuller
can look at? Mike Tuller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Timezone and DST

2006-01-05 Thread Mike Tuller
Are you just displaying the time, or is this for submission in a database? On Jan 5, 2006, at 12:50 PM, Mark Steudel wrote: Hi All, I've got a little problem where our servers are in PST but the customer operates in Hawaii (-10 GMT). I believe I can just get the time for them by doing

Re: [PHP] Timezone and DST

2006-01-05 Thread Mike Tuller
- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 11:02 AM To: Mark Steudel Cc: php-general@lists.php.net Subject: Re: [PHP] Timezone and DST Are you just displaying the time, or is this for submission in a database? On Jan 5, 2006, at 12:50 PM, Mark

[PHP] set variable to go outside scope

2006-01-05 Thread Mike Tuller
I have a table listing items in a database, and have a delete button next to each item, and I want to be able to click on the delete and delete only that record in the database and then reload the page where it would display the updated information. Here is part of the code I have.

Re: [PHP] set variable to go outside scope

2006-01-05 Thread Mike Tuller
The list listing is in an if/elseif statement where if something is set, display the table that has the data, and elseif you click on the delete button, you would delete the data in the row of the table that is is the if statement. One part of the data is in the if scope, and the other is

[PHP] Set variable outside of scope (redo)

2006-01-05 Thread Mike Tuller
Excuse the last post, I didn't have all the code it there. I have a table listing items in a database, and have a delete button next to each item, and I want to be able to click on the delete and delete only that record in the database and then reload the page where it would display the updated

Re: [PHP] set variable to go outside scope

2006-01-05 Thread Mike Tuller
It's more like this: if { $x=1; echo $x; } elseif { echo $x; } On Jan 5, 2006, at 1:51 PM, Jay Blanchard wrote: [snip] The list listing is in an if/elseif statement where if something is set, display the table that has the data, and elseif you click on the delete

Re: [PHP] Re: Set variable outside of scope (redo)

2006-01-06 Thread Mike Tuller
Thanks. That is what I needed. That part works now. On Jan 5, 2006, at 4:09 PM, comex wrote: if ($row[range] != ) This should be $row['range'], not $row[range], although it doesn't make a difference unless you define a constant named range. Your problem isn't actually scope, it's

[PHP] Browser on server doesn't refresh

2006-01-06 Thread Mike Tuller
This is a perplexing problem. I am running OS X on my laptop, and I have created a script running locally that when I click submit, a page loads to show what was submitted and then I have a link that will take me back to the original page. When I run the script locally, everything works.

[PHP] CSS Switching

2006-01-09 Thread Mike Tuller
I am drawing a blank on how to go about doing this for some reason. I have a page that pulls info from a database, and I want to have a version for viewing, and a version fro printing. Since the data is dynamic, I need to keep the data, but be able to switch the stylesheet. Can someone

Re: [PHP] CSS Switching

2006-01-09 Thread Mike Tuller
Because I wasn't sure the best way to pass the information to a separate page. What John has is different than the direction I was thinking, but will work. On Jan 9, 2006, at 12:17 PM, Jay Blanchard wrote: [snip] Why don't you make a prit.php file that handles all the dynamic content

Re: [PHP] CSS Switching

2006-01-09 Thread Mike Tuller
Thanks. This is perfect. On Jan 9, 2006, at 12:07 PM, John Nichel wrote: Mike Tuller wrote: I am drawing a blank on how to go about doing this for some reason. I have a page that pulls info from a database, and I want to have a version for viewing, and a version fro printing. Since

Re: [PHP] CSS Switching

2006-01-09 Thread Mike Tuller
Yes, I think we all deserve at least one Mulligan on Mondays. On Jan 9, 2006, at 1:43 PM, John Nichel wrote: Jay Blanchard wrote: [snip] Ah, but then it would be a CSS question, and not a PHP one. ;) [/snip] Touche'! But then we wouldn't be kinder and gentler We'd have an excuse...it

[PHP] Clear POST variables

2006-02-16 Thread Mike Tuller
I have a page that submits form information into a database, and all is good, but someone testing the page pointed out something to me that I didn't notice. I have a form that sends you to another page that submits the data into a database. If you refresh the page, the information is submitted

Re: [PHP] Clear POST variables

2006-02-16 Thread Mike Tuller
, 2006, at 9:14 AM, Dan Parry wrote: Submit the data to a page that just inserts it into the DB (validating it first, natch) then do a header(location) to the thank you (or whatever) page This also fixes 'page expired' warnings HTH Dan -Original Message- From: Mike Tuller [mailto

Re: [PHP] Clear POST variables

2006-02-16 Thread Mike Tuller
. On Feb 16, 2006, at 4:39 PM, Curt Zirzow wrote: On Thu, Feb 16, 2006 at 01:23:23PM -0600, Richard Lynch wrote: On Thu, February 16, 2006 9:07 am, Mike Tuller wrote: How do I clear out the POST variables, or the variables that I have set from the POST variables, so that when the page

[PHP] LDAP listing from Exchange

2001-04-25 Thread Mike Tuller
I am having troubles displaying all the information I need from an Exchange server. I can display name, department, title, but can't get the phone number to show up. Can someone show me a script that will pull the object identifiers from the server so that I can make sure I have everything set

[PHP] LDAP listing from Exchange

2001-04-25 Thread Mike Tuller
I am having troubles displaying all the information I need from an Exchange server. I can display name, department, title, but can't get the phone number to show up. Can someone show me a script that will pull the object identifiers from the server so that I can make sure I have everything set

[PHP] Ldap question

2001-04-25 Thread Mike Tuller
I am trying to pull info from an Exchange LDAP server to make a dynamically created phonebook, and am having trouble with one field. I think the problem is that the script I have has everything pulled in an array, and all but the field I am having problems with are strings. The telephoneNumber

[PHP] Array question

2001-04-26 Thread Mike Tuller
I am trying to pull info from an Exchange LDAP server to make a dynamically created phonebook, and am having trouble with one field. I think the problem is that the script I have has everything pulled in an array, and all but the field I am having problems with are strings. The telephoneNumber

[PHP] printable output of array

2001-04-26 Thread Mike Tuller
I had what I thought was a great idea in creating a downloadable phone directory using PHP to connect to the LDAP server and gather the info for output. I originally wanted to have it create a PDF document, and still would, but I don't think that you can create multiple page documents with PHP

Re: [PHP] LDAP support for 4.0.5

2001-05-02 Thread Mike Tuller
I didn't see that anyone had responded to your question. You need to install OpenLDAP. It is the only opensource one that I know. Mike From: Walgamotte, David [EMAIL PROTECTED] Date: Tue, 1 May 2001 15:03:25 -0500 To: [EMAIL PROTECTED] Subject: [PHP] LDAP support for 4.0.5 Can anyone

[PHP] Sessions error

2003-01-07 Thread Mike Tuller
I am working with sessions, and following an example in a book and am getting an error that I am not sure of. I have an html doc that has the fields for username and password and the information entered goes to this script. ? session_start(); // set variables needed $username =

Re: [PHP] Sessions error

2003-01-08 Thread Mike Tuller
That did it! Thanks. On Wednesday, January 8, 2003, at 05:16 AM, Ford, Mike [LSS] wrote: -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED]] Sent: 08 January 2003 01:23 I am working with sessions, and following an example in a book and am getting an error that I am

[PHP] List items in table with a hypertext link

2003-01-16 Thread Mike Tuller
I have been looking for an example of how to create a listing of items in a table where you have the first item in the list have a link so that when you click on it, it will open a page for editing the contents of that item. So for instance you have a list of employees, and you want to change

[PHP] $HTTP_GET_VARS

2003-01-17 Thread Mike Tuller
I am following an example in a book and have run into a problem with a script that I am trying to run under PHP 4.3.0. What I have is a page that you click on an id number that is from a listing in a database, and it is supposed to take you to a page to edit that item. I have the id sent in

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Mike Tuller
Nevermind. When copying my code to show you I noticed I have HTTP_GET_VARS, instead of $HTTP_GET_VARS, and now everything works. Time to go home I guess. On Friday, January 17, 2003, at 04:22 PM, Rick Emery wrote: Show us your code - Original Message - From: Mike Tuller [EMAIL

[PHP] HTTP_GET_VARS[]

2003-01-30 Thread Mike Tuller
I have created a page for editing a row in a MySql database where first I have a page listing the items in the table, and have the id as a hypertext link that then on then opens the editing page with the correct information using HTTP_GET_VARS[id] where the URL is

Re: [PHP] HTTP_GET_VARS[]

2003-01-30 Thread Mike Tuller
to another page, or do I need to use hidden fields or something? On Thursday, January 30, 2003, at 10:10 AM, Matt Schroebel wrote: -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:02 AM Subject: [PHP] HTTP_GET_VARS[] The issue I am having

[PHP] Question

2003-01-31 Thread Mike Tuller
I am working from an example in a book that has the following and is not explained very well: # read results of query, then clean up while ($row = mysql_fetch_row($result)) { print (TR\n); for ($i = 0; $i mysql_num_fields ($result); $i++) { # escape any special characters and print

[PHP] Sessions

2003-02-03 Thread Mike Tuller
In an earlier post I wanted to carry an id number that I had in $HTTP_GET_VARS into another script. I was told that one way would be to store the number in the session. My question is how can I store a variable inside a session? In my books and in the documentation I see things about the global

[PHP] Includes confusion

2003-04-04 Thread Mike Tuller
I can't figure this out. I have a line where I include a file include /Library/WebServer/includes/database_connection.inc; I want to have this declared in one location, so that I don't have to change multiple lines if I ever move the application, everything works fine except inside functions.

[PHP] mysql_num_rows

2003-04-04 Thread Mike Tuller
I can't get mysql_num_rows to work for some reason. Here is a snippet of what I have $department_name = $_POST['department_name']; $select_query = SELECT * WHERE department_name = '$department_name'; $select_result = mysql_query($select_query, $db_connect); $select_total_rows =

Re: [PHP] mysql_num_rows

2003-04-04 Thread Mike Tuller
I can't believe I forgot that. time to go home for the week. thanks. On Friday, April 4, 2003, at 04:28 PM, J J wrote: oh and your SQL statement is wrong: SELECT * FROM table WHERE you are missing the FROM... --- Mike Tuller [EMAIL PROTECTED] wrote: I can't get mysql_num_rows to work

[PHP] Forms and MySql date

2003-02-20 Thread Mike Tuller
I have a form that I want to enter a date into a MySql database. I currently have the column in the database set as Date, and can't seem to get the date I enter into the text field to go into the database using the format yymmdd. I could change the column to varchar, and then it would enter, but

[PHP] Configure with register_globals on

2003-03-07 Thread Mike Tuller
I am running OS X 10.2 and am trying to work with PHP and Adobe GoLive. GoLive tells me that I don't have PHP running, which I do, and on Adobe's site someone said that register_globals needs to be on. I know that this is not something that should be done, but I want to see if this is the

[PHP] Search all data in database

2003-03-11 Thread Mike Tuller
I am wanting to add a simple search field where you enter your search and it searches the whole database, not just one column. It would be easy for one column ( SELECT * FROM clients WHERE first_name = '$first_name';) but how do I search the whole table? Do I have to search each column one by

[PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Mike Tuller
How can I check to see if a mysql_fetch_array is empty. I have a search page, and want to have it so that when there are no matches, it returns a message saying that there were no matches, and if there are, then display them. Here is what I have so far to give you an idea as to what I am

Re: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Mike Tuller
- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:17 AM To: php mailing list list Subject: [PHP] Check to see if mysql_fetch_array result is empty How can I check to see if a mysql_fetch_array is empty. I have a search page, and want to have it so that when

Re: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Mike Tuller
{ --- that should have been if ($num == 0) . Notice the two = (==). Thanks, Miches:) -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 12:43 PM To: [EMAIL PROTECTED] Cc: php mailing list list Subject: Re: [PHP] Check to see

[PHP] Setting session variables from value in database

2003-03-13 Thread Mike Tuller
I have a login page and have sessions working so that if a user is in the database, they can login. I want to also add a user_type to the session so that I can have regular staff see certain things, and admin's see other things, but I can't seem to pull the information out of the database.

[PHP] Register_globals question

2003-03-18 Thread Mike Tuller
I found a class that allows you to have a multiple page listing, where it displays a certain number of items, and then you click on the next page to show the next results. I found that it needs to have register_globals turned on. I am learning, and would like to have someone look at the class

Re: [PHP] Register_globals question

2003-03-18 Thread Mike Tuller
Well, I know it has something to do with register_globals, because it only starts working when I turn register_globals on. If it is off, the script doesn't work. Here is the php file that calls to the class. It doesn't seem to have anything that is global, but as I said before, I am not very

[PHP] Select all that contains in MySql

2003-04-03 Thread Mike Tuller
I have built a search function that searches a table for all items that match what you enter into the search field. I would like it to return all items that contain a certain string rather that matches. For example, I want to have it so that if I enter M in the search field, it will return all

Re: [PHP] Date Calculation

2004-10-28 Thread Mike Tuller
That's not quite what I am talking about. I looked at that already. I can could also put the date and time that the script was ran into the MySql database by have a TIMESTAMP field in the database. I would like to compare the date and time of timestamp in the database to the current time and

[PHP] Date Calculation

2004-10-28 Thread Mike Tuller
I have a shell script that inserts the unix date and time that the script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT 2004. I would like to have my web page do the math so that it displays the time since the script ran. How can I do the math so that the web page will display

Re: [PHP] Date Calculation

2004-10-28 Thread Mike Tuller
I guess. Are you telling me that I should take the timestamp, convert it to epoch time, the us the time function to get the current epoch time, then subtract the timestamp epoch time from the current epoch time? I think that is what you are saying. I know I can get the current epoch time in

Re: [PHP] Date Calculation

2004-10-28 Thread Mike Tuller
Ok, so here is what I have. Please check to see if there is a better way. There are a lot of database calls to me. ? $database_name = CETechnology; $host = server; $login = username; $password = password; $ethernet_address = 00:01:93:8e:69:50; $db_connect = mysql_connect( $host, $login,

[PHP] Active Directory Authentification

2004-07-07 Thread Mike Tuller
at this and see if they can figure out what I am doing wrong here? Thanks, Mike Tuller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Authentification Help

2004-07-08 Thread Mike Tuller
I have created a script that authenticates to an Active Directory server. This script works when I try to login, but the problem is that I have to bind to be able to get my dn to be able to authenticate, but I need authenticate first to be able to get my dn. Chicken before the egg problem. In