Re: [PHP] Newsletter kindaa thing

2001-03-20 Thread John LYC
while($r=mysql_fetch_array($result) $to .=$r['email'].","; mail($to,); Dhaval Desai wrote: Hi@ I have a database in whih I have a lot of emails. What I want to do is basically a small newsletter kindaa thing which is to be mailed to all the emails which I am goingto pick from

Re: [PHP] get name of file

2001-03-19 Thread John LYC
$PHP_SELF returns the file name.. go to php website manual and serach for it.. john Matthew Delmarter wrote: How do I return the name of a file without any extensions or path info. Eg how do I return "about" from "http://www.domainz.com/about.htm". Regards, Matthew Delmarter -- PHP

Re: [PHP] Good Free PHP Editor?

2001-03-11 Thread John LYC
http://www.ultraedit.com not free.. but worth the nominal fee Andrew Halliday wrote: Does anyone know of a good PHP enabled editor that fits the following criteria:? (in order of importance) - Is free - Runs under Windows - Has colors (syntax highlighting) - Can edit multiple files

[PHP] simple OO question

2001-03-04 Thread John LYC
can i do this..? //declaring class class myclass{ //declaring properties ... //declaring methods.. function mymethod(){ //can i declared variable in method? var $myvar; ... //do something }//end of mymethod /// if yes, do i access myvar like this. $item = new myclass;

Re: [PHP] simple OO question

2001-03-04 Thread John LYC
--- Original Message ----- From: "John LYC" [EMAIL PROTECTED] To: "PHP List" [EMAIL PROTECTED] Sent: Monday, March 05, 2001 1:36 PM Subject: [PHP] simple OO question can i do this..? //declaring class class myclass{ //declaring properties ... /

Re: [PHP] Re : [PHP] NETSCAPE screws QUERY STRING

2001-03-04 Thread John LYC
try this printf(" a href=\"pro_page1.php3?title='%s\" ", urlencode($myrow[title])') john "Thomas Edison Jr." wrote: The urlencode() is working fine with an echo statement normal query string. But it's NOT working with complex query string in printf() including $myrow[something] being

[PHP] image issues

2001-03-02 Thread John LYC
GIF89a –QŠM=qaš–Šuuš}- †–meYž†‚yiqmYeyuqAyŽŽy5–M5–Žq†žŽm=iU$–E bXDWbh7‘?€“€“!` *.XŽ?X›bXM!, 18p \?Š p?A€”pA 4dX??$(P@?— (A› ˜@?J ?—3/?@(?,pA€€‚J›Bx‘@3? U*?Y z1‚‚ ! \ @@; i have the above in my database,,... it is a gif.. that i

[PHP] images problem

2001-03-01 Thread John LYC
i uses the following method to display an image draw from database.. set_magic_quotes_runtime(0); $query = "select diagram from $QuestTab where qns_id = '$QnsID'"; $result = @MYSQL_QUERY($query); $data = @MYSQL_RESULT($result,0,

Re: [PHP] image file prob

2001-02-28 Thread John LYC
thanks for the info... well. what i did was to fread the files and store them using sessions variables. at the end of the process. .. i do a walk thur the array and insert them into the DB... john John LYC wrote: hi.. i have a form that allow users to upload several image files

Re: [PHP] logout

2001-02-27 Thread John LYC
if you are using session session_destroy might do the trick... "Jacky@lilst" wrote: Sorry, it was my mistake. There is session used to store userID and password after the successful login. I don't under stand what you mean about to clean up variables, how? Jack [EMAIL PROTECTED]

Re: [PHP] logout

2001-02-27 Thread John LYC
for cookie... just setcookie() of the same cookiename to null; "Jacky@lilst" wrote: I have php site that user is required to login, but I don't have logout function yet. Is there anyone know the most practical way of logout method that people use nowadays?, in php I mean. There is no

[PHP] multiple file upload..

2001-02-26 Thread John LYC
i have a situation. i hope im clear abt this. i need to post multiple set of data elements into php. each set consists of data elements of text, textarea, radio buttons, checkboxes and even a file(image). most fields are optional. all sets are not subset of each other but belongs to the same

[PHP] image file prob

2001-02-26 Thread John LYC
hi.. i have a form that allow users to upload several image files. every time they submit, i do fread them and assign them to an array... this array will be passed on until user confirmation.. then i insert into database as blob type //freed image file and assign to array. $diagram[$ind] =

[PHP] how to keep variable alive thur pages?

2001-02-26 Thread John LYC
hi all, how do i keep an array of variable "alive" thru different pages... array is assigned with value at say index.php... user will move from tat page to say index2... index3... index4.php.. in index4.php i can still access the array... thanks.. -- PHP General Mailing List

[PHP] simple session question

2001-02-26 Thread John LYC
does session_register() "over-write existing variable of the same name...? for example.. //count already registered and holds value 3. session_register("count"); print $count; //output null; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Escape %

2001-02-25 Thread John LYC
there is addslashes(); http://www.php.net/manual/en/function.addslashes.php john [EMAIL PROTECTED] wrote: Hi, Anyone know the best method to escape the % sign in PHP? I`ve checked the manual and devshed and didn`t come across much, is there a command like addslashes() or would I have

[PHP] limitation of file upload??

2001-02-13 Thread John LYC
is there limitations on file upload.. such as file size when using input type=file??? thanks -- 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

Re: [PHP] limitation of file upload??

2001-02-13 Thread John LYC
submit" VALUE="Send File" /FORM consult the following section of the php manual for more info http://www.php.net/manual/en/features.file-upload.php hope that helps regards Ankur VermaHCL TechnologiesA1CD, Sec -16Noida, UPIndia - Original Message - From: "John LYC

Re: [PHP] limitation of file upload??

2001-02-13 Thread John LYC
INPUT TYPE="submit" VALUE="Send File" /FORM consult the following section of the php manual for more info http://www.php.net/manual/en/features.file-upload.php hope that helps regards Ankur VermaHCL TechnologiesA1CD, Sec -16Noida, UPIndia - Original Message - Fro

[PHP] checking for presnet file name

2001-02-11 Thread John LYC
is there a pre-defined variable that return present php file name... for example... url : www.domain.com/mypage.php $var == "mypage"; thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] SQL question

2001-01-30 Thread John LYC
hi all, does mysql support this? select * from tablename where id in (select id from table2 where cond) thanks -- 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,

[PHP] can .inc run php script?

2001-01-29 Thread John LYC
hi all, can .inc file run scripts... example... //config.inc function watever() { //do something $var = something; return $var; } thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] can .inc run php script?

2001-01-29 Thread John LYC
THANKS EVERYONE!!!... John LYC wrote: hi all, can .inc file run scripts... example... //config.inc function watever() { //do something $var = something; return $var; } thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL