PHP Code and Linefeeds/Carriage Returns
- by tonsils
Hi,
Just wondering, would the following code arrangement cause any issues when calling mysql_connect, i.e.:
public function connect() {
mysql_connect($this->host,
$this->username,
$this->password)
or die("Could not connect. " . mysql_error());
or does it need to be all on one line, i.e.:
mysql_connect($this->host,$this->username,$this->password) or die("Could not connect. " . mysql_error());
Thanks.