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 the first. I
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
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
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 Harrison
[EMAIL
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 written some programs in c
are
exceptable).
--
---
JJ Harrison
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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.net/)
To unsubscribe
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.com
--
Please reply on the list/newsgroup unless the reply it OT
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:
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]">news:[EMAIL PROTECTED]...
Hi JJ:
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...
Only to find my fav edi
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
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">news:3D44690D.25129.D620734@localhost...
I am
/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]
www.tececo.com
Wee
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">news:009101c236bc$
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 message
[EMAIL PROTECTED]">news:[EMAIL P
research the php function htmlspecialchars().
I replaces with lt; and with gt; etc.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
I often get confused with lt; and gt; so they may be in the wrong order
but I am sure you get the idea.
ØYstein HåLand [EMAIL PROTECTED] wrote in message
']).'
'.$row['username'].\nbr; // Parse error here - line 24
echo $row['message'].\nbr;
}
}
I am getting really frustrated. I know I really shouldn't use the mailing
list for debugging. My editors not showing anything obvious with syntax
highlighting.
--
JJ Harrison
[EMAIL PROTECTED
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 last line of yo
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 PROTECTED]">new
text etc but I don't know how
to remove 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
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 around on google/php.net to try
to C:\WINDOWS\
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]">new
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 23:33, Tech Support wrote
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 have optional values in a PHP
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 the built in ones have optional parameters.
--
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
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 PROTECTED] wrote in message
news:[EMAIL PROTECTED
That answers my question.
Thanks,
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Tim Luoma [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
FWIW, a user note at http://www.php.net/manual/en/function.header.php
says :
There is this nasty bug
$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo 'trtd';
do_hr();
echo 'a href=full_article.php?aid='.$row['aid'].'';
do_h($row['name'].' - '.date('jS-M-Y',$row['time']), 3, 'n');
echo '/a';
echo '/td/trtrtd'.$row['description'].\n;
echo '/td/tr';
}
}
?
Jj
'])
if($uid != 0)
echo $uid);
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thx
Jason Wong [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Thursday 18 July 2002 19:32, JJ Harrison wrote:
if I do this:
if(validate($_POST['password'], $_POST['username']) != 0)
echo validate($_POST['password'], $_POST['
Does anyone know a good PHP-based Formmail Replacement(From matt's script
archive)?
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
) 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 set in numbers is because I may add higher
ones later.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
--
PHP General Mailing List
h. (note
the missing quotes. ) :)
HTH,
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-Original Message-
From: JJ Harrison [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How come this will echo No or nothing?
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 plevel exists?
=C=
*
* Cal Evans
* The Vir
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 PROTECTED]...
off the top of my h
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 doesn't work.
I'll have to thi
I found figured it out.
I am a n00b BTW.
the snippet was caught inside anouther if statment so it was only displaying
if the file was under a Meg in size!
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Jj Harrison [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL P
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 +1000, you wrote:
You need t
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 Mailing List
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 PROTECTED]...
On Thu, 11 Jul
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 [EMAIL PROTECTED
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
and thank you for your help.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Joakim Andersson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I assume that 2count should really be count and 2 is just the line-number
you added in this post...
tececo_sta
d
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]
Subject: Re: [PHP] Grr SQL syntax error silghtly OT
table structure for tececo stats(Stores informati
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
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 has _nothing_ to do with php, you would most
li
the entire script into a file and
then using img src=stats.php 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
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
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('year', time),
extract('month', time),
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 Serra
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('year', time),
extract('month', time),
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
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:[EMAIL PROTECTED]...
I have been going fine in a Web Stats program until now.
How can I figure out which
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 Serra [EMAIL
.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
P.S. My proxy seems to interfere with the Weberdev site. If Boaz Yahav
[EMAIL PROTECTED] or someone else wants to post this to Weberdev or
any other similar site as long as it remains free/open source etc.
Jj Harrison [EMAIL PROTECTED] wrote in message
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
';
tececo_stat_cookie();
}
$query = INSERT INTO tececo_stats values ('', $id, $visited, $time,
$remote_dns, $remote_ip, $referer, $browser, $system);
mysql_query($query);
?
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
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:
$query = INSERT INTO tece
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 have magic_quotes on though so useless
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
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 I echo menu($id) I get the current
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 though my stats program. I
have
decieded
in excel not IE. Sometimes PDFs open in IE sometimes the
don't. What is wrong?
Also would I be better of collecting my stats then using a header 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
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.S. I originally
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
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
...
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.
How can I get the ip of a user from both behind a proxy and the pr
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
On Sat, 29 Jun 2002, JJ Harrison wrote:
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 dialog
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
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 General Mailing List (http://www.php.net/)
To uns
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
76 matches
Mail list logo