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 thing... You ar

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