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

#1
[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?

#2
[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?

#3
[eluser]Carmichael[/eluser]
What's causing the error then?
This is my database name: db1525443_xxx

#4
[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

#5
[eluser]Carmichael[/eluser]
Hmm strange. I just did it and it works perfectly without and with underscore. Hate this...

#6
[eluser]Carmichael[/eluser]
Btw I am using Crystone as host.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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