Jo$h
Posting Freak
- Jul 7, 2010
- 1,030
- 79
I have a question, as I am starting on the begginings of CreepCMS, which will eventually become a community project.
Anyways, I am working on my first ever class in OOP, which is of course, going to be connect_db.
So I was just wondering if in the "method" that I am placing in that class, would it work if I tried to use the old PHP syntax, so for example:
Anyways, I am working on my first ever class in OOP, which is of course, going to be connect_db.
So I was just wondering if in the "method" that I am placing in that class, would it work if I tried to use the old PHP syntax, so for example:
PHP:
function connect() {
var $con="mysql_connect('$server','$user','$pass')";
mysql_select_db("$data", $con);
}