Help - Search - Members - Calendar
Full Version: Php Variables
Zymic Webmaster Forums > Web Design & Development > General Web Design Discussion
ap_
how do i repeat a specific variable on a script?
like :
<?php

$db = mysql_connect("127.0.0.1","user","pass") or die(mysql_error());
$db .= mysql_select_db("database") or die(mysql_error());

if($db !== true){

echo("$db");

}

?>

do i write this right?
ap_
im just looking for repeat my varyables with diferent values
ap_
better clean code than nothing! lol
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.