![]() |
Can't use '_' in database with php-activerecord - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Can't use '_' in database with php-activerecord (/showthread.php?tid=52856) |
Can't use '_' in database with php-activerecord - El Forum - 06-29-2012 [eluser]Carmichael[/eluser] I get this error when I put "_" in my database name: Code: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr/local/pem/vhosts/152009/webspace/httpdocs/xxx/_prjct01/sparks/php-activerecord/0.0.2/libraries/PHPActiveRecord.php on line 48 Parse error: syntax error, unexpected T_STRING in /usr/local/pem/vhosts/152009/webspace/httpdocs/xxx/_prjct01/sparks/php-activerecord/0.0.2/libraries/PHPActiveRecord.php on line 48 The thing is that my host requires me to have a _ in the database name. What now? Can't use '_' in database with php-activerecord - El Forum - 06-29-2012 [eluser]LuckyFella73[/eluser] Quote:Warning: Unexpected character in input: '\' (ASCII=92) ASCII 92 would be a '\' - are you sure it's because of using an underscore? Can't use '_' in database with php-activerecord - El Forum - 06-29-2012 [eluser]Carmichael[/eluser] What's causing the error then? This is my database name: db1525443_xxx Can't use '_' in database with php-activerecord - El Forum - 06-29-2012 [eluser]LuckyFella73[/eluser] I would test the application on my local machine where I'm not forced to choose a specific database name. If you set up a database without underscore locally and you get the same error you know it's not the underscore making problems. and vice versa Can't use '_' in database with php-activerecord - El Forum - 06-29-2012 [eluser]Carmichael[/eluser] Hmm strange. I just did it and it works perfectly without and with underscore. Hate this... Can't use '_' in database with php-activerecord - El Forum - 06-29-2012 [eluser]Carmichael[/eluser] Btw I am using Crystone as host. |