Re: [PHP] Query Returning Error

2004-10-13 Thread Harlequin
Doh...! thanks mate. -- - Michael Mason Arras People www.arraspeople.co.uk - "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 13 October 2004 15:32, Harlequin wrote: > &

[PHP] Query Returning Error

2004-10-13 Thread Harlequin
Morning all. this is such a basic question I'm embarrassed to ask but the query worked fine a few minutes ago and now returns an error: I get an error: Parse error: parse error, unexpected '=' in sample.php on line 2 [CODE] // Authenticate User: Query01 = "SELECT * FROM Users WHERE UserI

Re: [PHP] Re: php and print

2004-10-12 Thread Harlequin
message news:[EMAIL PROTECTED] > Harlequin wrote: > >>Bruno >> >>I'm still rather new to PHP so I use client side Java: >> > you are not using java you are using javascript. > >>[CODE] >> >>Click Here To Print This Page: >src="../

[PHP] Re: php and print

2004-10-10 Thread Harlequin
Bruno I'm still rather new to PHP so I use client side Java: [CODE] Click Here To Print This Page: [/CODE] That may be os use to you... -- - Michael Mason Arras People www.arraspeople.co.uk - "Bruno Santos" <[EMAIL PROTECTED]> wrote

[PHP] Searching My Database

2004-09-29 Thread Harlequin
Morning everyone. I've read around the subject of searching and although using the FULLTEXT capability of MySQL might be the proper way of doing this I feel it's somewhat limited and have decided to use a simple select procedure. I'm sure there's a better way of doing this, as I'm quite new to

[PHP] Re: simple date/now() question

2004-09-29 Thread Harlequin
I gave up with the timestamp feature because although it's accurate it's not English and needs to be reworked to make it presentable. Despite finding code to do this I still moved on to using a date\time stamp using the US format of-course and this echoes much easier and will of-course be easie

[PHP] Match Vs Where - Fulltext Search

2004-09-28 Thread Harlequin
Hi all. It took me some time to discover that you can't use a "MATCH | AGAINST" statement unless you create an fulltext index of the fields to search at the same time. Strange, I know. What's more strange is that as I read more I wonder why people use it because it will only seartch complete w

[PHP] Re: Problem with uploaded file

2004-09-26 Thread Harlequin
Sagar This is the code I use to change file permissions on a file that has been uploaded by a user to a predefined area with a predefined filename: // Change File Permissions: chmod("{$uploadfile}", 0644); -- - Michael Mason Arras People www.arraspeople.co.uk

[PHP] Parsing a File

2004-09-21 Thread Harlequin
Hi all. I've been through the PHP manual and wonder which file option will best suit my needs. I basically want to take a file that the user uploads and parse it into a variable or string so I can insert it into a field in my database. Do I use: File() file_get_contents Or something else...?

[PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread Harlequin
Hi all. Hoping this might be relatively easy... I'm wondering if I can create a dropdown menu (ABCDE) by using a select statement and then populating this using PHP...? -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP

[PHP] Re: Load Data Local Infile

2004-09-02 Thread Harlequin
nge. Any ideas guys...? -- - Michael Mason Arras People www.arraspeople.co.uk ----- "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am using the following command and it appears to execute but does not >actually load any data: >

[PHP] Load Data Local Infile

2004-09-02 Thread Harlequin
I am using the following command and it appears to execute but does not actually load any data: LOAD DATA LOCAL INFILE 'public_html/CSV/act-export.csv' INTO TABLE MembersData FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'; Any ideas what I might be missing...? The file exists, and I must ha

[PHP] Re: Newbie: Validate Required Form Fields

2004-09-02 Thread Harlequin
Francis I have a new web app that does exactly that. Page one has some mandatory fields. Page 2 checks these fields and tells the user to go back if they aren't complete. If they are complete then they are presented with page 2 and the fields it holds. -- - Michae

[PHP] Re: Broken data within an Array

2004-09-01 Thread Harlequin
Following the query I have this: wrote in message news:[EMAIL PROTECTED] > Hi all. > > Having a problem echoing a broken date. Here's where I'm at: > > $DateAdvertisedBroken = explode("-", $DateAdvertised); > > later, in a table, I use: > > $result[DateAdvertised] > > How can I change this so I c

Re: [PHP] Re: Broken data within an Array

2004-09-01 Thread Harlequin
while($result = mysql_fetch_array($query)) { $DateAdvertised=$row["DateAdvertised"]; does that help any o would you like all the code...? -- - Michael Mason Arras People www.arraspeople.co.uk - "Comex" <[EMAIL PROTECTED]> wr

[PHP] Re: Broken data within an Array

2004-08-31 Thread Harlequin
Broken[n] Any ideas...? -- - Michael Mason Arras People www.arraspeople.co.uk - "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > > Hi all. > > > >

[PHP] Re: List of cities

2004-08-31 Thread Harlequin
I scoured the web. begged borrowed and stole and eventually ended up with a list of over 1,600 cities and towns in the UK. -- - Michael Mason Arras People www.arraspeople.co.uk - "Harlequin" <[EMAIL PROTECTED]> wrote

[PHP] Broken data within an Array

2004-08-31 Thread Harlequin
Hi all. Having a problem echoing a broken date. Here's where I'm at: $DateAdvertisedBroken = explode("-", $DateAdvertised); later, in a table, I use: $result[DateAdvertised] How can I change this so I can call the broken date...? I've tried datebroken [2] etc but no joy. --

[PHP] List of cities

2004-08-29 Thread Harlequin
Morning... Does anyone know of a site that or resource available where I could pull a list of ALL UK cities and towns for an option list...? I started out with 100+, then expanded this list to over 200 but still get complaints that certain towns are not listed. -- -

Re: [PHP] Exporting Dbase to CSV

2004-08-26 Thread Harlequin
I'm using MySQL Dan I can present the results in a table easy enough and if I replace the TD TAGs with commas etc. I get a screen output that resembles a CSV file but need to go that one step further and don't know how... -- - Michael Mason Arras People www.arraspe

Re: [PHP] Exporting Dbase to CSV

2004-08-26 Thread Harlequin
I'm using MySQL Jay I can present the results in a table easy enough and if I replace the TD TAGs with commas etc. I get a screen output that resembles a CSV file but need to go that one step further and don't know how... -- - Michael Mason Arras People www.arraspe

[PHP] Exporting Dbase to CSV

2004-08-26 Thread Harlequin
I've seen many different posts on this subject and try as I might I can't get my data to output to CSV for a user to save. I can output to a table, I can output to screen in CSV format but that just means massing about with copy and paste. Has anyone got any suggestions...? -- -

[PHP] Outfile not working

2004-08-20 Thread Harlequin
Morning all. I've been tinkering with the code for the above for some time now and keep getting the same error: "Access Denied..." Can anyone help me find a solution to this as the user in question has full privileges to the database so I assume it's a directory access issue... -- -

[PHP] PHP & MySQL Installation

2004-08-17 Thread Harlequin
Hi all. I'm probably biting off a little more than I can chew here but here goes... I've been asked to move some resources I have developed from our hosting company's server and host them locally. I know I am going to need a licence for MySQL as we are developing commercial applications and not pr

[PHP] Re: back button doesn't work with sessions?

2004-08-17 Thread Harlequin
Frank I use a back button on a couple of sites that use session variables and don't seem to have an issue with them. However, my back buttons are held within IFRAME tags as I am accessing resources externally. -- - Michael Mason Arras People www.arraspeople.co.uk -

[PHP] System Tray Icon

2004-08-16 Thread Harlequin
Hi all. I just wanted to throw this message in here and get some opinions before I go off developing something So will post in the correct newsgroup later (when I find which newsgroup I need). Before I post a more thorough thread in the correct area I just wanted to find out if this was achievabl

[PHP] RIP Programming

2004-08-14 Thread Harlequin
I know, I know. This is a PHP newsgroup. I just wondered if anyone knew of any RIP newsgroups as I can't seem to find any, or any forums... -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP General Mailing List (http://www.

Re: [PHP] weird error, might be javascript?

2004-08-13 Thread Harlequin
I have had similar problems in the past Angelo and viewing the source of the HTML file usually helps identify and localise the problematic line. -- - Michael Mason Arras People www.arraspeople.co.uk - "John Holmes" <[EMAIL PROTECTED]> wro

[PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Harlequin
Can someone help with this please...? if( strlen( $UserID ) != 0 & strlen( $UserPassword ) != 0 & strlen( $SecretPassword ) != 0 & strlen( $UserMail ) != 0 ) { Do something } elseif ( strlen( $UserID ) == 0 or strlen( $UserPassword ) == 0 or strlen( $SecretPassword ) == 0 or strlen( $UserMail ) ==

Re: [PHP] RE: MySQL & PHP Examples & Training Providers Required

2004-08-12 Thread Harlequin
Jay, guys. Thanks very much for all your responses on this issue. I'm sorry if I don't always reply through the group but if I am working from the office I have a problem connecting to the mailing list. which is just one of the reasons I prefer working from home. I, along with your help, have ins

[PHP] Re: Creating plotted graphs on the fly

2004-08-12 Thread Harlequin
Ryan I'm looking to do the same thing later down the line. I'd appreciate you keeping in touch by mail and perhaps we can help each other out on this one...? -- - Michael Mason Arras People www.arraspeople.co.uk - "Ryan C . Spaulding" <

[PHP] Changing MySQL Date Format

2004-08-12 Thread Harlequin
I'm using a hell of a lot of dates in my databases and wondered if it was possible to change the date format in my databases from -00-00 to: 00-00-...? Has anyone else managed to do this or use any workarounds I could use perhaps...? I'm just getting a little hacked of having to explode t

[PHP] Variable just not Behaving Itself.

2004-08-10 Thread Harlequin
I have the following: [SNIP] ... $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"]; } if( $Emp_Status_Rqmt == 'Permanent' ) { $UserStatus = 'Permanent'; } if( $Emp_Status_Rqmt == 'Contractor' ) { $UserStatus = 'Contractor'; } else { $UserStatus == 'Flexible'; } [SNIP]

[PHP] MySQL & PHP Examples & Training Providers Required

2004-08-10 Thread Harlequin
Hi all. This might sound like a strange request but here goes. I'm looking for some examples of sites that are purely MySQL and PHP running on Unix and that contain a few thousand records preferably held in relational databases. Rationale: I need to justify PHP as a tool of choice over say vb.n

[PHP] Outputting Data

2004-08-05 Thread Harlequin
It appears that I am unable to output the data to a directory because although my user has sufficient privileges on the database to execute the query the user in question does not have file privileges. As I am reliant on my host I'm looking for other ways to achieve this. Could I possibly set a p

Re: [PHP] Outputting Data

2004-08-05 Thread Harlequin
Jay. Strange behaviour. My ISP seems to allow me to download messages intermittently but can reply to all anytime I like. However, If I can't download I can bloody well reply. Guess who the ISP is...? NTL...! I'm talking to my ISP about directory access, seems the problem with outputting that f

Re: [PHP] Query Results Question - Solved

2004-08-03 Thread Harlequin
I know what's going to happen though Richard. I'll dump it in their site and it'll look terrible because they don't know how to use CSS effectively. But hey - that's part of the fun. Hyperlinks tomorrow though :| -- - Michael Mason Arras People www.arraspeople.co.u

Re: [PHP] Query Results Question - Solved

2004-08-03 Thread Harlequin
Many thanks Richard. I have the table presenting neatly now, thanks for all your help with this one...! -- - Michael Mason Arras People www.arraspeople.co.uk - "Richard Bewley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
Mason Arras People www.arraspeople.co.uk - "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Harlequin: > > Richard > > > > Thanks firstly for your help. I renamed the fields so the spaces are

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
I'm only selecting a few fields Richard as I want to try and drop them into an array and display in a table. I know I'm probably going the long way around doing this but I need to learn from scratch exactly how to do it. I appreciate your help and patience very much. I've managed to get the quer

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
Richard. Public. I changed it to "Publish". But if I use a query window to interrogate the database I still get just two rows using the following query with field names not values for the row cell contents: SELECT 'ID','Vacancy_Role','Vacancy_Salary','Vacancy_Location','Vacancy_Type' FROM vaca

Re: [PHP] Query Results Question

2004-08-03 Thread Harlequin
Richard Thanks firstly for your help. I renamed the fields so the spaces are underscores and amended your query but still receive an error: "not a valid MySQL result resource " Still tinkering though... -- - Michael Mason Arras People www.arraspeople.co.uk --

[PHP] Query Results Question

2004-08-03 Thread Harlequin
I have the following query which should return just two rows: SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Location', 'Vacancy Type' FROM vacancy_details WHERE Publish = 'Yes' As only two rows have Publish set to "Yes". yet even if I execute the query through phpMyAdmin I get two

[PHP] Re: Unable to Destroy Session

2004-08-03 Thread Harlequin
Sorted it. for some reason it was holding the session because I had two browser windows open which is the environment it will be used in by the users. strange though... -- - Michael Mason Arras People www.arraspeople.co.uk - "Harl

[PHP] Unable to Destroy Session

2004-08-03 Thread Harlequin
Morning guys. I'm trying to destroy a session using "session_destroy();" and I get the following error: "Trying to destroy initialised session" I simply want a user to click a logout button that destroys the session cookie. Am I doing this the right way...? -- - Mi

[PHP] Re: php coding software

2004-08-02 Thread Harlequin
Brad I use HTML-Kit for HTML, ASP, Java, CSS, PHP and MySQL. Free too :) -- - Michael Mason Arras People www.arraspeople.co.uk - "Brad Ciszewski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know any good so

[PHP] Re: Replace a button by an image

2004-07-30 Thread Harlequin
Henri. I prefer to use CSS for things like this but I'm sure PHP has it's own idiosyncrasies. I checked out the site posted in response to your post and personally thought the graphics were a bit ropey. typically CSS is used for replacing images or backgrounds on hover but is very flexible and q

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Harlequin
Mmmm... Interesting Jay. Maybe I'll just WTFM mate :) -- - Michael Mason Arras People www.arraspeople.co.uk - "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I have a table generated by some code that

Re: [PHP] Conversion of Field Value to Hyperlink OT

2004-07-29 Thread Harlequin
Jay I am new. we all are at something at some point or other in our lives. If you don't like me fine - just ignore me. If you want to help, that's fine also. Just be polite. You don't need to swear to get your point across and don't need to be aggressive as either method implies a lack of contr

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Harlequin
I know. Just wondered if Jay had the courage of his convictions. -- - Michael Mason Arras People www.arraspeople.co.uk - "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harleq

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Harlequin
RTFM...? -- - Michael Mason Arras People www.arraspeople.co.uk - "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I have a table generated by some code that returns certain field values and drops them int

[PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Harlequin
Afternoon... I have a table generated by some code that returns certain field values and drops them into a table. On of these values is ID and I'd like to convert it to a hyperlink that people can use to go to another page to view further information about a record. However: The fields are not in

[PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread Harlequin
I ended up with this: Can you see any obvious problems I might miss.? -- - Michael Mason Arras People www.arraspeople.co.uk - "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all

[PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread Harlequin
co.uk - "David Robley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 28 Jul 2004 20:49, Harlequin wrote: > > > Hi all. > > > > I'm trying to retrieve values from a previously selected dropdown menu. >

[PHP] Retrieving Stored Values for Dropdown Menu

2004-07-28 Thread Harlequin
Hi all. I'm trying to retrieve values from a previously selected dropdown menu. For text I simply use value="$Whatever" But for dropdowns I can't do this - has anyone else come across this before...? -- - Michael Mason Arras People www.arraspeople.co.uk --

[PHP] Verifying AUthorised Users through Session Variables not Working...?

2004-07-27 Thread Harlequin
Hi all. I'm using session variables to identify if a user is authorised, if yes - display x and so on. However, I've come across a couple of issues: when users access a page that's 2 folders deep into the root I.e. www.mydomain.com/folder1/folder2 any include references I use have to be absolute

Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread Harlequin
t; On Mon, 26 Jul 2004 18:27:25 +0100, Harlequin > <[EMAIL PROTECTED]> wrote: > > > > > > I would like to retrieve the last entry in a login table and present that to > > a user so they can verify the date we have when they last logged in. > > > > Is this pos

[PHP] Retrieve The Last Record in a Table

2004-07-26 Thread Harlequin
I would like to retrieve the last entry in a login table and present that to a user so they can verify the date we have when they last logged in. Is this possible...? -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP Gen

Re: [PHP] Creation of MySQL Database Using PHP

2004-07-26 Thread Harlequin
Marek thanks very much. -- - Michael Mason Arras People www.arraspeople.co.uk - "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > Hello. > > > > I

[PHP] Usng Session Vaiable in WHERE Statement

2004-07-26 Thread Harlequin
Could someone please help me with my syntax here...? $MembersDataQry = "SELECT * FROM MembersData WHERE UserID='$_SESSION['logname']'"; I get an error on line 2 but can't seem to figure out what I've missed. The variable echoes fine so I know there's a string in there. -- -

[PHP] Creation of MySQL Database Using PHP

2004-07-24 Thread Harlequin
Hello. I have a friend who knows less than me about PHP and MySQL (which I know is hard to believe) but she needs a login facility for her site. I've passed over some script I use but she doesn't know how to create the database. I can write some commands that create the tables OK - but can I do t

[PHP] Unexpected T_ENCAPSED...

2004-07-24 Thread Harlequin
I've been working on a query to retrieve a user's data based on their UserID that is stored in a variable "$_SESSION['logname']" which underneath I convert using: $UserID = $_SESSION['logname']; But when I execute a SELECT query: $CaptureDetails = "SELECT * FROM RegisteredMembers WHERE UserID

[PHP] Re: editor for remote files using ssh

2004-07-24 Thread Harlequin
I use HTML-Kit which highlights syntax for a number of languages, PHP included. I am unsure of its ability to connect using SSL but it's very customisable when creating a new remote folder and I use it to work on remote files all the time. It simply creates a connection if needed and saves the fil

[PHP] Re: Unable To Gain Access to "phpMyAdmin" Through Internet Browser

2004-07-22 Thread Harlequin
ople.co.uk - "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Harlequin" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi All. I'm hoping someone can help here because my

[PHP] Re: change value of session variable?

2004-07-21 Thread Harlequin
My understanding of session variables Five is that you can write and re-write on the fly. I know from using VB that this is true and I am assuming that it is true of PHP. However, you may need to "Empty" the variable first Five. Hope that helped. -- - Michael Mason

[PHP] Unable To Gain Access to "phpMyAdmin" Through Internet Browser

2004-07-21 Thread Harlequin
Hi All. I'm hoping someone can help here because my Hosting provider's technical support haven't got a clue. I am unable to get into my phpMyAdmin area using Internet explorer. I'm challenged but cannot get in. I've tried: domain name FTP username and password the MySQL username and password I've

[PHP] Re: Discussion Forum & Online Chat

2004-07-20 Thread Harlequin
I've been looking around also and other than PHPbb didn't find anything I liked. There are developers out there that will do the work but that defeats the purpose of learning a language I think. Hope you have some look. -- - Michael Mason Arras People www.arraspeop

[PHP] Re: Login Script

2004-07-20 Thread Harlequin
Brian I am developing a members area for our website and have chosen to use session cookies. Easy stuff really. No need for Pear, downloaded files to the client PC etc. -- - Michael Mason Arras People www.arraspeople.co.uk - "Brian Kra

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Really sorry for taking up so many people's time on such a small issue. -- - Michael Mason Arras People www.arraspeople.co.uk ----- "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I&

[PHP] Stuffing those damn values into their fields...!

2004-07-19 Thread Harlequin
OK. So here we have on the submission form: It echoes fine, so I know it's there. When I go to the target page it echoes fine there also and doesn't return an error. But more strangely, it doesn't perform the update I request: $UserDataDump = "UPDATE MembersData SET Title='$Title'...) WHERE Us

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Thanks Jason. I've started doing that - damn well have to with nested IF statements. -- - Michael Mason Arras People www.arraspeople.co.uk - "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > > But the er

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
ot; <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I see one problem, but not the one you are talking about. > > > // Convert Values to Variables: > > $Title = $_POST[Title]; > > This (and the rest of the post fields) should have quotes: > >

[PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
I've checked my syntax but obviously missing something. Would anyone mind a quick scan: // Convert Values to Variables: $Title = $_POST[Title]; $ChristianName = $_POST[ChristianName]; $MiddleName = $_POST[MiddleName]; $Surname = $_POST[Surname]; $HomePhone = $_POST[HomePhone]; $Addres

[PHP] Re: Online Office Suite integrated w/ PHP

2004-07-19 Thread Harlequin
Daryl. What's the project goal...? -- - Michael Mason Arras People www.arraspeople.co.uk - "Daryl Meese" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all, > > I'm looking for suggestions on what open-source office

Re: [PHP] PHP Form Field Validation

2004-07-18 Thread Harlequin
ECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > > Just wondering if there's a quick and easy way to validate form fields using > > PHP. > > > > Not really that concerned with actual content by using REGEX but want to > > ensure us

[PHP] Re: Error: unexpected T_ELSE on line 14...?

2004-07-18 Thread Harlequin
I figured it out. Got the semicolon at the end of that first line. Doh...! -- - Michael Mason Arras People www.arraspeople.co.uk - "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What t

[PHP] Error: unexpected T_ELSE on line 14...?

2004-07-18 Thread Harlequin
What the hell have I done this time...? Well, more to the point - what gave I missed...? if ($_SESSION["Authorised"]="Yes"); { // Body ~ Verified User: echo ""; echo "Thank you $UserCName, Now please just provide the following information and your aProfile will be loaded."; } else <<<-

[PHP] PHP Form Field Validation

2004-07-18 Thread Harlequin
Evening. Just wondering if there's a quick and easy way to validate form fields using PHP. Not really that concerned with actual content by using REGEX but want to ensure users have at-least bothered to put something in and if not display an error with the form field's name maybe. Any suggestion

[PHP] Re: Using and Echoing Session Variables

2004-07-18 Thread Harlequin
t; <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > > Jason > > > > Would there be anything wrong with using an include statement at the top of > > every page and the include page could then start a session, execute queries > >

[PHP] Re: Using and Echoing Session Variables

2004-07-18 Thread Harlequin
Arras People www.arraspeople.co.uk - "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > > So If I needed say 10 session variables all based on field values in the > > database I'd have to

[PHP] Re: Using and Echoing Session Variables

2004-07-18 Thread Harlequin
ing things. -- - Michael Mason Arras People www.arraspeople.co.uk - "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > > OK, so here's my conundrum... > > > &g

[PHP] Re: Using and Echoing Session Variables

2004-07-18 Thread Harlequin
, remember that you don't need to REassign values to $_SESSION to > keep them stored over multiple visits! :) > > hope that helps, > - Tul > > Harlequin wrote: > > Hi everyone. A few quick pointers if you have time... > > > > I've created a session, easy

[PHP] Re: Using and Echoing Session Variables

2004-07-18 Thread Harlequin
echo the UserID variable - fine. But the FurtherComments variable simply echoes "FurtherComments" even though there's a database field called "FurtherComments". Strange one... -- - Michael Mason Arras People www.arraspeople.co.uk -

[PHP] Re: Using and Echoing Session Variables

2004-07-18 Thread Harlequin
CTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > > Hi everyone. A few quick pointers if you have time... > > > > I've created a session, easy enough: > > > > > > I've created variables: > > $_SESSION['

[PHP] Using and Echoing Session Variables

2004-07-18 Thread Harlequin
Hi everyone. A few quick pointers if you have time... I've created a session, easy enough: I've created variables: $_SESSION['UserID'] = UserID; $_SESSION['Authorised']="yes"; $_SESSION['logname'] = $logname; When a user clicks a link to a test page I created the following doesn't work though:

[PHP] Re: old guy newbie needs some help

2004-07-18 Thread Harlequin
Bob. New myself but have started reading around sessions and found that you need two things enabled at the server end: track_vars trans-sid and bruce is right - you need to make sure the session_start command is immediately after the opening PHP tag. -- - Michael M

[PHP] Re: Emtying Variables

2004-07-18 Thread Harlequin
erful...! -- - Michael Mason Arras People www.arraspeople.co.uk ----- "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What's the best way of emptying my variables once my form has done with them &g

[PHP] Re: Problem Stuffing Variable Value into an E-mail

2004-07-17 Thread Harlequin
yeah. I should have noticed that. Thanks again Torsten :) -- - Michael Mason Arras People www.arraspeople.co.uk - "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Harlequin"

[PHP] Emtying Variables

2004-07-17 Thread Harlequin
What's the best way of emptying my variables once my form has done with them because although I disconnect from the database if the user refreshes the screen it sends another e-mail to me. -- - Michael Mason Arras People www.arraspeople.co.uk ---

[PHP] Problem Stuffing Variable Value into an E-mail

2004-07-17 Thread Harlequin
I've generated a page where the user selects and completes a form. One of these is a free text area with the name "TXT_Question". this is used later as "$Question = $_Post['TXT_Question'];" but for some reason when I send this in an e-mail like so: \nUser has selected eventID:\t$EventID \nAn

[PHP] Book Required

2004-07-17 Thread Harlequin
Morning There's loads and loads of books available on the subject of PHP & MySQL. Does anyone have any recommendations...? -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Populating a Dropdown Menu From a Query

2004-07-16 Thread Harlequin
Another day another conundrum. I have a form where one option is a dropdown menu. I'd like that menu to only have items in it that are actually available. Selecting the items with a query is easy enough but I wondered if anyone could tell me where to start wit the code. Am I using a for each agai

Re: [PHP] Echoing Results in a Table

2004-07-16 Thread Harlequin
Arras People www.arraspeople.co.uk - "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > > I've managed to develop a query which pulls a finite number of records from > > a table based on a

[PHP] Echoing Results in a Table

2004-07-16 Thread Harlequin
I've managed to develop a query which pulls a finite number of records from a table based on a query. What commends do I now use to present these results in a table...? -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP Gen

[PHP] Using SSL and PHP

2004-07-16 Thread Harlequin
Hi everyone. We've recently decided to move all our PHP pages to an SSL server. Can anyone give any advice on any caveats I should be aware of...? -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP General Mailing List (htt

[PHP] Re: MCAL Function

2004-07-14 Thread Harlequin
PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Harlequin" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I'll have a look at that Torsten, thanks. > > > > Can a "user" create their own entries then...? > > I

[PHP] Re: MCAL Function

2004-07-14 Thread Harlequin
I'll have a look at that Torsten, thanks. Can a "user" create their own entries then...? -- - Michael Mason Arras People www.arraspeople.co.uk - "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news

[PHP] Re: MCAL Function

2004-07-14 Thread Harlequin
OK, OK "on-line"...! -- - Michael Mason Arras People www.arraspeople.co.uk - "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It appears that PHP can create on-pine calendars...? >

Re: [PHP] Session Variables ~ Best Practices

2004-07-14 Thread Harlequin
thanks Jay. -- - Michael Mason Arras People www.arraspeople.co.uk - "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I am also wondering if I need to declare all my variables one after the other or can I

[PHP] Re: Opinion: PHP Sessions or Cookies

2004-07-14 Thread Harlequin
I am using PHP sessions for my site. Have done the numbers and have to agree that although cookies make life easier for the developer the whole reason for cookies is to make life easier for the browser. We have to accept that not all users can interrogate a cookie download and verify if the site i

  1   2   >