RE: [PHP] Ordering a query

2001-09-08 Thread Matthew Loff
You could insert a ternary operation... ($order?$order:"defaultfield") Is the same as: if($order) echo $order; else echo "defaultfield"; ... $result = mysql_query("SELECT articles.title,vote.votes,vote.total,articles.date,staff.firstname,artic les.content,articles.id FROM st

[PHP] manage a mail archive

2001-09-08 Thread crorepati
Hello, We are using ezmlm mailing list on our server. We want to make the mailing list archive available on our website. How can we do this ? any help will be highly appreciable. thanks cp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] [-= Your Vacation Winning =-]

2001-09-08 Thread Tessy103
You have been specially selected to qualify for the following: Premium Vacation Package and Pentium PC Giveaway To review the details of the please click on the link with the confirmation number below: http://wintrip.chn.net or http://wintrip.my163.com Confirmation Number#Lh340 Please confirm

[PHP] a general perl like pares of the query string...

2001-09-08 Thread Aaron Moore
Ok if you have a query string from like file.php?bob=manager&phil=employ how do i split the bob=manager and phil=employ dynamically? because i may have 2 or 3 elements and i just want to sepearte them all and access them via an array such as if ($var["bob"] = "manager") etc so a loop that w

[PHP] include problem

2001-09-08 Thread mail
Hi I have a little Problem with include.I want to include a txt file in every php file on the server but some php files are in other directories and dont include this txt file. Example : Url for the txt file : www.domain.com/include/incl.txt So www.domain.com/index2.php includes the txt file

[PHP] optimize question

2001-09-08 Thread Michele Schiavo
Is most performant for out a sting use echo or print ? and if I have more print command ex: print "aaa", print ""; Is best use a single command with a very long string ? Thank's michele Schiavo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

[PHP] creating ZIP file from mySQL content?

2001-09-08 Thread BRACK
I have a site where ppl can upload their text-based ideas in real time, so that I have new records in db every day. When I did uploading by hands and had over 200 files on that site I distributed all site content in downloadable for of zipped win-help formate. Well, I don't think that I can do

[PHP] session_name causes break

2001-09-08 Thread Christian Haines
hi all, has anyone else had problems with specifying session_name causing data not being input into session variables? For example: session_name("test"); session_start(); session_register("count"); count++; causes count not to increment whereas session_start(); session_register("count"); coun

[PHP] Re: a general perl like pares of the query string...

2001-09-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aaron Moore) wrote: > Ok if you have a query string from like file.php?bob=manager&phil=employ > > how do i split the bob=manager and phil=employ dynamically? > > because i may have 2 or 3 elements and i just want to sepearte them all and > ac

Re: [PHP] manage a mail archive

2001-09-08 Thread B. van Ouwerkerk
You can use MySQL. Take a look at the ezmlm homepage, and check the ezmlm mailinglist archive.. Pulling data out of a MySQL table is easy.. if you don't know how, just look at some tutorials (www.devshed.com) more links can be found at www.php.net Bye, B. At 20:28 8-9-01 +, crorepati

[PHP] cURL support

2001-09-08 Thread Daniel Baldoni
G'day folks, I have a site just about ready to go on-line. All my local testing has worked like a dream - but the cURL support on the hosting provider is partially broken. Actually using curl_init()...curl_exec() etc. on my box to contact remote URIs (both over HTTP and HTTPS) has worked from d

[PHP] Problem with Encoding

2001-09-08 Thread Harry Lau
I want to include a string into a PNG by ImageTTFText(), where some of the chars are encoded in BIG5. I have found the revalent TTF for BIG5. The output really gives some Traditional Chinese chars, but the chars are not those I want. (I think this problem also exist in Shift-JIS encoding.) Would

[PHP] error with socket

2001-09-08 Thread sagar
hi, I'm using win98/apache/php4 But it's giving an error saying undefined function when i use socket() function. On advice of some one i've also tried socket_create(). but in vain. I think that i dont have the socket libs in my php. where can i get them. do u think that i'm correct ? pl help as

[PHP] Re: manage a mail archive

2001-09-08 Thread crorepati
hello How do I retrieve the messages from the list archive and how do i store the data in text files/database . Pl. help me out. thanks cp B. van Ouwerkerk writes: > You can use MySQL. Take a look at the ezmlm homepage, and check the ezmlm > mailinglist archive.. > > Pulling data o

[PHP] Re: include problem

2001-09-08 Thread Gaylen Fraley
Provide an absolute path to the file, like /path/path1/incl.txt instead of a URL. <[EMAIL PROTECTED]> wrote in message 003701c13854$50ecf780$0100a8c0@pentium333">news:003701c13854$50ecf780$0100a8c0@pentium333... Hi I have a little Problem with include.I want to include a txt file in every php f

[PHP] Smarty + JavaScript

2001-09-08 Thread Alexander Deruwe
Hey all, If anyone else out there is using Smarty as templating engine, how do you put JavaScript into the template? It seems to barf on the opening and closing braces of every JS function, rendering JS totally useless. I must be missing something. ad. -- PHP General Mailing List (http://ww

Re: [PHP] Re: manage a mail archive

2001-09-08 Thread B. van Ouwerkerk
I pointed you to sources where you can find the information you need. I don't run ezmlm with mysql support so I would need to look at the docs too. I'm very sorry but I don't have enough time to do the dirty work for you. I'm not even sure about how far ezmlm and MySQL work together.. A friend

[PHP] Re: Smarty + JavaScript

2001-09-08 Thread John Lim
>From the smarty manual {literal}