A
Anonymous
Guest
Maybe simpy will create array?
<?
$user="flashsoft";
$pass="me";
$host="localhost";
$database="flashsoft";
$link=mysql_connect($host, $user, $pass);
mysql_select_db($database);
mysql_query("INSERT INTO `table` (`link`) VALUES ('$link')"; // here is problem
// just change a var name
?>
Goober said:When I query them I get that: Resource Id #3, and I dont know what to do from there.
$link = mysql_connect( "$dbhost","$dbuser","$dbpass" );
if ( ! $link )
die( "You did something wrong. You are very stupid. Fix it.<br>" );
$select = mysql_select_db( $dbname ) or die ( "You did something wrong. You are very stupid. Fix it.<br>" );
$result_wins = mysql_query( "SELECT sum(wins) FROM record" );
$var = mysql_fetch_array($result_wins);
if ($var == $four)
echo $var;
$result_wins = mysql_query("SELECT SUM(wins) AS wins_total FROM record") or die(mysql_error());
$var = mysql_fetch_array($result_wins)
if ( $var['wins_total'] == $four )
echo $var['wins_total'];