Re: [PHP] Jpgraph troubles

2003-05-29 Thread Jordan Elver
rs, Jord -- Jordan Elver If work was so good, the rich would have kept more of it for themselves. -- David Brent (The Office) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Jpgraph troubles

2003-05-29 Thread Jordan Elver
> I assume you are sending something similar to the following before the > actual pic? > > header("content-type: image/png"); Jpgraph does that for you I think. As I said before, the script works when you access it directly, but not when it's through an img tag. -- J

[PHP] Jpgraph troubles

2003-05-29 Thread Jordan Elver
oken image icon. Any ideas whaty may be causing that? TIA, Jord -- Jordan Elver The office is like an army, and I'm the field general. You're my footsoldiers and customer quality is the WAR!!! -- David Brent (The Office) -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] PHP graphs

2003-02-27 Thread Jordan Elver
> Secondly, I'd like to trace a basic X/Y graph with data provided from a DB, > any PHP help? JPGraph is good. -- Jordan Elver Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the aver

[PHP] Repeating Templates

2003-02-24 Thread Jordan Elver
ry or something. How can I repeat the rows for all the data? Any tutorials or advice would be appreciated. Hope my question is clear :) TIA, Jordan -- Jordan Elver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] More OOP

2003-01-16 Thread Jordan Elver
Database { function Login() { echo "Hello, I'm the Login class"; // connect to the database $this->connect(); } } $c = new Database; $c->connect(); Any pointers would be great :) Cheers, Jord -- Jordan Elve

Re: [PHP] OOP

2003-01-16 Thread Jordan Elver
t; > Use google. Do some more studying before you try to tackle this, or look > on phpclasses.org for some examples. > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ Nice work on php archit

Re: [PHP] OOP

2003-01-16 Thread Jordan Elver
even if you > are simply trying to learn php > > Take care, > Greg -- Jordan Elver Statistics are like a lamp-post to a drunken man - more for leaning on than illumination. -- David Brent (The Office) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OOP

2003-01-15 Thread Jordan Elver
s (which I still need help with by the way :) ). Thanks for your help, Jord -- Jordan Elver Is your work done? Are all pigs fed, watered and ready to fly? -- David Brent (The Office) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OOP

2003-01-15 Thread Jordan Elver
n the actual code :) Thanks for any advice you can give, Jord -- Jordan Elver You don't have to be mad to work here! In fact we ask you to complete a medical questionnaire to ensure that you are not. -- David Brent (The Office) -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Authentication programming

2003-01-15 Thread Jordan Elver
Hi Justin, Thanks for that link, looks pretty interesting. I'll take a closer read later. Cheers, Jord -- Jordan Elver Eagles may soar high, but weasels don't get sucked into jet engines. -- David Brent (The Office) -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Authentication programming

2003-01-14 Thread Jordan Elver
nt solutions to this. Could anyone point out some urls or anything to show me in the right direction? Cheers, Jord -- Jordan Elver There's no 'I' in 'team'. But then there's no 'I' in 'useless smug colleague', either. And there's four in 'pla

[PHP] Checking Checkboxes using Arrays

2001-12-06 Thread Jordan Elver
t $country\n"; } else { echo"\t $country\n"; } } Can anyone give me some tips because if i select a country which is not in the array, it still checks all the boxes of the countires in the arra

Re: [PHP] HTTP_REFERER

2001-11-23 Thread Jordan Elver
> I was trying to get the value of HTTP_REFERER. But, it does seem > > to get set. > > Does anyone know how to find thi value? Is there a reason why it > > would not > > get set? > > Hi > > I think you're looking for this > > $HTTP_SERVER_VARS[&quo

Re: [PHP] HTTP_REFERER

2001-11-23 Thread Jordan Elver
e drawing board. > I had the same problem using the latter. The former displays properly. > Other than that I can't remember if I changed anything else > > M: -- Jordan Elver Web Developer http://www.theinternetone.co.uk Unix is not a "A-ha" experience, it is more of a

