Hey. I have a problem and i hope you can help me.
CB AutoAction:
Type: Code
Triggers: onAfterUserUpdate,onAfterUpdateUser
User: Auto
Method: PHP (eval)
My Code:
Code:
$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);
Can you see what is wrong?
Can i do this another way?