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
> 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
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
> 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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
--
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
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
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]
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!
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]
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
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]
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
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
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
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
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
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
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
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
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
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
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...
>
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
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
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
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
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'
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
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
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
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) >
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
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
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
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
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;
>
>
> _
>
> ~
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 '
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
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,
52 matches
Mail list logo