$URL= "http://test.url=";
$encode = "[cb_field1][name][cb_field2]";
$CallURL = $URL.urlencode($encode);
$con=mysqli_connect("localhost","user","pass","db");
mysqli_query($con,"UPDATE jom_comprofiler SET cb_urlencode='$CallURL' WHERE id='[user_id]'");
mysqli_close($con);
Please Log in to join the conversation.
$query = "UPDATE " . $_CB_database->NameQuote( '#__comprofiler' )
. "\n SET " . $_CB_database->NameQuote( 'cb_urlencode' ) . " = " . $_CB_database->Quote( $CallURL )
. "\n WHERE " . $_CB_database->NameQuote( 'id' ) . " = " . $_CB_database->Quote( '[user_id]' );
$_CB_database->setQuery( $query );
$_CB_database->query();
Please Log in to join the conversation.