[PHP] Ambiguous?

2013-08-09 Thread Karl-Arne Gjersøyen
varenavn| varenr | kg_pa_lager | ++-+---++---+-++-+ 4) My question: What means with "ambiguous" here? Thanks. Karl

[PHP] List problem again...

2013-08-09 Thread Karl-Arne Gjersøyen
s for both at the same time. I do not know where to start for put product in their own table knowing by their own serialnumber. I think this is a list problem but need some help to understand this stuff. Thank you very much. I am very thankful for all your help. Karl

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

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
t;; mysql_query($sql, $connect_db) or die(mysql_error()); } Thank you very much for your help to understand also this question :) Karl

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
, $dag); var_dump($dag); What I want is a way to rewrite contents of a variable like this: >From 24/7/2013 to 2013-07-24 Is there a way in PHP to do this? Thank you very much. Karl

[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
something with my PHP Source that is wrong when using DATE_FORMAT. As you see above it work in terminal. I hope this not is off-topic for the list. If so, I am sorry for it and hope you can give me advice about a good MySQL list for newbie's. Thanks again for your help! Karl

Re: [PHP] Foreach and mydql_query problem

2013-07-23 Thread Karl-Arne Gjersøyen
It works now and it was a php thing.When I combine a for and while loop together with Limit in my query it works. Karl mandag 22. juli 2013 skrev Liam følgende: > Shouldn't $_POST['number_of_itemsi'] be $_POST['number_of_items'] > > > Kind Regards, > >

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
imes when I have five items. But the problem is that only the very last number_of_items is written when update the form.. I believe this is becayse number_of_items = '$item in $sqk override every earlier result. So my querstion is. How to to update the database in this case? Thanks again for your good advice and time to help me. Karl'

[PHP] Split/Group date together.

2013-07-18 Thread Karl-Arne Gjersøyen
t way I can do it. I like to have all records for day 16 in one table in PHP/HTML and all records for day 17 in another table. i.e, Day 16 have 5 rows and day 17th and 18th have 7 and 8 rows. I hope for your help and advice to do also this correct. Thank you for your time and effort! Karl

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
ort to learn me programming. Karl -- Hjemmeside: http://www.karl-arne.name/

[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
got 100100100 for kg_pa_lager But if I do this: $sql = "SELECT kg_pa_lager FROM dynamit WHERE valgt_lager = '$valgt_lager' AND varenr = '$varenr'"; I got NULL. Look at varenr = EDY22X180 in the select where and that it is in the table under varenr. But why is kg_pa_lag

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

2013-07-05 Thread Karl-Arne Gjersøyen
got 100100100 for kg_pa_lager But if I do this: $sql = "SELECT kg_pa_lager FROM dynamit WHERE valgt_lager = '$valgt_lager' AND varenr = '$varenr'"; I got NULL. Look at varenr = EDY22X180 in the select where and that it is in the table under varenr. But why is kg_pa_lager NULL? This is strange to me but I guess you know why? Thanks for your advice. Karl

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
171819202122232425 Kg 26-5026272829303132333435363738394041424344454647484950 Kg  What I try to do with it is to register the selected value and do something with it. The lists is weight in KG. I hope to select only one value between 1-25kg OR 26-50kg. I don't know if this is possible? What do you think? Thanks. Karl

[PHP] Hello again. new newbie querstion

2013-07-03 Thread Karl-Arne Gjersøyen
i] as long I have us this += operator in $stk_pa_lager[$i] += $oppdater_stk_nonel_tenner[$i]; I have just copy and past it from a working example above and chance the table name and $oppdater_stk_nonel_tenner[$i] variable. Thanks for your time. Karl

[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
$sql = SELECT queries for every given serialnumber ($snr) Thanks for your help. Karl

[PHP] Hmm remarkable things?

2013-06-23 Thread Karl-Arne Gjersøyen
ffert values in stk_pa_lager based on the particular serialnumber. (field varenr). I will be very thankful if you can tell me what is wrong here and point out what to do with it. Thanks for your time. Karl

[PHP] Newbie form question

2013-06-21 Thread Karl-Arne Gjersøyen
do when select one by one and update them, but that is a long and hard way for people using my application. A better solution is to just use one form and view all items there. Then just write the amount of item in field.) If you have time to help me *understand* this newbie question by explain or give me an example or post a link to a tutorial that can help me though, I am very thankful. Karl

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers > wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been l

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers > wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been l

Re: [PHP] XML to Array

2013-03-10 Thread Karl DeSaulniers
On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now. I am trying to get the attributes of an xml node. I have this code: [snip] this

Re: [PHP] Arrays

2013-02-26 Thread Karl DeSaulniers
On Feb 26, 2013, at 10:35 PM, tamouse mailing lists wrote: On Mon, Feb 25, 2013 at 9:51 PM, Karl DeSaulniers > wrote: Never mind. I found a different function that reads out the children as well into the array. function xml_parse_into_assoc($d

Re: [PHP] Arrays

2013-02-25 Thread Karl DeSaulniers
} } else { return(array($pop['tag'] => $pop['children'])); } }

