Wrote script Site Gone - Help - Joomla! Forum - community, help and support


long story lets new working php or mysql , testing script add user group association manually through database in _user_usergroup_map table.
i put php file on root of site , ran url test read somewhere before trying work site.
the site no longer shows when go url, nothing shows white screen.

checked database , no record added.
please help

here script (which not close proper code)

<?php
// connects database
mysql_connect("localhost", "thofro_thofro", "canace11") or die(mysql_error());
mysql_select_db("thofro_aceisgroup") or die(mysql_error());
// add new group association between current user
mysql_query("insert 'ty2ox_user_usergroup_map' (user_id, group_id)
values ('$user->username', '12'));
?>

a white screen error message in disguise http://www.phil-taylor.com/2009/01/12/a ... rror-page/





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support