|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Stupid questions on variables gained from a MySQL DB
I have a table with a column for first name and a column for last name. On another table I have one column for name. I am tyring to get the first table to insert the name into the second table. But I can't seem to combine the variables. here is what I got
PHP Code:
It doesn't work. I looked at the manual and it doesn't show how to combine 2 string variables into one.
__________________
CHornJr "One day I'll know what I am doing" ![]() My Blog Suanhacky Lodge #49 Rebel Squadrons |
|
#2
|
|||
|
|||
|
simple answer,
$name1 =$result[firstname]; $name2=$result[secname]; $name=$name1."".$name2;
__________________
Rathaur ====================== Knowledge is Power |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Stupid questions on variables gained from a MySQL DB |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|