Re: [PHP] Arrays

2013-02-25 Thread Karl DeSaulniers
On Feb 25, 2013, at 7:50 PM, Jim Lucas wrote: On 02/25/2013 05:40 PM, Karl DeSaulniers wrote: Hi Guys/Gals, If I have an multidimensional array and it has items that have the same name in it, how do I get the values of each similar item? EG: specialservices => array( specialserv

Re: [PHP] Arrays

2013-02-25 Thread Karl DeSaulniers
On Feb 25, 2013, at 7:48 PM, Adam Richardson wrote: On Mon, Feb 25, 2013 at 8:40 PM, Karl DeSaulniers > wrote: Hi Guys/Gals, If I have an multidimensional array and it has items that have the same name in it, how do I get the values of each similar item? EG: specialservices =>

[PHP] Arrays

2013-02-25 Thread Karl DeSaulniers
I utilize the serviceid to do this somehow? It is always going to be different per specialservice. TIA, Best, Karl DeSaulniers Design Drumm http://designdrumm.com

Re: [PHP] Shopping Cart Discount System

2012-12-31 Thread Karl DeSaulniers
On Dec 31, 2012, at 3:51 PM, tamouse mailing lists wrote: On Mon, Dec 31, 2012 at 2:31 AM, Karl DeSaulniers > wrote: Hello Everyone, Hope all are well. Quick and hopefully painless question. Is there any examples on how to build a discount system into your shopping cart out there that any

[PHP] Re: [PHP-DB] Re: [PHP] Shopping Cart Discount System

2012-12-31 Thread Karl DeSaulniers
On Dec 31, 2012, at 3:36 AM, Ashley Sheridan wrote: Karl DeSaulniers wrote: Hello Everyone, Hope all are well. Quick and hopefully painless question. Is there any examples on how to build a discount system into your shopping cart out there that anyone knows of? I am using MySQL and PHP. I

Re: [PHP] Missing email

2012-10-22 Thread Karl DeSaulniers
20, 2012 at 5:00 AM, Karl DeSaulniers > wrote: > @Moderator > Any reason why my emails do not post or at least dont post for hours later? There is no moderator on this list. I'm probably about as close as it comes. Can you explain more about the problems you're experie

Re: [PHP] Re: User Timezone

2012-10-21 Thread Karl DeSaulniers
On Oct 21, 2012, at 5:11 PM, tamouse mailing lists wrote: On Sun, Oct 21, 2012 at 7:30 AM, Matijn Woudt wrote: On Sun, Oct 21, 2012 at 12:01 PM, Maciek Sokolewicz wrote: On 21-10-2012 01:11, Karl DeSaulniers wrote: Thanks for the response. Yes, for the US I plan on calculating by state

Re: [PHP] Re: User Timezone

2012-10-21 Thread Karl DeSaulniers
On Oct 21, 2012, at 5:01 AM, Maciek Sokolewicz wrote: On 21-10-2012 01:11, Karl DeSaulniers wrote: Thanks for the response. Yes, for the US I plan on calculating by state, but this website is not geared to just the US. So I am looking for a solution that lets me also calculate by country

Re: [PHP] Re: User Timezone

2012-10-20 Thread Karl DeSaulniers
On Oct 20, 2012, at 6:02 PM, Matijn Woudt wrote: On Sun, Oct 21, 2012 at 12:56 AM, Karl DeSaulniers > wrote: On Oct 20, 2012, at 7:23 AM, Maciek Sokolewicz wrote: On 20-10-2012 09:39, Karl DeSaulniers wrote: Hello all, Happy weekend. Hoping you can help me with an age old question. I

Re: RES: [PHP] Re: User Timezone

2012-10-20 Thread Karl DeSaulniers
Dont know how I would get longitude and latitude of my users. Also, not using HTML5 except for layout reasons. Liquid canvas. So I am using HTML 4 transitional for structure. Thanks for the response! I will at least look into your solution. Couldn't hurt. :) Best, Karl On Oct 20, 2012,

[PHP] Re: User Timezone

2012-10-20 Thread Karl DeSaulniers
On Oct 20, 2012, at 7:23 AM, Maciek Sokolewicz wrote: On 20-10-2012 09:39, Karl DeSaulniers wrote: Hello all, Happy weekend. Hoping you can help me with an age old question. I am trying to get a users timezone for a purchase online. I know that php is not really able to get a timzone of a

[PHP] User Timezone

2012-10-20 Thread Karl DeSaulniers
t the timezone or UTC location based on country and zip or city state country zip. Any help is appreciated. Best, Karl DeSaulniers Design Drumm http://designdrumm.com

[PHP] Re: define()

2012-06-16 Thread Karl DeSaulniers
On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote: On 16-06-2012 08:36, Karl DeSaulniers wrote: Quick question phprz. Is it ok to put a token inside a define() statement? IE: define('TOKEN', $sometoken); I guess what I am really after is if this can be read by a hacker

[PHP] define()

2012-06-15 Thread Karl DeSaulniers
r variable? And server variables are easy to read/get ? If it is unsafe, what is the best method of storing/using a token so that it can be called at will? Kind of like a global, just more secure. Can you secure a define statement? TIA, Best, Karl DeSaulniers Design Drumm http://designdrumm.com

Re: [PHP] Converting date string to unix timestamp

2012-05-11 Thread Karl DeSaulniers
hat I post. Anyone else having trouble with the list like that? Best, Karl On May 11, 2012, at 8:06 PM, Jim Lucas wrote: On 05/11/2012 05:55 PM, Karl DeSaulniers wrote: Thanks Jim, To tell you the truth, this was handed off to me. Thank you for the response. I knew this was just bloated code. T

Re: [PHP] Converting date string to unix timestamp

2012-05-11 Thread Karl DeSaulniers
Never mind, it's because January 1st is not a Saturday. The 7th is. Interesting... so it corrects the date per the text representation of the day?? Thanks again. Best, Karl On May 11, 2012, at 7:42 PM, Jim Lucas wrote: On 05/11/2012 04:11 PM, Karl DeSaulniers wrote: Hello eve

Re: [PHP] Converting date string to unix timestamp

2012-05-11 Thread Karl DeSaulniers
Thanks Jim, To tell you the truth, this was handed off to me. Thank you for the response. I knew this was just bloated code. Thanks for verifying that for me. :) Just one question, why does it echo the 7th and not the 1st? Should be 20120101T162000Z not 20120107T162000Z Best, Karl On May 11

