[PHP] Ambiguous?

2013-08-09 Thread Karl-Arne Gjersøyen
1) query foreach($varenr_inn_pa_lager as $vnr){ include('../../tilkobling.php'); $sql = "SELECT * FROM exan,dynamit WHERE varenr = '$vnr' LIMIT 1"; $resultat = mysql_query($sql, $tilkobling) or die(mysql_error()); 2) Result: Column 'varenr' in where clause is am

[PHP] List problem again...

2013-08-09 Thread Karl-Arne Gjersøyen
In my HTML5/PHP form I have this two rows.. 0082Exan ELEXE25NO200 0081Dynamit - papirpatron - 22x180EDY22X180K100 Then I have this in PHP source to handle it... $antall_varenr = count($varenr_in

Re: [PHP] Re: Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
2013/8/8 Jim Giner > On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote: > >> 2013/8/8 Jim Giner >> >> On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: >>> >>> 2013/8/8 Jim Giner >>>> >>>> On 8/8/2013 1:32 PM, Karl-Arne

Re: [PHP] Re: Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
2013/8/8 Jim Giner > On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: > >> 2013/8/8 Jim Giner >> >> On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: >>> >>> $oppdater_lager_med_antall_kg = $kg_pa_lager + >>>> $kg_fra_transportdokum

Re: [PHP] Re: Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
2013/8/8 Jim Giner > On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: > >> $oppdater_lager_med_antall_kg = $kg_pa_lager + >> $kg_fra_transportdokument_inn_**pa_valgt_lager; >> >> >> result: >> *Fatal error*: Unsupported operand types in * >> /U

[PHP] Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
$oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_pa_valgt_lager; result: *Fatal error*: Unsupported operand types in * /Users/karl/Sites/kasen/io/kp/index.php* on line *2970 *I have also tried this: $kg_pa_lager += $kg_fra_transportdokument_inn_pa_valgt_lager; Both o

Re: [PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Karl-Arne Gjersøyen
2013/8/2 Dušan Novaković > $query = "DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() - > INTERVAL 3 MONTH AND NOW()" > This delete everything from now and 3months backwards. I want to store 3 months from now and delete OLDER than 3 months old records. Karl

[PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Karl-Arne Gjersøyen
Hello again, folks! I wish to delete records in my database that is older than 3 months. $todays_date = date('Y-m-d'); $old_records_to_delete = ??? if($old_records_to_delete){ include(connect.php); $sql = "DELETE FROM table WHERE date >= '$old_records_to_delete'"; mysql_query($sql, $connect_db)

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Karl-Arne Gjersøyen
2013/7/26 Davi Marcondes Moreira > Hi! I suggest you to try this: > > $foo = DateTime::createFromFormat('d/m/Y'); > $newDate = $foo->format('Y-m-d'); > Thank you veyr much. With a small modification this work perfec! Karl > Em 26/07/2013 09:19, &qu

[PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Karl-Arne Gjersøyen
Below is something I try that ofcourse not work because of rsosort. Here is my code: --- $lagret_dato = $_POST['lagret_dato']; foreach($lagret_dato as $dag){ $dag = explode("/", $dag); rsort($dag); $dag = implode("-", $dag); var_dump($dag); W

[PHP] Fwd: What wrong am I doing now?

2013-07-24 Thread Karl-Arne Gjersøyen
http://www.php.net/manual/en/datetime.format.php have the solution. Sorry for asking before I look at php.net!!! Karl -- Forwarded message -- From: Karl-Arne Gjersøyen Date: 2013/7/24 Subject: What wrong am I doing now? To: PHP Mailinglist mysql> SELECT DATE_FORMAT(dato,

[PHP] What wrong am I doing now?

2013-07-24 Thread Karl-Arne Gjersøyen
mysql> SELECT DATE_FORMAT(dato, '%e-%c-%Y') FROM transportdokument WHERE dato >= '2013-07-20' AND dato <= '2013-07-24' GROUP BY dato DESC; +---+ | DATE_FORMAT(dato, '%e-%c-%Y') | +---+ | 24-7-2013 | | 23-7-2013

Re: [PHP] Foreach and mydql_query problem

2013-07-23 Thread Karl-Arne Gjersøyen
Liam. > 3Sharp Ltd. > > T: 0845 6018370 > F: 0845 6018369 > > -Original Message- > From: Karl-Arne Gjersøyen [mailto:karlar...@gmail.com ] > Sent: 22 July 2013 12:39 > To: PHP Mailinglist > Subject: Re: [PHP] Foreach and mydql_query problem > > 2013/

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Stuart Dallas > On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen wrote: > > > 2013/7/22 Stuart Dallas > > > >> > >> On 22 Jul 2013, at 08:04, Tamara Temple > wrote: > >> > >>> On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøy

[PHP] Re: Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Tim Streater > On 22 Jul 2013 at 12:56, Karl-Arne Gjersøyen wrote: > > > Yes, i know that only one a singe row is updated and that is the problem. > > What can I do to update several rows at the same time? > > Which several rows? The row that will be updated

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Stuart Dallas > > On 22 Jul 2013, at 08:04, Tamara Temple wrote: > > > On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > wrote: > > > >> Hello again. > >> I have this this source code that not work as I want... > >> > >>

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Tamara Temple > > On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > wrote: > > > Hello again. > > I have this this source code that not work as I want... > > > > THe PHP/HTHML form fields is generated by a while loop and looks like

[PHP] Foreach and mydql_query problem

2013-07-21 Thread Karl-Arne Gjersøyen
Hello again. I have this this source code that not work as I want... THe PHP/HTHML form fields is generated by a while loop and looks like this: " required="required"> the php source code look like this: "; $sql = "UPDATE item_table SET number_item = '$item' WHERE date = '$todays_d

[PHP] Split/Group date together.

2013-07-18 Thread Karl-Arne Gjersøyen
Hello again. In my program I have this: mysql> SELECT * FROM transportdokument WHERE dato >= '16/7/2013' AND dato <= '18/7/2013'; This list all reccrds for 3 days. I need a way to split it up for every day even when the requst is as above and don't know in what way I can do it. I like to have al

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
2013/7/10 Lester Caine > Karl-Arne Gjersøyen wrote: > >> // start the table >>> >> > $total = 0; > > >echo ""; >>> >echo "ProductAmount"; >>> >>> > >>> >// loop thru each item found

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
2013/7/10 Jim Giner > On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: > >> Sorry, the first mail in this subject run out for me. This is an updated >> one. >> >> >> >> I am almost ready with my learning project in PHP/MySQL. >> I can register new

[PHP] Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
Sorry, the first mail in this subject run out for me. This is an updated one. I am almost ready with my learning project in PHP/MySQL. I can register new product in stock. Add and increase the number and weight. I can move products between different storehouses I can also transfer products from

[PHP] Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
I am almost ready with my learning project in PHP/MySQL. I can register new product in stock. Add and increase the number and weight. I can move products between different storehouses I can also transfer products from store and onto a "truck document" but that's it and here I need some advice. I l

[PHP] Fwd: Hmm.. I got NULL here. Why?

2013-07-05 Thread Karl-Arne Gjersøyen
My PHP Source = "; var_dump($kg_pa_lager); ?> My var_dump() value; == string(84) "SELECT kg_pa_lager FROM dynamit WHERE valgt_lager = 'Tengs' AND varenr = 'EDY22X180'" NULL My Database table: === mysql> SELECT * FROM dynamit; ++-

[PHP] Hmm.. I got NULL here. Why?

2013-07-05 Thread Karl-Arne Gjersøyen
My PHP Source = "; var_dump($kg_pa_lager); ?> My var_dump() value; == string(84) "SELECT kg_pa_lager FROM dynamit WHERE valgt_lager = 'Tengs' AND varenr = 'EDY22X180'" NULL My Database table: === mysql> SELECT * FROM dynamit; ++-

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Stuart Dallas > On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen wrote: > > > 2013/7/5 Stuart Dallas > > > >> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen > wrote: > >> > >>> Hello. I have a form in HTML/PHP with for loops that generate

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Tedd Sperling > On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen > wrote: > > The lists look like this: > > > > http://localhost/%7Ekarl/kasen/io/kp/index.php>" > > method="post"> > value="1-25" selected="selected&quo

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Stuart Dallas > On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen wrote: > > > Hello. I have a form in HTML/PHP with for loops that generate a selected > > list like this: > > for($i = 1; $i< 25;$i++ ){ > > > > } > > > > The lists look l

[PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
Hello. I have a form in HTML/PHP with for loops that generate a selected list like this: for($i = 1; $i< 25;$i++ ){ } The lists look like this: http://localhost/%7Ekarl/kasen/io/kp/index.php>" method="post">1-2512345678910111213141516171819202122232425 Kg 26-502627282930313233343536373839404142

[PHP] Hello again. new newbie querstion

2013-07-03 Thread Karl-Arne Gjersøyen
I have done as you explain for me an it works very vell in the halft part of my application. But below is my snippet of my source code where the number of items and weight not will update itself. This code do as what number I write in the "oppdater_stk_nonel_tenner[]" field is written as result, in

[PHP] Fwd: Is it possible???

2013-06-24 Thread Karl-Arne Gjersøyen
Error in my last post This is corrected: $item_amount_in_store = 223; $update_amount = 7; $item_amount_in_Store += $update_amount; It show the result = 227 and not 230. Why is this happen? Karl -- Forwarded message -- From: Karl-Arne Gjersøyen Date: 2013/6/24 Subject: Is it

[PHP] Is it possible???

2013-06-24 Thread Karl-Arne Gjersøyen
$item_amount_in_store = 223; $update_amount = 7; $update_item_amount_in_store += $update_amount; $update_amoint_in_store is now 227; Why? That should be 230! Karl

[PHP] Re: One more newbie question. About foreach..

2013-06-24 Thread Karl-Arne Gjersøyen
WOW! Thank you very, very much! This is so good! Thanks to all of you for spending time to learning me programming! Karl 2013/6/23 Maciek Sokolewicz > On 23-6-2013 17:11, Karl-Arne Gjersøyen wrote: > >> Hello again. I Got the solution for my last mention problem. Now I can >&

[PHP] One more newbie question. About foreach..

2013-06-23 Thread Karl-Arne Gjersøyen
Hello again. I Got the solution for my last mention problem. Now I can update several rows at once by one single submit action. In my form I have many records and therefor I use an checkbox to just mark those records I like to update. This work just fine in PHP/HTML5 form and I got it as I want.

[PHP] Hmm remarkable things?

2013-06-23 Thread Karl-Arne Gjersøyen
Hello again. Thanks for last answere. It works very well but now I have another remarkable things. Perhaps logic but not for me yet.. I have this source code: (In norwegian but I translate my thoughts through it in english.) The problem with this source code is that it work very well if I select

[PHP] Newbie form question

2013-06-21 Thread Karl-Arne Gjersøyen
Hello. I have an application that generete HTML5 form in PHP. The form is written in a while loop and therefore the form field has exact same name for every row in the loop. And that is the problem. Because when my PHP document shall handle submitted data it only take the very last row in the whil

[PHP] Find/count different word in a text

2012-04-25 Thread Karl-Arne Gjersøyen
Hello again. I am looking for a way to find and count different word in a text.. I am thinking on save the text as array and iterate through the array. Then I like to register all different words in the text. For example. If bread is used more than one time, I will not count it. After the check wer

[PHP] Sort question..

2012-04-25 Thread Karl-Arne Gjersøyen
Hello again. I have a photo album that show all images in a specified directory. but I like to sort them by filename as one possibillity and random sort the photos as another feature. I don't know how to do this.. Here is my soruce-code: Bildegalleri

[PHP] What is wrong here?

2012-04-24 Thread Karl-Arne Gjersøyen
Hello again. I can't figure out what is wrong here. move_uploaded_file() get error message from die() and can't copy/move temp_file into directory bilder I have try to chmod 0777 bilder/ but it did not help. Also I have try to chown www-data.www-data bilder/ since Ubuntu Server run apache as www-

Re: [PHP] Hmm.. this is strange..

2012-04-24 Thread Karl-Arne Gjersøyen
Thank you very much Tolga! if(empty($_FILES['filbane']['name'])) 24.04.2012 17:54 tarihinde, Karl-Arne Gjersøyen yazdı: > Here I try to check if the input file is empty or not. But still it > did not work. I receive OK even when the input file field is emp

Re: [PHP] Hmm.. this is strange..

2012-04-24 Thread Karl-Arne Gjersøyen
s not set, additionally > check if it is empty > > Kind regards/met vriendelijke groet, > > Serge Fonville > > http://www.sergefonville.nl > > Convince Google!! > They need to add GAL support on Android (star to agree) > http://code.google.com/p/android/issues/detail?i

[PHP] Hmm.. this is strange..

2012-04-24 Thread Karl-Arne Gjersøyen
Hello. I have a upload form in a html file and a corresponding PHP file that shall take care of the information. But I am doing something newbie error here.. What am I doing wrong? (The text is norwegian, but you still see and understand the PHP code) bildegalleri.html - O

[PHP] Att: saeed ahmed

2012-03-31 Thread Karl-Arne Gjersøyen
Try this: mysql> CREATE DATABASE addressbook; Query OK, 1 row affected (0.00 sec) mysql> USE addressbook; Database changed mysql> CREATE TABLE userData(id INT(4) NOT NULL AUTO_INCREMENT PRIMARY KEY, firstName VARCHAR(50) NOT NULL, lastName VARCHAR(50) NOT NULL, telephone INT(12) NOT NULL, em

[PHP] PEAR_Error reporting

2012-03-21 Thread Karl-Arne Gjersøyen
Hello. I ran into trouble with a PEAR module and got only a blank (empty) page after filling in a loginform with PEAR::Auth I have error reporting in php.ini that create ordinary error message on my CentOS box, but it do not write error message when using PEAR. In a book I have is PEAR_Error mentio

[PHP] Pear Auth problem

2012-03-21 Thread Karl-Arne Gjersøyen
Hello. I am trying to use pear Auth packet but am doing something wrong. I am currently looking at the simple example in the documentation, but something is wrong in my source code, because if I write a username and a password in the fields and hit the submit button, I receive a blank pages without

[PHP] Test, trying to send to NEWSGROUP

2004-02-16 Thread Jon Arne Jørgensen
-- best regards, Jon Arne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-18 Thread Arne Rusek
On Mon, 17 Nov 2003 15:30:43 +, Curt Zirzow wrote: > * Thus wrote Arne Rusek ([EMAIL PROTECTED]): > Your problem exists here: > > Server API => Command Line Interface > _ENV["SERVER_SOFTWARE"] => Boa/0.94.13 > > Seeing this tells me your webserver is n

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-16 Thread Arne Rusek
#x27;m missing > something. Or we both. But it looks more like a bug to me because it should work with no preceding actions taken. > Hope that helps. Oh thanks a lot. And apologies for wrong background info:) Take care. Arne Rusek -- Arne Rusek <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-15 Thread Arne Rusek
p://zonk.matfyz.cz/php_post_problem I tried to change the method to GET but it didn't work either. The result could be seen at http://zonk.matfyz.cz/php_get_problem Take care. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Arne Rusek

[PHP] Sockets with windows / win32 - 'call to undefined function: ...'

2002-04-04 Thread Odd Arne Beck
Hi.. The error I get is this one: "Fatal error: Call to undefined function: socket() " i'm 100% positive that all my code is correct.. anyone else have this problem, or anyone else NOT having this problem? I have a win2000 with iis 5.0 and it's latest updates. the latest version of php to

[PHP] Re: Rational Rose plugin for generating php code ?

2001-12-21 Thread Arne Brune Olsen
> configure --help > > ie. nope, nothing there. uh? This has nothing to do with compiling php!! Rational Rose is a tool for uml modelling which can generate oo code from uml diagrams... Arne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

[PHP] Rational Rose plugin for generating php code ?

2001-12-12 Thread Arne Brune Olsen
Hi Does anyone know if there is a module for rational rose for generating php code from UML diagrams ? Arne -- 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

[PHP] Problems with exec

2001-08-09 Thread Arne
hi, i have some problems with "exec". i am using win2000, apache and latest php version. always 'unable to fork' . what´s the problem? thanks for help, arne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

[PHP] Multiple File Upload

2001-08-03 Thread Arne
Hi, I want to upload multiple files in one step. I know how to handle the things on PHP side, but how can I select more than one file in the select box. It does not work with: I can only select one file. Is there a possibillity to select more, like in windows explorer? -- PHP General Maili

RE: [PHP] File upload !!!!

2001-05-13 Thread Arne Borkowski \(borko.net\)
Let us see the form code fragment in your HTML page and the PHP code that accesses the variables...in order to see where the problem is. -Arne > -Original Message- > From: Matthias Roggendorf [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 13, 2001 8:15 PM > To: [EMA

RE: [PHP] if $index=1 how can I create a variable named $column_1

2001-05-11 Thread Arne Borkowski \(borko.net\)
and that's pretty cool ... do you also have a solution to access the name of this "dynamic" variable if I'd like to use it also (e.g. with WDDX functions)? That' would be great! TIA, Arne > -Original Message- > From: ..s.c.o.t.t.. [gts] [mailto:[EMAIL PR

RE: [PHP] something like a C "struct" or "union" in PHP?

2001-05-05 Thread Arne Borkowski \(borko.net\)
Hi Yasuo, thanks for the hint ... I'll give WDDX a try after some thought (and because I am using XML anyway). Regards, Arne > -Original Message- > From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 05, 2001 2:11 PM > To: [EMAIL PROTECTED] &g

[PHP] something like a C "struct" or "union" in PHP?

2001-05-05 Thread Arne Borkowski \(borko.net\)
P? I couldn't find a "struct" or so in the manual. The site's search engine said 41 hits for "struct" in the Web Site content, but didn't show the matching docs?! I need help on "struct" from you guys! TIA -Arne -- PHP General Mailing List (htt

[PHP] RE: [PHP-DB] & [PHP] .htpasswd?

2001-02-04 Thread Thor Arne Madland
Hi, you might want to take a look at this one: http://www.thewebmasters.net/php/Htpasswd.phtml Works in both php3 and php4. Give you functions for adding/deleting/listing/renaming users + much more, in standard .htpaccess password files. I use it myself on several sites, it works great. - t.a