FW: [PHP] Reverse plural forms to singular for search

2005-04-15 Thread Mark Rees
Eugene, your reply-to address is set -Original Message- From: Mark Rees Sent: 15 April 2005 09:08 To: 'Eugene Voznesensky' Subject: RE: [PHP] Reverse plural forms to singular for search That sounds like a nightmare! Assuming you are talking about English, you might be able to

RE: [PHP] Re: How to unset a post variable

2005-04-15 Thread Mark Rees
Your best bet is to check that the data has not already been inserted rather than try to fiddle with the post: Don't know what db you are using but something like IF NOT EXISTS (SELECT X FROM Y WHERE Z=1) INSERT INTO Y VALUES X Cheers Mark -Original Message- From: Nieko Maatjes [mailto

RE: [PHP] mysql blob datatype for documents

2005-04-19 Thread Mark Rees
It depends to some extent on who has access to the machine where you wish to store the documents, and how sensitive the documents are. When you are storing very sensitive documents with severe access restrictions it can make sense to use the DB for storage. You have to be careful when writing the d

FW: [PHP] Last visitors

2005-04-19 Thread Mark Rees
Couple of options: a CRON job/scheduled job which invokes a SQL command deleting all but the 10 most recent records, or do the same every time you insert a record. As to exactly how you decide which are the most recent 10 records to do this deletion, that is a little more complex. Something lik

RE: [PHP] One more time (Duft Punk) about hyperlink