[PHP] Converting date string to unix timestamp

2012-05-11 Thread Karl DeSaulniers
\THis\Z', time()); //$datestampnow = strtotime($stampnow); } ... ] I have a feeling I am mixing something up on my own, but I have been staring at this code to long to see it. Can anyone help me please? Like I said, this is probably an easy one. TIA!! Best, Karl DeSaulniers Design Drumm http://designdrumm.com

[PHP] Find/count different word in a text

2012-04-25 Thread Karl-Arne Gjersøyen
Regards, Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sort question..

2012-04-25 Thread Karl-Arne Gjersøyen
xt(); } unset($bilde); ?> I will be lucky if somebode have time to help me out here.. I am sure it is some functions in php that can do the trick, but haven't found anything yet. Thanks for your time. Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What is wrong here?

2012-04-24 Thread Karl-Arne Gjersøyen
= "bilder/" . $_FILES['filbane']['name']; // ..og legg fila i katalogen bilder move_uploaded_file($tmp_fil, $filnavn) or die("Feilmelding: Kunne ikke flytte $filnavn"); Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
ot;Ok". Even when the input file field is empty.. Can someone tell me what I am doing wroing in this? Thanks for you time and effort to help me out. Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] Re: foreach

2012-04-05 Thread Karl DeSaulniers
And POST[] is not the same as $_POST[] Karl Sent from losPhone On Apr 5, 2012, at 3:24 PM, "Jim Giner" wrote: > I don't know about others, but I can't make sense of this - way too much > presented with no idea of what I am looking at - code or output. > >

