Bad use of quotes seems to be the problem;
you have what may seem a bewildering array of options
single quotes (for sql) inside double quoted string:
PHP Code:
$link = "index.php?option=com_greekapp&controller=company&task=edit&user_id='".$cid ."'" ;
use {} brackets to help the interpreter delineate the variable inside a double quoted string:
PHP Code:
$link = "index.php?option=com_greekapp&controller=company&task=edit&user_id='{$cid}'" ;
you can simplify it to this if cid is an number:
PHP Code:
$link = "index.php?option=com_greekapp&controller=company&task=edit&user_id={$cid}";
or even this, use concatenation (as cid is the last item, as long as it is a number of course):
PHP Code:
$link = "index.php?option=com_greekapp&controller=company&task=edit&user_id=" . $cid ;
Bookmarks