I am trying to fetch some values from db.Out of these values one column having string values with space(for ex: Amazon vc) and trying to pass that record as query string (by using href link).Here $list_name contains value as Amazon India
$nestedData[]= "<a href=$site_url/vcm/open_addvendorcode_popup.php?id3=$row[client_id]&id4
=$row[list_name]&id5=$row[auto_list_id]&id6=$row[id] id='1' data-toggle='modal'
data-target='#add_vendorcode_popup$row[edit_id]>Add VC</a>";
When I click on the above link, I can see in url with incomplete List name as Amazon and after list_name,&id5=$row[auto_list_id]&id6=$row[id]
this part got missed. I am dispalying this data by using datatable
. And when I see by using Inspect Element &list_name=Amazon" India=""
, but this should display like &list_name="Amazon India"
. I can not change the data in DB, because it was already inserted. So how can I fix this issue? Any help would be greatly appreciated.