[PHP] ask for help about php+mysql install: /usr/local/php-4.0.5/main/internal_functions.c:60: undefined reference to`mysql_module_entry', thanks in advance.

2001-10-19 Thread Harrison
Hi there, I encounter the following problem when trying to build a LAMP Box with Mysql-4.0.0+PHP-4.0.5+Apache-1.3.22. 1. Mysql Installed ok 2. when trying to make php with "./configure --with-apache=/home/user/apache_1.3.22 --with-mysql=/usr/local/ db/mysql --with-config-file-path=/usr/lo

[PHP] Free PHP Hosts?

2003-01-18 Thread JJ Harrison
c are exceptable). -- --- JJ Harrison [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Free PHP Hosts?

2003-01-18 Thread JJ Harrison
I did do that, and have yet to turn up a useful result. That is why I asked. "David T-G" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: CVS In PHP

2003-01-19 Thread JJ Harrison
Either use exec() to run a command line script. Or investigate creating a php module or something. -- --- JJ Harrison [EMAIL PROTECTED] "Trilochan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > Every body , I have writt

[PHP] Best way to include multi-lingual support in an application.

2003-02-04 Thread JJ Harrison
I am currently planning an application. I would like to include multiple language support so that I can have a german or french version down the track if need be. What are your views on the best way to include the ability to "add" languages after it is complete? -- --- JJ Harri

[PHP] Anyway to interface to myob

2003-02-14 Thread JJ Harrison
I need a way to interface php with myob, is it possible? -- --- JJ Harrison [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] append to array?

2003-02-15 Thread JJ Harrison
I have actually rtfm and can't seem to find a function to add onto the end of an array. Is there a function to do it or do i need to write my own? -- --- JJ Harrison [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function to discover if value is already in array

2003-02-21 Thread JJ Harrison
Here is an example array: array( array("1","2"), array("2","3"), array("3","1") ) now suppose I get some form inputs with the value 1 and 1. I am trying to find a way to figure out if the first coloumn is already in the table and if so just add the second coloumn to th

[PHP] Re: multiple search

2002-07-23 Thread JJ Harrison
message(IE crashed). It is looping forever for some reason(I've never filled a client's computer that fast before!) How can I fix it? Or if you cant tell me what does the error mean? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Richard Lynch" <[EMAIL PROTECT

[PHP] timing header("Location: " )

2002-07-25 Thread JJ Harrison
Is it possible to make the browser wait say, 5 seconds before redirection by outputting headers? I know you can do it with meta tags but not how by outputting headers -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Installed PHP on home Win98se, now how can I get browser to see it?

2002-07-26 Thread JJ Harrison
NDOWS\ then find a file in that directory called php.ini. Check the settings against the ones shown with php info. change them to the isp/companies config. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Marcus Unlimited" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]&q

Re: [PHP] Possible to have optional values in function?

2002-07-26 Thread JJ Harrison
I just realised why my search returned nothing. I was searching the function list instead of the whole site :} Sorry :( -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > On Friday 26 July 2002

Re: [PHP] Possible to have optional values in function?

2002-07-26 Thread JJ Harrison
I *did* rtfm(or searched it at least). That is why I asked the group. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > On Friday 26 July 2002 17:46, JJ Harrison wrote: > > is it possible to

Re: [PHP] Possible to have optional values in function?

2002-07-26 Thread JJ Harrison
Thank You. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "René moonen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > JJ Harrison wrote: > > >is it possible to have optional values in a PHP function? > > > >some of th

[PHP] I hate to do this - Parse error...

2002-07-26 Thread JJ Harrison
27;name'].' '.date('jS-M-Y',$row['time']).' '.$row['username']."\n"; // Parse error here - line 24 echo $row['message']."\n"; } } I am getting really frustrated. I know I really shouldn't use the mail

[PHP] Re: I hate to do this - Parse error...

2002-07-27 Thread JJ Harrison
Thanks. I've never seen an error that far up from the qouted line. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Chris Earle" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I think the Parse error might actually be on the

[PHP] Date() Problem

2002-07-27 Thread Tony Harrison
Hi, im making a tab/lyric portal, and for viewing tabs i want to display the time the lyric/tab was submitted. So I retrive it from a MySQL database (as a timestamp) and format it using the date function. The problem is, that the date: 19-01-2038 04:14:07 is allways returned, even though in the `d

[PHP] Re: Date() Problem

2002-07-27 Thread Tony Harrison
Yeh, ive allready looked at that before, but where and when do i use DATE_FORMAT() ? When im inserting the row or selecting it? "Jome" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, im making a tab/lyric portal, and for viewing tabs i want to display > t

[PHP] Re: Date() Problem

2002-07-27 Thread JJ Harrison
Alternativly you could store the dates as UNIX timestamps. That is what I do. It is then eaiser to do certian things(ie show stuff released in the last month) -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Tony Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

[PHP] Re: Date() Problem

2002-07-27 Thread Tony Harrison
I tried using UNIX stamps but it dont work, and why the hell does it default to that date anyway? I thought it was supposed to default to the current time? "Jj Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Alternativly y

[PHP] removing html...

2002-07-27 Thread JJ Harrison
e the unwanted header and footer HTML. I am pretty sure that someone must have done it(HTML file uploads for sites etc). Thanks in advance and good night. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: removing html...

2002-07-27 Thread JJ Harrison
Thanks, I had never used regular expressions before and will look into them a bit more. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Jj Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have search ar

[PHP] Re: setcookie question

2002-07-28 Thread JJ Harrison
If the different applications are on the same domain/ip you should use this: ("myCookie","$cookie_value",$timeToExpire); note the missing parameter at the end -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Gaylen Fraley" <[EMAIL PROTECTED]> wrote in me

[PHP] Re: How do I show the sourse code?