[PHP] HTTP_REFERER

2001-11-23 Thread Jordan Elver
Hi, I'm writing a 404 handler and in order to report the item that was requested I was trying to get the value of HTTP_REFERER. But, it does seem to get set. Does anyone know how to find thi value? Is there a reason why it would not get set? TIA, Jord -- Jordan Elver Web Developer

[PHP] Session and header()

2001-11-21 Thread Jordan Elver
ps my logging out working correctly?! Does anyone have an idea of why header would interfere with seesion functions? Thank, Jordan -- Jordan Elver http://www.jordanelver.co.uk "testing? What's that? If it compiles, it is good, if it boots up it is perfect." --- Linus Torvalds --

[PHP] PHP Chat

2001-10-01 Thread Jordan Elver
Hi, Can anyone recommend a good, configurable php chat? I've tried phpMyChat which seems pretty good. Any ideas? Cheers, Jord -- Jordan Elver Web Developer The InternetOne UK Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

[PHP] Accessing lots of variables

2001-09-25 Thread Jordan Elver
Hi, I'm feeling a bit stupid. I have a,load of variables coming from a MySQL connection using list(). The variables are link1 to link 35 inclusive. How can I access each of these variables, check if they are empty, then add them to an array. I don't know how to access then inside a for loop. Ca

[PHP] Merging Arrays

2001-09-21 Thread Jordan Elver
ny advice? Cheers, Jord -- Jordan Elver Web Developer The InternetOne UK Ltd -- 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] PHP Redirect in the middle of code?

2001-09-10 Thread Jordan Elver
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] > > _ > Do You Yahoo!

[PHP] Statement Confusion

2001-09-06 Thread Jordan Elver
Hi, Could any one explain what this statemnt means? $i = (!$i)?"0":$i; Thanks, Jord -- Jordan Elver Web Developer The InternetOne UK Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Splitting Text

2001-08-07 Thread Jordan Elver
ds...) > > > Or, another way to do it is to use strtok() to tokenize the string... > http://www.php.net/manual/en/function.strtok.php > > The manual has a good example of tokenizing a string into individual > words... > > > -Original Message- > From: Jorda

[PHP] Splitting Text

