Re: [PHP-WIN] Re: Hi,

2008-07-08 Thread Aleksandar Vojnovic
Wow! I'll take 12 of them!! Do we get a discount on mass shipment? -me Bill Bolte wrote: lol -Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 3:53 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-windows@lists.php.net Subject: [PHP-WIN] R

Re: [PHP-WIN] Help with if

2007-08-06 Thread Aleksandar Vojnovic
Are you sure you want to check in the IF sentence also for the type? If not, then try using != or == in the if chunk. Is the "Unregistered" a define/constant? -Aleksandar Gustav Wiberg wrote: Hi! I saw a several things that other people has pointed out, but there is another thi

Re: [PHP-WIN] Template

2007-08-01 Thread Aleksandar Vojnovic
Template? As in html templates that are used in combination with PHP to generate a page? - Aleksander Quoting Stut <[EMAIL PROTECTED]>: Cédric Joubert wrote: wich template do you use for a little php application ? Template? What exactly do you mean by that? -Stut -- http://stut.net/ --

Re: [PHP-WIN] Code sample - Small Help

2007-08-01 Thread Aleksandar Vojnovic
$path = ''; even shorter :) - Aleksander Mark Abrams wrote: if (var) {$path='/image/a.jpg';}else{$path='/image/b.jpg';} ?> > ""Stephen"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I'm kind of trying to do this quickly. Can anyone give me some PHP code that will let

Re: [PHP-WIN] Re: Small Help

2007-08-01 Thread Aleksandar Vojnovic
Sorry I don't understand what your request is about? - Aleksander Gustav Wiberg wrote: Hi! If you need help in programming an application from scratch this might not be the list for you :-) Best regards /Gustav Wiberg -Original Message- From: Stephen [mailto:[EMAIL PROTECTED] S

Re: [PHP-WIN] ORDER BY is not sorting

2007-08-01 Thread Aleksandar Vojnovic
What kind of field is the keyID? is it int, char, varchar? - Aleksander Mark Abrams wrote: Is mysql_fetch_array the proper function to access sorted data?The problem is consistent on my test server and my ISPs mySQL DB. rowID is the primary key. Do I need to have an index attribute on a

Re: [PHP-WIN] Re: php-windows请查收!