2002-07-28 Thread JJ Harrison
research the php function htmlspecialchars(). I replaces < with < and > with > etc. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com I often get confused with < and > so they may be in the wrong order but I am sure you get the idea. "ØYstein HåLand" <[EMA

[PHP] Re: Logging out with authentication

2002-07-28 Thread JJ Harrison
You could redirect to a file outside the 'realm' by using header("location: ") or just linking to it. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Ray Todd Stevens" <[EMAIL PROTECTED]> wrote in message 3D44690D.25129.D620734@localhost">new

[PHP] Re: PHP + Form + Session Problem. Please help

2002-07-29 Thread JJ Harrison
/manual/en/language.variables.predefined.php I also suggest buying a book for PHP(if you don't have one) I would recommend PHP and MySQL Web Development by Luke Welling and Laura Thopson. It includes a working example of what you are probably trying to do. -- JJ Harrison [EMAIL PROTECTED]

[PHP] Re: Reg-Vulnerabilities in PHP

2002-07-29 Thread JJ Harrison
I don't know. php_info();? But why use PHP 4.0.6 ? We are up to PHP 4.2.2 now(Which was just realeased due to a security bug). -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Senthilvelavan" <[EMAIL PROTECTED]> wrote in message 009101c236bc$61c8b410$300110ac@snpsi"&

[PHP] How would I do this?

2002-07-29 Thread Tony Harrison
Hi. I have a problem with my tab/lyric site, I need to create an artist page, where users can view all lyrics/tabs by a certain artist. Now because im likely to get guitar/drum/bass tabs / lyrics for the same song, I want to have a table with links as follows (e.g): Blink 182 - Whats my

[PHP] Re: Auto Increment Problems....

2002-07-30 Thread Tony Harrison
Instead of incrementing to find the next row to count them, you dont have to set the ID if it is auto increment. MySQL will do it for you (and i think it might fill the holes too). Also, to get the num. of rows just do this - $get_rows = mysql_query("SELECT * FROM `table`"); $num_rows = mysql_num

[PHP] Re: Disabling Browser "BACK" button

2002-07-31 Thread Tony Harrison
If you write your own browser, who would use it? And without a back button - nobody "Petre" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > HI > Is there a way I can disable the client's browser back button, forcing > them to use the navigation I built into the

[PHP] ARRRRGGGGHHHH! Weird Problems!

2002-07-31 Thread Tony Harrison
OK, im having some minor problems with my site. In artist.php (http://members.lycos.co.uk/ajohnh/artist.php - Source at: http://members.lycos.co.uk/ajohnh/source/artist.txt) If for example you view lyrics by Weird Al Yankovic (http://members.lycos.co.uk/ajohnh/artist.php?id=1) You'll see that the

[PHP] Re: ARRRRGGGGHHHH! Weird Problems!

2002-08-01 Thread Tony Harrison
; $g ++) { > $color = 1; > if ($color == 1) { $rowcolor = "#DFDFDF"; $color ++; } else { $rowcolor= > "#FF"; $color --; } > ... > } > > > "Tony Harrison" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL P

[PHP] Re: ARRRRGGGGHHHH! Weird Problems!

2002-08-01 Thread Tony Harrison
OK, the color works, but now I have 2 empty lines "Tony Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanx, I havent tried the loop yet, but the color will work im sure . > > "Aaron Ott

[PHP] Re: attachements in mail()

2002-08-01 Thread Tony Harrison
Shouldnt there be some sort of MIME header for it? "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You can't (in the sense that there's an $attachment argument), but I've > seen several classes that will let you do it. Check zend.com and > p

[PHP] Re: Need help to choose hosting!

2002-08-02 Thread JJ Harrison
I would recommend Infinology Smart Consumers: http://smartconsumers.infinology.com/ You should look at them. I use them and I am very pleased with their service. Their servers have very fast response times and the give you plentiful features. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com

[PHP] User Authentication Problem.

2002-08-02 Thread Tony Harrison
Hi, I need to authenticate users on an included page on my website, but the problem is, I cant get it to work. view it included at http://members.lycos.co.uk/ajohnh/ (Source at http://members.lycos.co.uk/ajohnh/source/index.txt) the actual file: http://members.lycos.co.uk/ajohnh/templates/twoShea/

[PHP] User Authentication Problem

2002-08-03 Thread Tony Harrison
Hi, I need to authenticate users on an included page on my website, but the problem is, I cant get it to work. view it included at http://members.lycos.co.uk/ajohnh/ (Source at http://members.lycos.co.uk/ajohnh/source/index.txt) the actual file: http://members.lycos.co.uk/ajohnh/templates/twoShea/

[PHP] Linux PHP editor

2002-08-09 Thread JJ Harrison\\
I just switched over to Red Hat Linux from Win2k... Only to find my fav editor only works on windows systems... could someone suggest a good replacement? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Linux PHP editor

2002-08-09 Thread JJ Harrison\\
Thanks for all your responses... I will begin checking them out. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Jj Harrison\" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I just switched over to Red Hat Linux from Win2k

[PHP] Save ability... Duplicate DB entries

2002-08-10 Thread JJ Harrison
i have this code snippet: if(isset($_POST['save'])){ $query = 'INSERT INTO article_data VALUES (\'\', '.$_SESSION['uid'].', '.time().', \''.$_POST['title'].'\', \''.$_POST['description'].'\', '.$_POST['cat'].', \''.$_POST['text'].'\', 0)'; $result = mysql_query($query) or die("Query failed:

Re: [PHP] Save ability... Duplicate DB entries

2002-08-10 Thread JJ Harrison
I'll do that. When I load an article I supply the article's id. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- Please reply on the list/newsgroup unless the reply it OT. "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

[PHP] Re: cgi error

2002-08-11 Thread JJ Harrison
If U are using ISS the file doesn't exist. You need to check a box in the iss options somewhere and it will check for the file first. The PHP CGI is basicly handed a non-existant file. This means that php won't return anything which means ISS will return an error. -- JJ Harri

[PHP] Re: html parsing from html file through php

2002-08-14 Thread JJ Harrison
ll need to do an extra regular expression to get out of the head and perhaps put it into a file. If you don't need styling I would recomment parsing the document itself and removing all the class="" and style="" attributes -- JJ Harrison [EMAIL PROTECTED] www.tececo

[PHP] Find rows by 1st letter in MySQL

2002-08-18 Thread Tony Harrison
How would I go about selecting rows from a MySQL table where the first letter of a certain field is $letter ? -- - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Count number of rows in table.

2002-08-25 Thread Tony Harrison
And do I need to use any other functions like mysql_fetch_row() ? "Martín marqués" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > On Sáb 24 Ago 2002 11:19, Tony Harrison wrote: > > How would I count the number of rows in a mysql table with a WHERE

[PHP] MySQL PASSWORD() Question

2002-08-25 Thread Tony Harrison
If I insert a row's field's value using the PASSWORD() function, will I need to use it or another function to find that row using the same field? - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Re: if/else & mail() problem..

2002-08-25 Thread Tony Harrison
You need to give us the HTML for the form so we can comprehend the context of it all "Eriol" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've got the following bit of code for an upload/feedback form.. Upload isn't a > required field, but name, email and me

[PHP] setcookie() failure

2002-08-26 Thread Tony Harrison
Can anyone tell me why the following setcookie()s fail? - Tabzilla.com -- - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL PASSWORD() Question

2002-08-27 Thread Tony Harrison
cheers "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > >If I insert a row's field's value using the PASSWORD() function, will I need > >to use it or another function to find that row using the same field? > > You'll need to do this when somebody tries to log in la

[PHP] eregi_replace() problems

2002-08-29 Thread Tony Harrison
Can anyone tell me why my emoticons arent appearing? Please? Note: $message is a variable set by a web form. The field `pattern` is the string to search for, like ":-)", and `url` is the relative url to the emoticon. I just get the plain emoticon. Note: this bit is above the INSERT statement in t

[PHP] Re: PASSWORD()

2002-08-29 Thread Tony Harrison
I asked a similar question the other day, I was told to use the password function on the field name, not the value, i havent tested this and its a weird way to do things, and why cant both work? (if any) "Mike Tsapenko" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

[PHP] eregi_replace() problems

2002-08-30 Thread Tony Harrison
Can anyone tell me why my emoticons arent appearing? Please? Note: $message is a variable set by a form. The field `pattern` is the string to search for, like ":-)", and `url` is the relative url to the emoticon. I just get the plain text, no replacement emoticon. Note: this bit is above the INSE

Re: [PHP] UPDATE Query

2002-09-01 Thread Tony Harrison
What about multiple tables? Can that be done? "Mark Charette" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > No, only one db at a time may be updated. The "where" clauses can contain > multiple db. > > -Original Message- > From: Sascha Braun [mailto:[

[PHP] FORUM CODE

2002-09-03 Thread Tony Harrison
Hi, im wondering how in popular forum software, those 'BB codes' are done in PHP, like, [B] and stuff. I just cant figure it out. - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] Help, Convincing upgrade of PHP

2002-09-04 Thread JJ Harrison
n of PHP. TO me this suggests that he doesn't know how to compile PHP for Mac OS X server. Does anyone know of some good instructions? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- Please reply on the list/newsgroup unless the reply it OT. -- PHP General Mailing List (http://www.php.

[PHP] Multiple Domains in cookie?

2002-09-28 Thread Tony Harrison
Is it possible to specify more than 1 domain in a cookie? - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: New Newsgroups

2002-06-28 Thread JJ Harrison
I am on the newsgroups. visit PHP.net look a little bit and you will find the link to the news server. "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone else out there use Outlook Express to get the posts from this > newsgroup? > Yesterday a

[PHP] Incrementing a table cell

2002-06-28 Thread JJ Harrison
what is the best way to increment a mySQL table cell? is there a increment function or do I need to increment it in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Incrementing a table cell

2002-06-28 Thread JJ Harrison
Thanks "Jj Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > what is the best way to increment a mySQL table cell? > > is there a increment function or do I need to increment it in php? > > > > -- PHP

[PHP] Why isn't this working?

2002-06-28 Thread JJ Harrison
Here is my code: $query = "UPDATE poll_options SET votes + 1"; mysql_query($query); All where conditions have were removed to try and fix the problem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Getting IP from behind proxies

2002-06-29 Thread JJ Harrison
I want to check to see if people have voted yet for a poll. How can I get the ip of a user from both behind a proxy and the proxies ip? is this simple? will i have trouble with firewalls etc? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Getting IP from behind proxies

2002-06-29 Thread JJ Harrison
gt;news:[EMAIL PROTECTED]... > You can only get it if the proxy provides you with this data. Most don't, > so this is not a reliable approach. > > -Rasmus > > On Sat, 29 Jun 2002, JJ Harrison wrote: > > > I want to check to see if people have voted yet for a poll. > &g

Re: [PHP] Getting IP from behind proxies

2002-06-29 Thread JJ Harrison
what esle could i use? "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You can only get it if the proxy provides you with this data. Most don't, > so this is not a reliable approach. > > -Rasmus &

[PHP] ZIP combinaton in PHP?

2002-06-30 Thread Tony Harrison
I realise its a longshot but is it possible to use PHP (or any other web-based languages) to combine multiple ZIP files into a single ZIP file? and any scripts i can download to do it. Any help with this is most appreciated. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Problem with menu

2002-07-01 Thread JJ Harrison
I have a table with id, pid(parent), title and page_name(url) fields. The vars provided to the script are the current page's title, id and pid(parent) When I am on the parent page I get this(Which is what I want): [ Chronological History ][ Website Chronological History ] When I am in the Child

[PHP] Re: Problem with menu

2002-07-02 Thread JJ Harrison
Thanks for that info. I am still a bit new to programming/PHP to fully grasp that but I am sure I will in time. *anyway* when I echo menu($id) I get the current page's title. How do I print it's peers and it's single parent? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com P.

[PHP] Have you seen this host?

2002-07-02 Thread Tony Harrison
Hi, if you can find a web host that offers ALL these services, i will eat my hat on my webcam to the whole club: Usenet Newsgroup. at least 200MB space Perl/CGI support (optional) PHP - note: must have GD library installed! MySQL SHOUTcast web radio Reseller account option at least 300MB per mont

[PHP] Re: Have you seen this host?

2002-07-02 Thread Tony Harrison
ewsgroup for PHP discussion. This is not a PHP discussion, so it > is a spam mail. Please refrain from using it. > > "Tony Harrison" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, if you can find a web host th

[PHP] Simple Example of Passing on a file through a PHP script

2002-07-03 Thread JJ Harrison
I want to show info when my docs are viewed though my stats program. I have decieded the best way would be to put the info into a DB through php file then output the PDF, Excel, Zip or Powerpoint file. Only trouble is I have no Idea how to do this -- JJ Harrison [EMAIL PROTECTED

[PHP] Re: Problem with menu

2002-07-03 Thread JJ Harrison
Thx. I a bit of a n00b so don't always understand. I is a lot clearer now thank you -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:20020703212954.BFUU903.sccrmhc03.attbi.com@[192.168.1.103]... > >when

[PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread JJ Harrison
d about 50 downloads and I want info about who is viewing them also. JJ Harrison [EMAIL PROTECTED] www.tececo.com "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:20020703213010.BFZW903.sccrmhc03.attbi.com@[192.168.1.103]... > >I want to show info when my docs are viewed

Re: [PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread JJ Harrison
to re-direct to the right file(Rather than outputting it through a script)? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 04 July 2002 10:46, JJ Harrison wr

Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?

2002-07-05 Thread JJ Harrison
Because! Also the audiance that will probably see the site will highly likely not have the knowledge or intention to change the user agent var. So my Q remains. To add to my original Q is there seperate vars for browser and OS? JJ Harrison [EMAIL PROTECTED] www.tececo.com "Alberto

Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?

2002-07-05 Thread JJ Harrison
After A bit of research I wrote this(File is also attached in case e-mail programs/servers interfere with formatting): I seems to work quite well. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com P.S. My proxy seems to interfere with the Weberdev site. If Boaz Yahav <[EMAIL PROTECTED]&

[PHP] I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread JJ Harrison
Attached is the file. It doesn't give any parse errors or anything. Just nothing is inserted into the DB. What am I doing? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread JJ Harrison
Here it is then: JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread JJ Harrison
OK, I have magic_quotes on though so useless lecture thanks for the advice -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sat, 6 Jul 2002, JJ Harrison wrote

Re: Re[2]: [PHP] Re: I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread JJ Harrison
I followed that part. I just have magic_quotes on so I don't need to use addslashes/stripslashes -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Julie Meloni" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > JH> I

[PHP] Figuring Out the Best Day in stats program

2002-07-06 Thread JJ Harrison
the DB. then use an if statement to replace two variables(UNIX timestamp and number of visitors) if the value returned is higher. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Figuring Out the Best Day in stats program

2002-07-06 Thread JJ Harrison
rder by monthly_view desc limit 1' at line 1 I don't know any advanced SQL so can't really debug it. Could someone tell me what I am doing wrong please? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAI

[PHP] Problem with SQL query

2002-07-07 Thread JJ Harrison
is. I am using mySQL. The person who gave me this code appeared to be using postgreSQL if that makes any differance -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Splitting up a timestamp?

2002-07-07 Thread Tony Harrison
Hi. I please need some help with converting a MySQL timestamp into something easily read. Any help at all is most appreciated, thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with SQL query

2002-07-07 Thread JJ Harrison
Thanks for giving me something to look up :) -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Alberto Serra" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ðÒÉ×ÅÔ! > > I forgot to add: > > SELECT > extract(

Re: [PHP] Problem with SQL query

2002-07-07 Thread JJ Harrison
No matter what I try I still seem to get the error message. The coloumn that contains the dates has unix timestamps. I think this is why it is not working. I will research it further. If you can be of any help please tell me. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Alberto

Re: [PHP] Problem with SQL query

2002-07-07 Thread JJ Harrison
I have fixed it now don't worry! -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Alberto Serra" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ðÒÉ×ÅÔ! > > I forgot to add: > > SELECT > extract('yea

[PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread JJ Harrison
g so that I can learn from it? Thanks in advance -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread JJ Harrison
a stats program that I am writting that returns the number of hits for each page. Instead of looping a query I decieded to try and join the two tables to make it more efficiant. I am trying to get it to work with hits now than make it sessions later. I hope this is enough info and thank you for your

Re: [PHP] Grr SQL syntax error silghtly OT

2002-07-09 Thread JJ Harrison
ta.id = tececo_stats.page_id > GROUP BY tececo_stats.page_id > ORDER BY num_hits DESC > > /Joakim > > > -Original Message- > > From: JJ Harrison [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 09, 2002 11:07 AM > > To: [EMAIL PROTECTED] > > Subjec

[PHP] Bug in SQL can you help?

2002-07-09 Thread JJ Harrison
oblem is that is counts the number of rows in the whole thing not the echoed row. How can I get it count the best days only? -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bug in SQL can you help?

2002-07-09 Thread JJ Harrison
Thanks "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tuesday 09 July 2002 18:32, JJ Harrison wrote: > > Here is my SQL(used in a PHP script so this isn't ot) > > Aside from the fact that this

[PHP] Executing Script through image

2002-07-09 Thread JJ Harrison
g the entire script into a file and then using within the page. The problem is that I don't know how to output the image with PHP. The image would not be dynamic just a file on the server. I would appreciate peoples comments or other suggestions JJ Harrison [EMAIL PROTECTED] www.

[PHP] Re: Executing Script through image

2002-07-09 Thread JJ Harrison
It is a couple of seconds slow. Treating the file as an image means that the rest of the page can still load while it is doing the reverse DNS lookup and executing the script. Anyway I have got the answer now -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Richard Lynch" <[EM

[PHP] Execute script then output image.

2002-07-11 Thread JJ Harrison
Sorry, I lost the email that contained the info and I can't find it in the archives. How do I output a static image through a php script? it had something to do with headers but I can't remember exactly what. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Ma

Re: [PHP] Execute script then output image.

2002-07-11 Thread JJ Harrison
There was a much simpler way. It just said the location of the file. I could use your method but the other one was much simpler. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTEC

Re: [PHP] Execute script then output image.

2002-07-11 Thread JJ Harrison
I found it. I used header("Location: http://www.yoursite.com/images/stat.gif";); -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 11 Jul 2002 22:01:03

[PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
at tinyint(3) NOT NULL default '0', file_size int(11) unsigned NOT NULL default '0', date int(11) unsigned NOT NULL default '0', PRIMARY KEY (id) ) TYPE=MyISAM; the row plevel is either 0 or 1. why won't this script echo Yes? The reason that the plevel is

Re: [PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
27;plevel'] is NEVER == '0' It is probably == 0 though. (note > the missing quotes. ) :) > > HTH, > =C= > * > * Cal Evans > * The Virtual CIO > * http://www.calevans.com > * > > > -Original Message- > From: JJ Harrison [mailto:[EMAIL PROTE

Re: [PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
The value of plevel is "0" according to var_dump. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Cal Evans" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Have you done a var_dump on $row to make sure that pleve

Re: [PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
Still doesn't work. I'll have to think about it. I may raise all the values in the plevel colomn by one. It may work then. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Cal Evans" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

Re: [PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
It *still* didn't work. I will increment all table cells using a single update query to do them all. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Jj Harrison" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Still does

  1   2   >