PHP DOB - Concatination Programming Web Development by LloydFarrell … new to php Id like to understand \ learn more about concatination the fields are called dob_d \ dob_m \ dob_y [code] $gender = clean… Re: "object , object" concatination? Programming Software Development by senateboy commas act as concatination in this example: [CODE]#string concatination with a comma "i love cities" , "like … Re: "object , object" concatination? Programming Software Development by mawe [quote="senateboy"] commas act as concatination in this example: [/quote] No it does not concatenate! Or am I silly? :) [code]x = "a", "b" print x # -> ('a', 'b')[/code] It creates a tuple, and that's what is returned in my example, a tuple. concatination of integer string to char string Programming Software Development by amarnath.dasari Dear sir/madam how can we concatinate the character string to the integer string without using sscanf( ),sprintf( ),atoi( ),itoa( ) . With Regards, AMARNATH Re: concatination of integer string to char string Programming Software Development by Ancient Dragon First, make sure the destination string is NOT a string literal, and that the size of the destingation string buffer is large enough to hold both strings. Once you know that, then find the end of the destination string and copy the source string at that spot one character at a time and in a loop. You can use pointers to do that or some indexing … Concatination in StringBuilder Programming Software Development by varagpraveen What is the difference in memory allocation and performance by using [CODE] StringBuilder.Append("Str1"); StringBuilder.Append("Str2"); and StringBuilder.Append("Str1"+"Str2"); [/CODE] Re: Concatination in StringBuilder Programming Software Development by mariocatch Ok, I wrote a little test application to time this because you got me interested. Here's the calculation I used (based off your example). [code] // Test single appends, going 10,000,000 times. for (int i = 0; i < 10000000; i++) _SB1.Append("Test"); // Test append + append going 5,000,000 times. for (int i = 0; i &… Concatination of variables in an UPDATE statement Programming Web Development by levsha I have an HTML form with three dropdown selects: month, day and year. I have four fields in my MySQL table: month, day, year, and date. The 'date' field is supposed to contain the concatenated values of the year, month and day separated by dashes. I write this in my PHP: [CODE]$data = "UPDATE inventors SET month='$month', day='$day', … Re: Concatination of variables in an UPDATE statement Programming Web Development by urtrivedi make the change in your query as hightligted below [code] $data = "UPDATE inventors SET month='$month', day='$day', year='$year', [b]date='{$year}-{$month}-{$day}'[/b] WHERE lastname=".'"'.$lastname.'"'; [/code] Re: Concatination of variables in an UPDATE statement Programming Web Development by leviathan185 [QUOTE=levsha;1049636]I have an HTML form with three dropdown selects: month, day and year. I have four fields in my MySQL table: month, day, year, and date. The 'date' field is supposed to contain the concatenated values of the year, month and day separated by dashes. I write this in my PHP: [CODE]$data = "UPDATE inventors SET month… Re: Concatination of variables in an UPDATE statement Programming Web Development by levsha [QUOTE=urtrivedi;1049652]make the change in your query as hightligted below [code] $data = "UPDATE inventors SET month='$month', day='$day', year='$year', [b]date='{$year}-{$month}-{$day}'[/b] WHERE lastname=".'"'.$lastname.'"'; [/code][/QUOTE] Leviathan's solution worked, but I'm going to try out yours as well, just … Re: Concatination of variables in an UPDATE statement Programming Web Development by levsha [QUOTE=leviathan185;1049662]the concatenation full stops seem to be inside the string. try this: [CODE=php] $data = "UPDATE inventors SET month='$month',day='$day', year='$year', date='$year" . "-" . "$month" . "-" . "$day' WHERE lastname='$lastname'"; [/CODE][/QUOTE] Thank you so, so much! … concatination variables in php Programming Web Development by DaveyMoyes Hi all, can someone tell me why I am unable to concatinate the variable $id to the members.php ? Its driving me mad. . . [code] $id = $row["id"]; $_SESSION['SESS_MEMBER_ID'] = $id; setcookie("id", $id, time()+86400); $securecode = $row["securecode"]; $_SESSION… Re: concatination variables in php Programming Web Development by Biiim [CODE] header("Location: members.php?id={$id}"); //or header("Location: members.php?id=".$id); [/CODE] header is a php command and is already inside php tags so there is no need to use php tags again, it's like playing with a string such as echo "members.php?id=$myvar"; String help: strings in php are opened with a … Re: concatination variables in php Programming Web Development by Biiim Infact your second header commented out should of worked: //header("Location: members.php?id=$id"); Re: PHP DOB - Concatination Programming Web Development by LloydFarrell HI all, iv been trying a few different things with this dob but im still getting erros when i try [code] $dob_db = "$dob_y. "/" .$dob_m. "/" .$dob_d"; $qry = "INSERT INTO members3t(securecode, gender, firstname, lastname, dob_y, dob_m, dob_d, age, VALUES('$securecode','$gender','$fname','$lname','$dob','$… Re: PHP DOB - Concatination Programming Web Development by darkagn All dates in MySQL are in the format: yyyy-mm-dd. Notice the hyphens and the number of digits ie 4 for the year, 2 for the month and 2 for the day. Today's date would be entered as 2009-12-24 and New Years Day would be entered as 2010-01-01. That said, if your dob is a single date field, then your query should look something like this: [code=… Re: PHP DOB - Concatination Programming Web Development by diafol Twopenneth worth: I hate the VALUES syntax 'coz I always mess up the order or the number of values to my fields. Perhaps the SET syntax is easier? operator overloading Programming Software Development by apontutul There is no operator overloading in JAVA, but operator + is used as arithmetic addition and concatination operator. why ? please clarify this Interpret a string as name of an array element name Programming Software Development by Giffordw I need to build a string and then interpret that string as the name of an element in a defined array. Concatination of the string is easy. strCard = R2_5 & "(17)" How then to put strCard into If(strCard = 1) Then ...? file upload to mysql Programming Web Development by LloydFarrell …;update memberst set img1='$dest' where id=$lastid"); } [/code] concatination option - no image being uploaded [code] if($lastid > 0… String concationation Programming Software Development by simply_viks please send me n example for string concatination using ACE ACE_CString.. thanks. concatinate string using pointer Programming Software Development by prasenjit_das hi all, I do not understand how i concatination of two string using pointer in c++. please can you give sugestion how i implement.. thanks in advance MS EXCEL's union of 2 sets Programming Software Development by masterjiraya … the ability to combine 2 sets of data not by concatination. In Database Programming the sets of data from multiple tables… string "hh:mm:ss tt" conversion to Datetime hh:mm:ss tt Programming Software Development by sydoggs … a start_time and an end_time both entered as string using concatination of comboboxes(hour:minute:second AM/PM) and saved in… "object , object" concatination? Programming Software Development by senateboy hey yo's, i pretty much understand this function, except for the return value. i know that [I]string , string[/I] concats the strings. but what does the comma in the middle do when you have 2 different objects on either side as in the return value below? [CODE]def load_image(name, colorkey=None): fullname = os.path.join('data', name)… Re: "object , object" concatination? Programming Software Development by mawe Hi! [quote="senateboy"] i know that string , string concats the strings [/quote] Huh? Can you give an example? [quote="senateboy"] what does the comma in the middle do when you have 2 different objects on either side as in the return value below? [/quote] It just separates them ;) So you can return more than one value… Re: "object , object" concatination? Programming Software Development by vegaseat Maybe this example from the "Starting Python" sticky will help ... [php] # use a tuple to return multiple items from a function # a tuple is a set of values separated by commas def multiReturn(): return 3.14, "frivolous lawsuits", "Good 'N' Plenty" # show the returned tuple # notice that it is … Re: "object , object" concatination? Programming Software Development by vegaseat I think the following confuses our friend senateboy [code]print "hot", "dog" # -> hot dog str1 = "hot", "dog" print str1 # -> ('hot', 'dog') [/code] Re: creating our own C++ strcat() function, code reqd Programming Software Development by sahil_logic …i' changed for new ISO `for' scoping C:\Dev-Cpp\concatination.cpp:12: error: using obsolete binding at `i' C…:\Dev-Cpp\concatination.cpp:18: error: name lookup of `j' changed for… new ISO `for' scoping C:\Dev-Cpp\concatination.cpp:15: error: using obsolete binding at `j' Execution…