2001-08-06 Thread Jordan Elver
t :-( TIA, Jord -- Jordan Elver http://www.jordanelver.co.uk Oops, my brain just hit a bad sector! -- 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]

[PHP] Testing if variable was set

2001-05-17 Thread Jordan Elver
Hi, If I want to test if a variable exists (or has been passed) then I just do: if($var) { // variable is here } But I've noticed that a lot of people do: if(isset($var)) { // variable is here } What's the difference and which is the best way? TIA, Jord -- Jo

[PHP] Re: [PHP-DB] Printing out usernames and logins

2001-05-14 Thread Jordan Elver
fon: +49-(0)7531-89207-17 > fax: +49-(0)7531-89207-13 > e-mail: mailto:[EMAIL PROTECTED] > internet: http://www.suchtreffer.de > _______ > > > -Original Message- > > From: Jordan Elver [mailto:[EMAIL PROTECT

[PHP] Printing out usernames and logins

2001-05-14 Thread Jordan Elver
Hi, I'm trying to print out a list of usernames and the times they logged in. I want to print it out like: joe fred frank Then when you click on one of the names it show just there login times, like this, so if I click on fred it prints out: joe fred - - - frank But it doesn't continue p

Re: [PHP] Checking query suceeded

2001-05-02 Thread Jordan Elver
Hi Richard, Thanks for the advise. I was just wondering what other people do. I don't think I'll worry about it too much ;-) Cheers, Jord On Wednesday 02 May 2001 3:49 am, you wrote: > > If I'm doing more than one query on a page what is the best way to check > > if > > > they all succeeded wi

[PHP] Checking query suceeded

2001-04-30 Thread Jordan Elver
Hi, If I'm doing more than one query on a page what is the best way to check if they all succeeded with out using transactions? TIA, Jord -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

[PHP] Retrieving and Printing Categories

2001-04-25 Thread Jordan Elver
Hi, I've got a load of records that are in different categories. What is the best way to get all the records or selected records and print them in such a way that they are grouped (on the page) in their relevent category, like: Fruit -> Apples -> Pears -> Bananas Vegetables -> Carrots -> Cabba

Re: [PHP] DOCUMENT_ROOT

2001-04-25 Thread Jordan Elver
ant? > > Regards, > -- > Yasuo Ohgaki > > > "Jordan Elver" <[EMAIL PROTECTED]> wrote in message > 01042417535900.00987@localhost">news:01042417535900.00987@localhost... > > > Hi, > > Has any got any idea why $DOCUMENT_ROOT returns /usr/local/htdocs

[PHP] DOCUMENT_ROOT

2001-04-24 Thread Jordan Elver
Hi, Has any got any idea why $DOCUMENT_ROOT returns /usr/local/htdocs on my home machine but it should return /usr/local/htdocs/sitename or where ever I put it, but on my production machine it return what it should like /usr/local/sitename or whatever? I'm trying to use it to help include file

Re: [PHP] Site Structure

2001-04-23 Thread Jordan Elver
Hi, Thanks for the reply. I can do that but then the images will not be in the correct location? Jordan On Monday 23 April 2001 15:58, you wrote: > give the include() function a complete path: > > include '/apache/htdocs/include/yourfile.inc.php'; > > > -- Ben Cairns - Head Of Technical Operati

[PHP] Site Structure

2001-04-23 Thread Jordan Elver
Hi, I have a site structure like: -> root ---> includes ---> admin ---> images I'm using headers and footers and they are in the includes directory. My pages in the root directory include the files like: include('includes/header.inc'); Thats woprks fine, but i want to be able ti use the same

Re: [PHP] Selected Radio Buttons

2001-04-14 Thread Jordan Elver
you are seing if > $article_active equals y. And no where in the code do you set > $article_active to anything else. > > Why would you think $article_active would be anything but "y" or "n"? > > > -- > Plutarck > Should be working on something... >

[PHP] Selected Radio Buttons

2001-04-14 Thread Jordan Elver
Hi, I think I'm being stupid. Why won't this code work. The $article_active variable is showing y when I echo it? if($article_active == 'y') { echo"Yes"; } else { echo"Yes"; } if($article_active == 'n') { echo"No"; } else { echo"No"; } Thanks, Jor

[PHP] Updating Sessions

2001-04-13 Thread Jordan Elver
Hi, I've got a multi page form and I'm using sessions to keep track of all the variables between the pages. SO I fill in page one of the form and add the variables to a session. Then I can go on completeing the rest etc. My problem is that I want my users to be able to go back to the pages th

Re: [PHP] Re: [PHP-DB] Selecting Dates

2001-04-08 Thread Jordan Elver
That's what I thought but that doesn't work either? On Sunday 08 April 2001 10:13, you wrote: > >I'm trying to select records based on dates. > >I have a table with dates in the format 2001-04-08 and I'm using the > > query: > > > >SELECT name, description, date_time FROM events WHERE YEAR(date_t

[PHP] Selecting Dates

2001-04-08 Thread Jordan Elver
Hi, I'm trying to select records based on dates. I have a table with dates in the format 2001-04-08 and I'm using the query: SELECT name, description, date_time FROM events WHERE YEAR(date_time) = 2001 AND MONTH(date_time) = 04 AND DAYOFMONTH(date_time) = 08 But it doesn't yield any records? I

Re: [PHP] Passing Arrays

2001-04-05 Thread Jordan Elver
r page: > > $myarray = unserialize(rawurldecode($myarray)); > > You should consider using sessions instead. > > > Jordan Elver <[EMAIL PROTECTED]> wrote: > Hi, > How can I pass an array between two pages. I've tried using serialize and > unserialize. But it doen'

[PHP] Passing Arrays

2001-04-05 Thread Jordan Elver
Hi, How can I pass an array between two pages. I've tried using serialize and unserialize. But it doen't return an array. When I use gettype() on it, it say's that the typ-e is boolean? Any ideas? Cheers, Jord -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: [PHP-DB] mysql_result()

2001-04-05 Thread Jordan Elver
Infrastructure Technology > http://www.openlinksw.com > > -Original Message- > > > From: Jordan Elver [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 04, 2001 11:46 AM > > To: PHP Database Mailing List; PHP General Mailing List > > Subject: [PHP-DB] mysql_res

[PHP] mysql_result()

2001-04-04 Thread Jordan Elver
Hi, If I knnow that a query will only retrun one row, can I do thiss (below) rather than using a while loop for one record? $id = @mysql_result($result, 0, 'id'); $name = @mysql_result($result, 0, 'name'); $email = @mysql_result($result, 0, 'email'); $address1 = @mysql_result($result, 0, 'addres

[PHP] Best way to check if a query succeeded

2001-03-29 Thread Jordan Elver
Hi, i was just wondering what you guys do to check if a wquery suceeded or not? I know about mysql_num_rows() and mysql_affected_rows(), just wondered what you guys do? I normally do something like: $sql = "SELECT something FROM table"; $result = mysql_query($sql); if(@mysql_num_rows($result) >

Re: [PHP] Query - Grouping Results

2001-03-19 Thread Jordan Elver
gt; user_logins.user_id = users.id > order by name,time > > > -Original Message- > From: Jordan Elver [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 19, 2001 1:43 PM > To: PHP Database Mailing List; PHP General Mailing List > Subject: [PHP] Query - Groupi

[PHP] Query - Grouping Results

2001-03-19 Thread Jordan Elver
Hi, I've got a table like: id user_id ip time 1 2 127.0.0.1 20010316105018 Etc, etc. I do a join on the this table and the users table to get the coresponding username to user_id like this: SELECT users.name AS name, user_logins.ip AS ip, U

Re: [PHP] Login System with access levels

2001-03-17 Thread Jordan Elver
Thanks for all your help. I've settled for an enum field for the time being. I'm going to try something more complex at a later stage. Thanks again, Cheers, Jord -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Login System with access levels

2001-03-16 Thread Jordan Elver
Hi, I've got a db with a username and password in it. I can let people log in, like SELECT * FROM table WHERE username = username AND password = password. But how can I add an access level column so that I can have different levels of security. So admin's can read everything, but users can only

[PHP] Re: [PHP-DB] Sessions in Functions

2001-03-16 Thread Jordan Elver
Hi, Yep I do. I just figured out that it was because I had session_start() inside another function ;-) Thanks anyway, Jord On Friday 16 March 2001 10:43, you wrote: > > Did you declare $LOGGED_IN as a global variable in your function? > > e.g. > > global $LOGGED_IN; > > > _ > > ~

Re: [PHP] Getting path of script

2001-03-13 Thread Jordan Elver
py > > - Original Message - > From: Hardy Merrill <[EMAIL PROTECTED]> > To: Jordan Elver <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, March 13, 2001 5:21 PM > Subject: Re: [PHP] Getting path of script > > > How '

[PHP] Getting path of script

2001-03-13 Thread Jordan Elver
Hi, I want to get the path of a script. I know about HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like: /phpcode/misc/phpinfo.php But I want to strip off the file name and just have the directory path, like: /phpcode/misc/ Any ideas? Jord -- PHP General Mailing List (http://w

[PHP] DB Abstraction

2001-03-11 Thread Jordan Elver
Hi, I thought it was about time I started using a db abstraction class. Problem is, there are so many out there that I don't which one to start using? I've heard of ADODB (I think). Anyone have any suggestions? Cheers, Jord -- PHP General Mailing List (http://www.php.net/) To unsubscribe,