• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't use '_' in database with php-activerecord

I get this error when I put "_" in my database name:
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?

Quote:Warning: Unexpected character in input: '\' (ASCII=92)

ASCII 92 would be a '\' - are you sure it's because of using
an underscore?

What's causing the error then?
This is my database name: db1525443_xxx

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

Hmm strange. I just did it and it works perfectly without and with underscore. Hate this...

Btw I am using Crystone as host.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.