2007-06-15 Thread Aleksandar Vojnovic
:) Gustav Wiberg wrote: *lol* -Original Message- From: Darren Whitlen [mailto:[EMAIL PROTECTED] Sent: Friday, June 15, 2007 2:00 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Re: php-windows请查收� I completely agree. 安规系统工程实践 wrote: 若您不需�

Re: [PHP-WIN] Retrieve all SESSION variables.

2007-05-27 Thread Aleksandar Vojnovic
I'm sure if you explained to us, what are your trying to accomplish, we might find a more elegant solution then reading the raw session data from all users. -AV Alf Stockton wrote: Stut wrote: Alf Stockton wrote: Is there a method whereby one can retrieve all php SESSION variables on a Wind

Re: [PHP-WIN] PHP generated Excel Spreadsheets

2007-05-22 Thread Aleksandar Vojnovic
There is another simple "crude" way of accomplishing the same task which works for me. Example: column 1column 2 '; header('Content-type: application/vnd.ms-excel'); header('Content-Disposition: attachment; filename="export.xls"'); header('Cache-Control: max-age=5, must-revalidate'); header('

Re: [PHP-WIN] Textarea and mysql

2007-05-18 Thread Aleksandar Vojnovic
$textareaSubmit = $_POST['textAreaValue']; //First of all strip all the returns \r $textareaSubmit = str_replace("\r", "",$textareaSubmit); //Explode by new line $inserts = explode("\n", $textareaSubmit); //check if its array if(is_array($inserts)){ //run foreach on array foreach($inserts A

Re: [PHP-WIN] Dynamically update mysql field

2007-05-09 Thread Aleksandar Vojnovic
t it to mysql to update the original database. data form mysql :TEXES data form mysql :405-6364 * * * ** * * * * * * * * *<----End code --->* * * * /Aleksandar Vojnovic <[EMAIL PROTECTED]>/* wrote: Of course it can be done, but please be

Re: [PHP-WIN] Dynamically update mysql field

2007-05-09 Thread Aleksandar Vojnovic
Of course it can be done, but please be more specific about what you wish to achieve. Aleksander sam rumaizan wrote: Dynamically update mysql field I have a function that will populate the table cells (TD) with data (information) from mysql database. What I need to do is to allow the

Re: [PHP-WIN] Reload/refresh web page

2007-05-04 Thread Aleksandar Vojnovic
If you are allready using ajax, then don't request the page with get paramater but using POST. The script you are calling must have headers set to expire immidiatly ala Bill Bolte wrote: Aaah, so it's a caching issue then. Is that particular content using PHP's caching mechanism or is it sim

Re: [PHP-WIN] PHP & Javascript

2007-04-18 Thread Aleksandar Vojnovic
And don't forget to add $thevariablecontainingthenumbertwo = intval($thevariablecontainingthenumbertwo); or stripslashes Mikael Grön wrote: Google! is your friend, but I acutally enjoy typing. :) Do something like this: window.location="another.php?UID=$the

Re: [PHP-WIN] mail() I get crazy from this...

yup, from his very first post... So i suppose that he is collecting his mail or from netscape browser, or from netscape mail program with seted up smtp and pop from hotmail : ) - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: "'Ale

Re: [PHP-WIN] generating an automated mail .......

Mail() should be just fine... $subject = "Confirmation... sth"; $body = "Your username is: $username. Your pass is: $pass"; mail($to, $subject, $body); Cheers, Alex - Original Message - From: "toby z" <[EMAIL PROTECTED]> To: "php hlp list" <[EMAIL PROTECTED]> Sent: Saturday, August 31

Re: [PHP-WIN] Is there a PHP-WIN FAQ?

Well, I think that in every mail next to unsubsribe info should be also added where to fin FAQ... : ) Cheers, Alex - Original Message - From: "Ross Fleming" <[EMAIL PROTECTED]> To: "PHP Windows mailing list" <[EMAIL PROTECTED]> Sent: Wednesday, August 28, 2002 5:02 PM Subject: [PHP-WIN]

Re: [PHP-WIN] mail() I get crazy from this...

the best thing to do then is to install your own mail server. There plenty of them on the markt. Most of them come with 15-30 day free trial, so you don't have to spend money on sth you don't like... Alex - Original Message - From: "Peter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [PHP-WIN] mail() I get crazy from this...

No, there is always an solution : ) You could apply for the account at some ISP so that you could use their mail services. Or, check on the web for mail servers and install one. I have also XP with PHP/MySQL and also my own DNS and MAIL server... Ans as you can read my mail know, it seems it is

Re: [PHP-WIN] Capturing IP Address

$address = server["remote_addr"] and then just pass the address to your DB - Original Message - From: "Richard Black" <[EMAIL PROTECTED]> To: "'James Meers'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, August 28, 2002 2:13 PM Subject: RE: [PHP-WIN] Capturing IP Address >

Re: [PHP-WIN] mail() I get crazy from this...

OK, let me first explain how smtp works (as Aerosmtih would say: you have to learn to crawl, before you learn to walk...): when you compose your message in PHP it is beeing passed to the SMTP server that is defined in php.ini. SMTP shall then pass the message to the recepient. As far as I unders

Re: [PHP-WIN] mail() does not work. Help please...

SMTP and POP servers are used to send and receive mails. In most of the cases, people use SMTP and POP for mail. As I said before, you can use smtp from your provider, or install you own mail server, which will then give you your own SMTP and POP servers. so in php.ini you should then type in you

Re: [PHP-WIN] mail() does not work. Help please...

Hi, you said that you don't have a provider, so I suppose that you do not have any smtp server you could use... You have two options, register with some provider so that you could use their SMTP server (smtp server sends mail). Or, install your own mail server... Cheers, Alex - Original M

RE: [PHP-WIN] Sendmail.php

check this, there's quite a long list of contributions and from each one you can get some usefull info... http://www.php.net/manual/en/function.mail.php Regards, Alex > >I know only $subject, $redirect, $mailto (who gets the mail), > >The other variables (Example: $mailbody, $sender, or $somet

RE: [PHP-WIN] mail() problem

Try to put SMTP from your ISP, like: smtp.isp.com in the php.ini and try then... I run Win XP with PHP and it works OK! Good luck Alex >- Original Message - >From: "Tomator" <[EMAIL PROTECTED]> >Date: Friday, May 10, 2002 1:52 pm >Subject: [PHP-WIN] mail() problem > >> When I try to us

Re: [PHP-WIN] Re: Parse error?!

Sure...   this is it:   if ($bvorm == "anders" && $bedrijfsvorm_anders == "leeg"){    echo "Opgegeven bedrijfsvorm is niet juist. Wilt u dit controleren en opnieuw aanvragen.";    exit;}   $to  = "[EMAIL PROTECTED]" . ", " ;  $

[PHP-WIN] Parse error?!

Hi all...   This is my first posting, so if question has been already asked (and answerd) my apologise : )   OK, here it goes. I had Apache on Win XP. It all worked fine till some time ago... I decided to try some other web servers and now I'm