[PHP] Adding Rows In PHPMYADMIN

2012-04-02 Thread Karl James
Hello, Hey guys, I figured out my critical error. I have a table that has a limit of 30 rows. How can I add more rows to a table so that we can upload more images? Below is what I need to change. Thanks, karl Indexes: <http://dev.mysql.com/doc/refman/5.0/en/optimizing-datab

[PHP] PHP ISSUE!!!

2012-04-01 Thread Karl James
to fix issues like this yet. <mailto:karlja...@tampabay.rr.com> Karl James

[PHP] Att: saeed ahmed

2012-03-31 Thread Karl-Arne Gjersøyen
istred"; } ?> View Contact Info First Name: $firstName"; echo "Last Name: $lastName"; echo "Telephone: $telephone"; echo "Email: $email"; echo ""; } } ?> Hope this can be in help for you. K

[PHP] Critical Error

2012-03-28 Thread Karl James
o do with the primary key, right? Now keep in mind as some of you I do not claim to be a know php very well. Just beginning stages. I wanted to send a screen shot but don't want to get email bounced. Any help would be appreciated. <mailto:karlja...@tampabay.rr.com> Karl James

[PHP] PEAR_Error reporting

2012-03-21 Thread Karl-Arne Gjersøyen
mention, but it did not explain how to get it or run it. If you can help me in this question I am thankful for your time. Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Pear Auth problem

2012-03-21 Thread Karl-Arne Gjersøyen
thentication.auth.intro.php Thanks for your time. Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variable scope

2011-07-14 Thread Karl DeSaulniers
error reporting code. Best, Karl On Jul 14, 2011, at 4:17 PM, Shawn McKenzie wrote: On 07/14/2011 03:54 PM, Karl DeSaulniers wrote: Can anyone explain this to me. I can't read through all that crap, but I notice multiple times that you use undefined variables, due to typo or jus

[PHP] Variable scope

2011-07-14 Thread Karl DeSaulniers
loose scope??? One other note, if I put.. $To = htmlspecialchars($fullname." <".$email.">"); then $To is correct when I trace.. $To = John Doe ; but it wont send because the smtp mail will not send to $To = John Doe <j...@email.com> I MUST be doing something wrong. Also, I did read about using Name but the other email functions work fine with those, so I'm not sure what's going on. TIA, Best, Karl DeSaulniers Design Drumm http://designdrumm.com

[PHP] Re: str_replace around a character??

2011-07-13 Thread Karl DeSaulniers
On Jul 13, 2011, at 9:59 AM, Shawn McKenzie wrote: On 07/13/2011 02:54 AM, Karl DeSaulniers wrote: Hello All, I am needing some assistance. I am trying to add some Cc and Bcc to a mail script I have. On the form I have instructions for each to be separated by a comma + a space. In an all

[PHP] str_replace around a character??

2011-07-13 Thread Karl DeSaulniers
ema...@domain.com, " to be $cc = "ema...@domain.com, ema...@doamin.com, ema...@domain.com, ema...@domain.com" Any pointers would be much appreciated. TIA Best Regards, Karl DeSaulniers Design Drumm http://designdrumm.com

[PHP] Re: [PHP-DB] Re: [PHP] PHP EOL

2011-07-04 Thread Karl DeSaulniers
On Jul 4, 2011, at 2:34 AM, Tim Streater wrote: On 04 Jul 2011 at 08:01, Stuart Dallas wrote: On Mon, Jul 4, 2011 at 7:11 AM, Karl DeSaulniers wrote: Hello Stuart, After some closer look at the RFC Compliant manuals you suggested, I have determined that the creator of that code was in

[PHP] Re: [PHP-DB] Re: [PHP] Re: [PHP-DB] Re: [PHP] Re: [PHP-DB] Re: [PHP] PHP EOL

2011-07-04 Thread Karl DeSaulniers
"no send no show". So it didn't seem to be a bad code. Thus I continued use. But like what was said earlier in the thread, I agree PHP_EOL would be the best fit. Thank you for all your input, help and resources. Best, Karl On Jul 4, 2011, at 2:01 AM, Stuart Dallas wrote: On M

[PHP] Re: [PHP-DB] Re: [PHP] Re: [PHP-DB] Re: [PHP] PHP EOL

2011-07-03 Thread Karl DeSaulniers
creator went with a check for System OS when determining the end of line characters to use. Not substantiated in any way, but that is what it looks like to me. I could stand corrected. Best, Karl On Jul 3, 2011, at 6:11 PM, Karl DeSaulniers wrote: I see. Yes, I was referring to the PHP

Re: [PHP] Re: [PHP-DB] Re: [PHP] PHP EOL

2011-07-03 Thread Karl DeSaulniers
I see. Yes, I was referring to the PHP manual. I will investigate the RFC manuals as well like you had noted. No offense taken. Thank you for the clarification. Best, Karl On Jul 3, 2011, at 6:07 PM, Stuart Dallas wrote: On Sun, Jul 3, 2011 at 11:22 PM, Karl DeSaulniers wrote: @Stuart

[PHP] Re: [PHP-DB] Re: [PHP] PHP EOL

2011-07-03 Thread Karl DeSaulniers
directed in the right direction. So I will be changing my code to reflect. Thank you, Best, Karl A am going to end this thread here. Since it is getting cross-post responses. On Jul 3, 2011, at 4:37 PM, Stuart Dallas wrote: On Sun, Jul 3, 2011 at 10:31 PM, Karl DeSaulniers wrote: Hello

Re: [PHP] PHP EOL

