[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] 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:

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:[EMAIL

[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

[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

[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

[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 later:

[PHP] setcookie() failure

2002-08-26 Thread Tony Harrison
Can anyone tell me why the following setcookie()s fail? ?php require(settings.php); require(common.php); if (!($link = mysql_connect($dbhost, $dbuser, $dbpass))) { ReportError(An error was encountered while trying to establish a connection to the mySQL server, using function mysql_connect(),

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 clause? select count(*) from

[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

[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 message

[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:

[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:

[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:

[PHP] Re: ARRRRGGGGHHHH! Weird Problems!

2002-08-01 Thread Tony Harrison
; } else { $rowcolor= #FF; $color --; } ... } Tony Harrison [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... OK, im having some minor problems with my site. In artist.php (http://members.lycos.co.uk/ajohnh/artist.php - Source at: http://members.ly

[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 [EMAIL PROTECTED] wrote in message

[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

[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 page?

[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: 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 =

[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] 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

[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 the

[PHP] Re: Date() Problem

2002-07-27 Thread Tony Harrison
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 PROTECTED]">news:[EMAIL PROTECTED]... Yeh, ive

[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

[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

[PHP] Re: Have you seen this host?

2002-07-02 Thread Tony Harrison
scussion. 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 that offers ALL these services, i will eat my hat on my webcam t

[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