2005-04-20 Thread Mark Rees
Why not try selecting both the short and the full values of loc1 from the database? Then you can display them both in the html output. Select loc1, left(loc1,3) as locx, etc Have I missed your point here? Mark -Original Message- From: Sugimoto [mailto:[EMAIL PROTECTED] Sent: 20 April

RE: [PHP] set cookie function problem

2005-04-20 Thread Mark Rees
You might consider using JavaScript to set the cookie, as that will execute on the client and therefore use the client's time to make any calculations regarding expiry. This may or may not suit your purpose. Mark -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 20 A

RE: [PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-22 Thread Mark Rees
Be very careful with timezones. If you have dedicated servers with full control over each one, you can simplify this by setting them all to the same timezone. If not, you have a lot of work to do. Mark -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 08:

RE: [PHP] image maps in PHP

2005-04-22 Thread Mark Rees
Yes, I once did this for all the states in Brazil. It took me a few hours to trace the states, but it looked beautiful when it was finished. This will already have been done for the states many times - you could probably borrow someone else's work and scale it up or down a bit if it doesn't fit. M

RE: [PHP] image maps in PHP

2005-04-22 Thread Mark Rees
:34 To: Mark Rees Subject: Re: [PHP] image maps in PHP Mark Rees wrote: > Yes, I once did this for all the states in Brazil. It took me a few > hours to trace the states, but it looked beautiful when it was > finished. This will already have been done for the states many times - &g

RE: [PHP] Repeat Accross, then down

2005-04-22 Thread Mark Rees
Use a counter when iterating through the results When counter % (modulus) 3=0 then write a new row Mark -Original Message- From: Simon Allison [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 15:00 To: php-general@lists.php.net Subject: [PHP] Repeat Accross, then down Say for a photo alb

RE: [PHP] MSSqlServer table/field information

2005-04-23 Thread Mark Rees
Look into the INFORMATION SCHEMA views in SQL Books Online for a starting point. Mark -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 15:51 To: PHP General Subject: [PHP] MSSqlServer table/field information Is there a way to programatically get inform

RE: [PHP] Re: Cache control

2005-04-26 Thread Mark Rees
One rather brute force way to get round this is to append a unique (per-session at least) id to the querystring of each page, which means that the page will be requested from the server rather than the cache. I believe this works in Opera as well as other browsers. There is more to cache-contro

RE: [PHP] Some Question

2005-04-26 Thread Mark Rees
Hello I have some questions: 1.How I can make a optional argument in function that if I dont mention it in my code does not make problem? Start here http://www.php.net/manual/en/functions.arguments.php#functions.variable- arg-list 2.How I can see apache or IIS headers? Thanks http://www.google

RE: [PHP] Re: handling a user pressing browser's back button

2005-04-27 Thread Mark Rees
Perhaps it might help to think about this from the point of view of what you are trying to prevent. Is the most important thing to make sure that your data integrity is intact? For example, - you allow users to add a record on page 1 - on page 2, check that the record does not already exist, if

RE: [PHP] Check for doubleposts

2005-05-04 Thread Mark Rees
-Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED] Sent: 03 May 2005 17:49 To: php-general@lists.php.net Subject: [PHP] Check for doubleposts Hi, what is the easiest way to check if a person i registered twice in a mysql-table. Lets assume that I only check if the l

RE: [PHP] setting condition problem

2005-05-04 Thread Mark Rees
Does this help? Select * From Projects Order By Relate,Title If not, please provide more details on the output you want to see and the structure of your table Mark -Original Message- From: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED] Sent: 02 May 2005 21:49 To: php-general@lists.php

RE: [PHP] Tracking what has been changed

2005-05-05 Thread Mark Rees
-Original Message- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 00:29 To: php-general@lists.php.net Subject: [PHP] Tracking what has been changed Here's the scenario... I am building a site in which users will be able to create and then later edit personal information. Wh

RE: [PHP] insert not working

2005-05-05 Thread Mark Rees
-Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 10:16 To: php-general@lists.php.net Subject: [PHP] insert not working $query = "INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web, add_in

RE: [PHP] Re: sort by date

2005-05-06 Thread Mark Rees
I strongly recommend that you convert the db column to the datetime datatype if at all possible. However if you do wish to do it this way, read: http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html And if you can't get it to work, bear in mind that STR_TO_DATE() is available as of MyS

RE: [PHP] I'm having a blond moment with a while loop???

2005-05-09 Thread Mark Rees
-Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: 08 May 2005 11:56 To: php-general@lists.php.net Subject: [PHP] I'm having a blond moment with a while loop??? Hi guys, I'm doing something dumb but I can't see it. The basic premise is: sql search of orders sort

RE: [PHP] need manual reload on Mac client

2005-05-09 Thread Mark Rees
-Original Message- From: Francesco Casalena [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 10:18 To: php-general@lists.php.net Subject: [PHP] need manual reload on Mac client Hi, I've a strange problem on this scenario: -SERVER MacOs X server w/ Apache's httpd2, MySql Max, PHP5

RE: [PHP] Accessible HTML - OT

2005-05-09 Thread Mark Rees
-Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 09 May 2005 15:40 To: php-general@lists.php.net Subject: [PHP] Accessible HTML - OT Hiya! I have just come back from the client visit and one of the issues that arose was over the use of accessible markup, more specifical

RE: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Mark Rees
In addition to the valid suggestions thus far, another option which may suit your purpose is to display an image from webserver2 in the page on webserver1. You can put a JavaScript redirection in the image's onload event. -Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED] Se

RE: [PHP] SQL Date guru in the house?

2005-05-11 Thread Mark Rees
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 07:17 To: php-general@lists.php.net Subject: [PHP] SQL Date guru in the house? Hi All, I have a small problem. I have a project in which someone has got three integer fields for holding the date

RE: [PHP] Inner Join or 2nd Query...?

2005-05-11 Thread Mark Rees
Hi All, with wanting to show both product types(Switch, Router etc) and Makers(Cisco, Avaya, etc) on the one page in select boxes, I was wondering, do you use 2 seperate queries to the database or do you inner join to get all in 1..? I have set up different tables with related id's etc. So, to

RE: [PHP] protect your CSS files, and possibly other extenstionsas well...

2005-05-11 Thread Mark Rees
Richard Lynch wrote: >You could do all this... > >Or you could just move the files outside your web tree and change your >include path. [shrug] > > This is probably true, but I was thinking of a virtual hosting environment where its easier to maintain the code when its all in a sub-director

RE: [PHP] sleep function

2005-05-13 Thread Mark Rees
You could try sending all the data to the client at once then achieving the delay effect with JavaScript perhaps? That way, you are not reliant on external factors like connection speed. On Thu, May 12, 2005 8:38 pm, James Williams said: > I just tried a couple of output_buffering on a test script

RE: [PHP] Add to array problem

2005-05-16 Thread Mark Rees
-Original Message- From: mayo [mailto:[EMAIL PROTECTED] Sent: 16 May 2005 15:26 To: php Subject: [PHP] Add to array problem I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); Looking at

RE: [PHP] Unknown column 'peterspeters' in 'where clause'

2005-05-18 Thread Mark Rees
I expect (indeed I sincerely hope) that customer_username AND customer_password columns are character datatypes. So it would be a good idea to put single quotes around the values you are trying to select from them. -Original Message- From: Mark Sargent [mailto:[EMAIL PROTECTED] Sent: 18

RE: [PHP] Class function calling another function in class

2005-05-19 Thread Mark Rees
You might find this interesting if you are working with hierarchies in SQL http://www.intelligententerprise.com/001020/celko.jhtml?_requestid=72430 3 -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 19 May 2005 07:35 To: Charles Kline Cc: php-general@lists.php.net S

RE: [PHP] OT - Table help needed~ PLEASE

2005-05-20 Thread Mark Rees
Something along these lines should get you started Tclothes (holds all the possible variations of size, colour and style) Id PK Styleid FK to Tstyle Sizeid FK to Tsize Colourid FK to Tcolour Tstyle Styleid PK StyleDescription VARCHAR Tsize Sizeid PK SizeDescription VARCHAR Tcolour Colourid PK C

RE: [PHP] Php with mysql

2005-05-23 Thread Mark Rees
This is a beginner's guide to SQL syntax, please review it http://www.webdevelopersnotes.com/tutorials/sql/mysql_guide_querying_mys ql_tables.php3?PHPSESSID=fb6c7c7a548b6a271a75d623ce04cc9c The answer to your question (which someone has already given in a previous reply to you) is SELECT `User_n

RE: [PHP] Php with mysql

2005-05-23 Thread Mark Rees
(posted again with another syntax error corrected) This is a beginner's guide to SQL syntax, please review it http://www.webdevelopersnotes.com/tutorials/sql/mysql_guide_querying_mys ql_tables.php3?PHPSESSID=fb6c7c7a548b6a271a75d623ce04cc9c The answer to your question (which someone has already g

RE: [PHP] dynamic drop down

2005-06-02 Thread Mark Rees
The dropdown list is on the client (browser). Javascript runs on the client. PHP runs on the server. You have 2 options - one is to do as Richard says and use javascript to change the contents of one select box when an option is selected in another. - the other is to refresh the page when the

[PHP] cUrl and proxies

2005-06-30 Thread Mark Rees
Hello This code gives me a 407 Proxy Authentication Required message. Can anyone see what is missing? The username and password are definitely correct, as are the proxy IP and port. Win2k. php 5.0.4 $ch=curl_init(); curl_setopt ($ch, CURLOPT_URL, 'http://www.google.com/'); curl_setopt($ch, CURL

[PHP] Re: cUrl and proxies

2005-06-30 Thread Mark Rees
where does that fit in? The readme files in the package I did download don't really help either: http://curl.haxx.se/dlwiz/?type=*&os=Win32&flav=-&ver=2000%2FXP Please help if you can Mark ""Mark Rees"" <[EMAIL PROTECTED]> wrote in message n

Re: [PHP] Writing a PHP Web application

2005-07-01 Thread Mark Rees
"Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > What are the options to get code to run on the server (every XX > > minutes), without any user interaction, etc. > > If you are running on a unix like system (linux, freebsd, solaris, etc.) > cron can do this for you

Re: [PHP] error when trying to delete a record

2005-07-11 Thread Mark Rees
""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] $query= "DELETE FROM sheet1 WHERE id=$id"; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [/snip] try... $query

[PHP] Re: Number of users

2005-07-12 Thread Mark Rees
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello all, I have some questions and I hope someone could answer them 1. Is there a way to find out how many users currently browsing pages at my web site? 2. If I write down the IP of a user that log on my web site, ca

[PHP] Re: Plz, help

2005-07-12 Thread Mark Rees
""adolfas"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have a line: > > $sql="select u.*, p.name_lt as pareiga from nese_users u left join > nese_pareigos p on p.id=u.pareiga order by data desc"; > > As I understand there are 2 tables: nese_users and nese_pareigos > I n

Re: [PHP] Refresh

2005-07-14 Thread Mark Rees
""david forums"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > well I see two way. > > First is to make a php script without end, which will run continuously. I don't recommend this way at all. Why take up all that energy > > second way is to add refresh html tag, in your page, or

[PHP] Re: gettext best practice

2005-07-14 Thread Mark Rees
"Skippy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How do you people best deal with text meant for i18n via gettext, which is > either large or contains HTML tags, or both? > > The GNU gettext manual, in section 3.2, recommends to split long texts at > paragraph level, or in th

[PHP] Re: Win2000 easier than Win2003 ??

2005-07-14 Thread Mark Rees
""Grosz, Steve (IPG IT)"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] .. Is setting up PHP easier on Windows 2000 server rather than Win2003? I'm having nothing but problems getting PHP files to show up in IE on the Win2003 server, I get nothing but 404 - file not found errors. Can

[PHP] Usability review - OT

2005-07-15 Thread Mark Rees
Hello Sorry for the OT request. Does anyone know of anywhere I can get my website picked apart from a usability point of view? I'm thinking of general first impressions rather than an in-depth review of functionality. Thanks Mark -- www.itsagoodprice.com - top-brand electronics for less. --

[PHP] Re: session data not recorded

2005-07-18 Thread Mark Rees
""Alessandro Rosa"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a problem to record session data and I would you > help me. I suppose there's something I missed in the general > configurations during the last install, but I can't realize it. Review the settings in php.ini.

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Mark Rees
"Linda H" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I added the following to the top of my script: > > echo phpinfo(); > ?> > > Got all sorts of environment and path info. Not anything about MySQL, but I > didn't see anything that looked obviously wrong, though I don't under

[PHP] Re: Post URL ?

2005-07-18 Thread Mark Rees
""Joey"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > OK I understand the difference between a get & a post but if I just have a > URL/link which is calling a function like so: > > abc.com/display_information?customer_number=$value > > It passes to the display_information the custo

[PHP] Re: re-order a sql result

2005-07-18 Thread Mark Rees
""Ross"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a query > > $query = "SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'" > Simply requery the database for each search. For example, this orders the results by surname from a-z $query = "SELECT * FROM sheet1

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Mark Rees
"Linda H" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > For those who didn't join this thread at the beginning, I'm running MySQL > 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. > > I installed in the sequence - MySQL, then Apache, then PHP. MySQL was > running when th

Re: [PHP] sytax errors

2005-07-19 Thread Mark Rees
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > babu wrote: > > Hi, > > > > could someone please check where the sytax error is in these statements. > > > > $sqlstmt= "EXEC sp_addlogin ".$adduser." , ".$addpass; > > $sqlstmt1= "EXEC sp_adduser @loginame= ".$adduser." ,

[PHP] Re: still some problems with contact form

2005-07-20 Thread Mark Rees
An alternative (and more user-friendly) approach is to have the form's action as itself (i.e. the form on contact.php submits to contact.php). You can then identify which fields are incomplete and highlight them in the form. This will make it easier for users to see what they have done wrong and ma

Re: [PHP] problems with self referential sticky forms

2005-07-20 Thread Mark Rees
"eoghan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 20 Jul 2005, at 02:22, Linda H wrote: > > > fahreheit is here: > > > > > $fahr = $_GET['fahrenheit']; > > if (is_null($fahr)){ echo 'fahr is null';} > > $> > > > > The error was on the line: $fahr = $_GET['fahrenheit']; > >

[PHP] Re: checking for internet connection

2005-07-20 Thread Mark Rees
"Steven" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I am looking for a simple way to check if the server is connected to the > Internet, they use a dialup to get Internet connection, and I need to > email reports out, but want to check to see if the user remembered to > c

[PHP] Re: still some problems with contact form

2005-07-21 Thread Mark Rees
>Hello Mark >An alternative (and more user-friendly) approach is to have the form's >action as itself (i.e. the form on contact.php submits to contact.php). You >can then identify which fields are incomplete and highlight them in the >form. This will make it easier for users to see what they have

[PHP] Re: function MAX with WHERE

2005-07-25 Thread Mark Rees
"Jesús Alain Rodríguez Santos" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have someting like this: > > $test = mysql_query("SELECT MAX(dato) AS datos FROM tabla WHERE campo_mes > = '$mes'"); > $test_m = mysql_fetch_array($test); > $test_mes = $test_m['datos']; > > print $test_m

Re: [PHP] MySQL + PHP question

2005-07-26 Thread Mark Rees
Are you familiar with Joe Celko's tree theory? It might help you understand more about the problem. http://www.intelligententerprise.com/001020/celko.jhtml?_requestid=235427 -- Hello, Consider this: tbl_project(id, name, parent) 1 6 / \ / \ 2 3 7 8 /\ 4 5 if tbl_project.parent

Re: [PHP] MySQL + PHP question

2005-07-26 Thread Mark Rees
"André Medeiros" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > One thing I didn't quite explain myself well... I'm building this to > register objects on a permission system. > > The SQL weight is heavy as it is, and I want to save queries as much as > possible. Making two queries t

Re: [PHP] php mySql question

2005-07-27 Thread Mark Rees
Yes, it is quite possible that you have more than one php.ini file. Check this and delete as appropriate. ""Shaw, Chris - Accenture"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] ... Have you tried doing a search for the text "php5" in the php.ini file that sits in your c:\windows f

Re: [PHP] Multipage form redux

2005-07-27 Thread Mark Rees
"André Medeiros" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 2005-07-27 at 07:51 -0400, Jack Jackson wrote: > > Hi, > > I have searched the archives and seen links to tutorials at phpclasses > > (which seem to be down) and not found an answer to my question: > > I have a l

Re: [PHP] preg_match - help please

2005-07-27 Thread Mark Rees
"André Medeiros" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 2005-07-27 at 15:27 +0100, Steve Turnbull wrote: > > Hi > > > > I want to see that a user is submiting a form field in the correct manner. > > So I decided to use preg_match to verify their input. > > > > The pat

[PHP] Re: Has anybody used amfphp? (open flash remoting + php)

2005-07-28 Thread Mark Rees
"Taksam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Anybody used OpenAMF+PHP? ( http://www.amfphp.org/ ) > > It is an open-source Flash Remoting gateway. I already used it with Java and works OK. Just wanted to know if somebody here used it with PHP and would like to know if th

Re: [PHP] Multipage form redux

2005-07-28 Thread Mark Rees
Jack Jackson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Somehow my intent has been turned around here and I apologise. > > I do not want to use *any* client side validation. I only want to do > server side validation and server side storage. > > My intent was to remove the clien

Re: [PHP] Multipage form redux

2005-07-28 Thread Mark Rees
Jack Jackson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Somehow my intent has been turned around here and I apologise. > > I do not want to use *any* client side validation. I only want to do > server side validation and server side storage. > > My intent was to remove the clien

Re: [PHP] Multipage form redux

2005-07-28 Thread Mark Rees
Jack Jackson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Somehow my intent has been turned around here and I apologise. > > I do not want to use *any* client side validation. I only want to do > server side validation and server side storage. > > My intent was to remove the clien

Re: [PHP] Multipage form redux

2005-07-28 Thread Mark Rees
"André Medeiros" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The point of sessions is that when you close your browser, you loose it. > I'm affraid that if you want sessions that last two weeks, you'll have > to make your own session handler :) but yeah, it's possible, and it > be

[PHP] Re: dynamic two column table

2005-08-01 Thread Mark Rees
> i know how to break up db results into two tables but im having a hard > problem with this: > > db structure > > --- > | id | cid | title > --- > | 1 | 2 | hardware > | 2 | 3 | software > | 3 | 3 | software > | 4 | 2 | hardware > > > how can i have hardware on colu

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Mark Rees
> > g.gill wrote: > >>From what I understand the simplest solution here would be to check to see > > if you have $_POST['cb'] in the first place. That would indicate if > > checkbox was selected or not. After, you have posted the form just do the > > following test. > > > > $check_box_exits = ((i

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Mark Rees
On 8/1/05, Jack Jackson <[EMAIL PROTECTED]> wrote: > > Jochem Maas wrote: > > > > > wtf are you smoking Jack? every checkbox that was checked will exist in the > > $_POST array set with the value you gave it (I alway set a chekcboxes > > value to 1 > > because the values mere existance in the subm

Re: [PHP] returning info. from a form selection

2005-08-02 Thread Mark Rees
> > > > can anyone give me an idea on how to return info. from a forl > > pulldown menu > > > > and return that to an email address. > > > > A most basic question begs a most basic answer: > > if (!$_POST['submit']){ // Display form > ?> > > > Dropdown Value to Email > > > > > > Purchase >

[PHP] Re: Everything works...Unless they hit the "back" button...

2005-08-03 Thread Mark Rees
"Jack Jackson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all. This has been an interesting week. > > Now the form works, and I am able to error check, if no errors look into > user answer table and delete from that all q_ids matching the ones just > picked, insert this page o

[PHP] Re: The Naming of Directories

2005-08-04 Thread Mark Rees
"Tom Chubb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] This may be slightly OT, but I've modified a gallery script that I had written for me which reads directories and echos the dir name as a gallery. Unfortunately, it doesn't look very nice with say picsofsomething so I renamed t

Re: [PHP] Advice sought on PHP site maintenance

2005-08-16 Thread Mark Rees
""George Pitcher"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John, > > Thanks for the input. I just knew I hadn't covered everything. My server is > currently set up as NT4/IIS. I suppose I could look to switching to Apache > though. Far be it from me to discrouage you from swi

[PHP] Re: edit $variable online?

2005-08-17 Thread Mark Rees
"Jesús Alain Rodríguez Santos" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, I have in a php page one ($variable = 85), I woud like to change the > value from this variable online, without any data base, for example ussing > a form where I can put the new value and it change the

[PHP] Re: access multiple databases

2005-08-17 Thread Mark Rees
"Bing Du" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I need to access both MySQL and SQL server 2000 in a PHP script on RHEL > 3. In phpinfo(), I noticed 'supported databases' shows 'MySQL ODBC > PostgreSQL Microsoft SQL Server FrontBase Oracle 8 (oci8)'. And > 'Config

[PHP] LDAP, PHP and MS Active Directory

2005-08-17 Thread Mark Rees
Apologies if this turns out to be a cross-post. I sent it to the list @ evolt, but have seen no traffic on that list for two days now. --- Hello I am using PHP v5 to write an intranet. The site is hosted on a windows 2000 server running Apache. I want to i

[PHP] Re: LDAP, PHP and MS Active Directory

2005-08-18 Thread Mark Rees
> Hello > > I am using PHP v5 to write an intranet. The site is hosted on a windows 2000 > server running Apache. I want to incorporate some form of Windows > authentication to allow or deny access to given resources based on usernames > and group membership. > > I am trying to accomplish this usin

Re: [PHP] Catching all errors and redirecting

2005-08-19 Thread Mark Rees
""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] Is it possible to catch all parser errors (notices), and as that happens redirecting to a 'sorry-page-not-available-at-this-moment' page, whilst storing the error (or notice) message somewhere else (e.g. emailing i

[PHP] Re: setting 'sendmail_from' on windows

2005-08-19 Thread Mark Rees
""George Pitcher"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am sending emails out from php using a variety of 'From addresses', > depending on who is logged on. I would like bounced messages to go directly > to the sender, but they are not. I suspect that this is beca

Re: [PHP] LDAP problem

2005-08-24 Thread Mark Rees
>How long does it take to fail? >I get the answer immidiatly (0-1sec.)... Are you sure you are connecting? As in, do you only try to bind if you have a successful connection? Have you checked ldap_error? Are you doing an anonymous bind, or using a username and password? Try each and see what hap

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Mark Rees
> >> I'm betting you'll have the SAME ISSUE, and that the problem has > >> NOTHING to do with PHP whatsoever. > > > > And you'd win that bet. I thought that would be the proof I'd need to > > show that it wasn't PHP, but management has some notion that PHP might > > have somehow tainted IIS. > > Go

Re: [PHP] php solution to html problem

2005-08-24 Thread Mark Rees
""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] doesn't work CSS acts the same way with a long unbroken string. [/snip] Well, you have no way of determining how many pixels wide something can be with PHP. You might have to use JavaScript to break up the string

[PHP] Re: PHP open source newsletter software

2005-08-25 Thread Mark Rees
"Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys. > > Does anyone know of any open source software written in PHP to create > HTML news letters (head, side and bottom graphics). as well as being > able to send the newsletters. PHPlist from www.tincan.co.uk >

Re: [PHP] Re: php ldap

2005-08-26 Thread Mark Rees
"Santosh Jambhlikar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > then can i output the SMD5 of my password in php. > > > Jeff Loiselle wrote: > > > Santosh Jambhlikar wrote: > > > >> Hi , > >> > >> I have a ldap server the user password are stored in that. my php > >> ldasearch r

[PHP] Re: Help Needed

2005-08-26 Thread Mark Rees
http://uk2.php.net/manual/en/function.mssql-query.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: upload file - clients path to file?

2005-08-30 Thread Mark Rees
> Hi all. > > I havent found an answer after looking at the manual. I'm trying to find > out if it possible to find the path of the file on the clients pc once > a form has been submitted with the file upload form. No, this would be a security risk. If all your users are on an intranet, you may

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Mark Rees
file again because > the upload field will be blank. > If that's the problem, you might find it easier to solve by going for two separate forms - one to enter all the details, and the second just to upload the file. > > Quoting Mark Rees <[EMAIL PROTECTED]>: > > &g

[PHP] Re: (Yet another) I'm blind ... post

2005-08-31 Thread Mark Rees
"Martin S" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In this code, I'm not getting the value of $list passed to the Mailman page. > I've checked this umpteen times by now, but fail to see the error. I've $list is not to be found in this code sample. $lista is though. > beate

Re: [PHP] String format problem

2005-09-01 Thread Mark Rees
> In fact, this is a poor example since the difference gets larger with longer > string and more arguments. When you use dots, the interpreter has to > actually concatenate the string, looking for memory to do so and freeing it > up afterwards. This takes time. With commas, each argument is sent

Re: [PHP] ID based on position?

2005-09-01 Thread Mark Rees
> Auugh!! Why would you want to do this? You're flying in the face of > relational database theory and practice. Position of a record in the table > is, or should be irrelevant. Agreed - "position" is a notional concept. The data is stored physically in some sort of order, but what order that is

Re: [PHP] Re: calling PHP self with a text link

2005-09-02 Thread Mark Rees
> Ross wrote: > > do somehthing > > > > this seems to work but can someone explain the syntax to me what does a '?' > > and a ',' do in PHP? > > > > I thought you joined strings with a full stop '.' (a period if you are from > > the US). > There was a long thread on this only yesterday, under the

[PHP] Re: 400 error

2005-09-02 Thread Mark Rees
""Seth Rainsdon"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] when I try to access anything.php it tells me HTTP 400 bad request I have no clue how to fix this Seth Nor do we, yet. Which OS? Which web server? What have you tried so far? Has it just broken, or did it never work? -

Re: [PHP] Sessions , expiry times and different time zones

2005-09-07 Thread Mark Rees
Dan Rossi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > client cookie expires hence no more session ... > > On 07/09/2005, at 1:57 AM, Jordan Miller wrote: > > > Hi Dan, > > > > Couldn't you store an expiration time directly in the $_SESSION > > variable, rather than relying on co

Re: [PHP] regular expression for integer range

2005-09-08 Thread Mark Rees
""Murray @ PlanetThoughtful"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi all, > > > > > > I want to write regular expression for checking the string format entered > > by user. > > > > the allowed formats are > > > > examples: > > 10 > > 10, > > 10,12-10 > > 12-10 > > > > th

Re: [PHP] Inserting records question

2005-09-09 Thread Mark Rees
> > Still learning, so sorry if this sounds really simply noobish. But as I > > understand things currently this should work. But doesn't. I've been > > looking over tutorials but just don't see whatever the problem is. > > > > I created a simple table with the following fields (in order) > > tc

[PHP] Re: Round with ONE-decimal... always...

2005-09-12 Thread Mark Rees
> > I want to adjust the round() -function a little... > > If I put round(6,0) there will be an output of 6 > If I put round(6,32) there will be an output of 6,3 > > I want it to have 6,0 instead of just 6... I guess there is an easy solution > to this? Suggestions? Have a look at this. http://uk

[PHP] Re: Best way to mass mail

2005-09-12 Thread Mark Rees
""Ryan A"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > My client has a dating site and now he wants to mail all his members, > he does not want to use any of the already installed mailing lists but wants > us to make one > for him, he's on a dedicated server. > > Presently h

[PHP] Re: PHP 5, LDAP/Active Directory

2005-09-13 Thread Mark Rees
> I've looked through php.net and scoured Google for a solution to an > issue I'm having with PHP and LDAP but have so far found nothing. I'm > trying to build an intranet site that uses the company LDAP (Active > Directory really) service but I can't seem to get around the > "Operations error" and

Re: [PHP] Re: PHP 5, LDAP/Active Directory

2005-09-14 Thread Mark Rees
> >> On my server I'm running: > >> Fedora Core 4 > >> Apache 2 > >> PHP 5 compiled with OpenLDAP > >> To shed more light on the topic, bug #30670 [ http://bugs.php.net/ > >> bug.php?id=30670&edit=0 ] seems to fit my situation perfectly. As > >> some of the posts on that bug suggest, I've tried us

Re: [PHP] whats wrong in this program.

2005-09-14 Thread Mark Rees
> I tried to use the final array values in a insert statement, but the values are not inserted. > the code is > > foreach ($final as $subnum){ > $res = $db->query("INSERT INTO substrate_protocoll(substrate_type,substrate_num,operator,location,solvent,u ltrasonic,duration,cdate,ctime,comment) > VA

Re: [PHP] mysql query

2005-09-15 Thread Mark Rees
On Wednesday 14 September 2005 07:36 pm, Jesús Alain Rodríguez Santos wrote: > I have a table colum in mysql with two fields: day and month. I > would like to know if it's possible to make a query where I can > determine if exist days before to a selected day, for example: > if I have in my table:

  1   2   >