2011-07-03 Thread Karl DeSaulniers
, Karl On Jul 2, 2011, at 8:28 PM, viraj wrote: hi all, looking at the code Karl has posted, this code bit is not going to be a help in setting the 'new line' character in an email body, because it decides based on the server operating system. if (strtoupper(substr(PHP_OS,0,

[PHP] Re: [PHP-DB] Re: [PHP] PHP EOL

2011-07-02 Thread Karl DeSaulniers
Thanks Stuart! Karl Sent from losPhone On Jul 2, 2011, at 8:45 AM, Stuart Dallas wrote: On Sat, Jul 2, 2011 at 9:01 AM, Karl DeSaulniers wrote: Hello All, Happy pre independence for my American PHPers. And good health to all others. Have a quick question.. I have this code I use for

Re: [PHP] PHP EOL

2011-07-02 Thread Karl DeSaulniers
On Jul 2, 2011, at 3:10 AM, viraj wrote: PHP_EOL is the best fit. you do not have to write multiple lines of code to do the same thing. ~viraj p.s. cross-posting is bad. removed db. from the cc list. On Sat, Jul 2, 2011 at 1:31 PM, Karl DeSaulniers wrote: Hello All, Happy pre

[PHP] PHP EOL

2011-07-02 Thread Karl DeSaulniers
t; ? If their are, then I can see an advantage of using the PHP_EOL. Like I said, just a quick question. ;) Karl DeSaulniers Design Drumm http://designdrumm.com

[PHP] Re: [PHP-DB] Two forms on one page

2011-01-03 Thread Karl DeSaulniers
, just somehting I think I caught. Best, Karl DeSaulniers Design Drumm http://designdrumm.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Karl DeSaulniers
You could also help them out a little with something like.. $phone = str_replace("(", "", $phone); $phone = str_replace(")", "-", $phone); HTH, Karl On Dec 29, 2010, at 6:27 PM, Josh Kehn wrote: On Dec 29, 2010, at 7:12 PM, Ethan Rosenberg wrote

[PHP] Re: [PHP-DB] Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Karl DeSaulniers
characters. You may have to investigate how international numbers would work and adjust appropriately, but for the US, that should work. Then just send an error message when it isn't like you want. JAT Karl On Dec 29, 2010, at 6:27 PM, Josh Kehn wrote: On Dec 29, 2010, at 7:12 PM,

[PHP] Re: [PHP-DB] Re: [PHP] Strange Query Error...

2010-11-27 Thread Karl DeSaulniers
on Don't know if you necessarily need this but I found it while checking to see if one letter names are a good idea in MySQL statements. Might help in your like query. http://techonthenet.com/sql/like.php HTH, Best, Karl DeSaulniers Design Drumm http://designdrumm.com -- PH

Re: [PHP] include html

2010-11-01 Thread Karl DeSaulniers
On Nov 2, 2010, at 12:37 AM, Nathan Nobbe wrote: On Mon, Nov 1, 2010 at 11:22 PM, Karl DeSaulniers wrote: I need to basically grab the source of the page as text. Then I can do a replace() on the tag. Then insert the text into an Iframe. In theory, this I thought would be handled better

Re: [PHP] include html

2010-11-01 Thread Karl DeSaulniers
'm OT with that. Karl Sent from losPhone On Nov 1, 2010, at 11:50 PM, Nathan Nobbe wrote: On Sunday, October 31, 2010, a...@ashleysheridan.co.uk wrote: This can only be done with javascript, as the iframe is client- side, which php knows nothing about. sounds to me like OP is building

[PHP] include html

2010-10-30 Thread Karl DeSaulniers
other companies to do so as well. TIA, Karl DeSaulniers Design Drumm http://designdrumm.com

Re: [PHP] Multiple Login in a single PC should not be possible

2010-09-06 Thread Karl DeSaulniers
On Sep 7, 2010, at 12:47 AM, Robert Cummings wrote: On 10-09-07 01:21 AM, Karl DeSaulniers wrote: @Jagdeep Singh Hi Jagdeep, I know it has been a while now, but I thought I'd let you know. Setting up a database with a session login and some checks and balances will allow you to do wha

Re: [PHP] Multiple Login in a single PC should not be possible

2010-09-06 Thread Karl DeSaulniers
need help with this or not, but thought I'd let you know what I found out. Best, Karl DeSaulniers Design Drumm http://designdrumm.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Removing link on the fly, but leave link text

2010-09-01 Thread Karl DeSaulniers
On Aug 31, 2010, at 3:06 PM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 15:01 -0500, Karl DeSaulniers wrote: On Aug 31, 2010, at 2:32 PM, Ashley Sheridan wrote: > On Tue, 2010-08-31 at 14:31 -0500, Karl DeSaulniers wrote: >> >> Hi, >> Say I have some text. >>

Re: [PHP] Removing link on the fly, but leave link text

2010-08-31 Thread Karl DeSaulniers
On Aug 31, 2010, at 3:06 PM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 15:01 -0500, Karl DeSaulniers wrote: On Aug 31, 2010, at 2:32 PM, Ashley Sheridan wrote: > On Tue, 2010-08-31 at 14:31 -0500, Karl DeSaulniers wrote: >> >> Hi, >> Say I have some text. >>

Re: [PHP] Removing link on the fly, but leave link text

2010-08-31 Thread Karl DeSaulniers
On Aug 31, 2010, at 2:34 PM, Joshua Kehn wrote: On Aug 31, 2010, at 3:31 PM, Karl DeSaulniers wrote: Hi, Say I have some text. $text = 'You can logon here: http://website.com/shop/ index.php?username='.$username.'">http://website.com/shop/ index.php?username='

Re: [PHP] Removing link on the fly, but leave link text

2010-08-31 Thread Karl DeSaulniers
On Aug 31, 2010, at 2:32 PM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 14:31 -0500, Karl DeSaulniers wrote: Hi, Say I have some text. $text = 'You can logon here: http://website.com/shop/ index.php?username='.$username.'">http://website.com/shop/index.php? usern

Re: [PHP] PHP Reference

2010-08-14 Thread Karl DeSaulniers
Thanks tedd. On Aug 14, 2010, at 7:45 AM, tedd wrote: At 1:08 AM -0500 8/14/10, Karl DeSaulniers wrote: Hello all, I was wondering, can you reference php in a url string like you can javascript. EG: "javascript:someFunction()" Can you do something similar in php like "p

Re: [PHP] PHP Reference

2010-08-14 Thread Karl DeSaulniers
On Aug 14, 2010, at 5:19 AM, Ashley Sheridan wrote: On Sat, 2010-08-14 at 01:57 -0500, Karl DeSaulniers wrote: That is what I thought. Thank you for confirming. Karl On Aug 14, 2010, at 1:54 AM, Peter Lind wrote: > On 14 August 2010 08:08, Karl DeSaulniers > wrote: >> Hel

  1   2   3   4   5   >