php-general | 2005051
Date: 05/05/05
- Next message: Marek Kilimajer: "Re: [PHP] control-M"
- Previous message: bala chandar: "Re: [PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)"
- Next in thread: bala chandar: "Re: [PHP] select statement"
- Reply: bala chandar: "Re: [PHP] select statement"
- Reply: Prathaban Mookiah: "Re: [PHP] select statement"
- Reply: Andy Pieters: "Re: [PHP] select statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Why doesnt this work, it shows the username but not the balance of the users
money.here is the mysql table:
CREATE TABLE `users` (
`user_id` int(11) NOT NULL auto_increment,
`username` varchar(15) NOT NULL default '',
`password` varchar(15) NOT NULL default '',
`status` varchar(10) NOT NULL default '',
`user_balance` bigint(5) NOT NULL default '0',
PRIMARY KEY (`user_id`)
) TYPE=MyISAM AUTO_INCREMENT=3 ;
/////////////////////////////////////////////////////////
<?php session_start();
include("connect.php");
$uname=$_SESSION['username'];
$user_balance=mysql_query($sql);
$sql = "Select FROM users ,user_balance WHERE user_id =$uname";
$result = mysql_query();
?>
<?php echo $uname;?><br>
<?php echo $user_balance;?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Marek Kilimajer: "Re: [PHP] control-M"
- Previous message: bala chandar: "Re: [PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)"
- Next in thread: bala chandar: "Re: [PHP] select statement"
- Reply: bala chandar: "Re: [PHP] select statement"
- Reply: Prathaban Mookiah: "Re: [PHP] select statement"
- Reply: Andy Pieters: "Re: [PHP] select statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

