Jump to content

[SOLVED] MSSQL Query with funky results please help


kingthor

Recommended Posts

Ok lets get this going by telling you my DB contents

UserNum = 6

ID=kingthor

and the paypal results for $item_name = kingthor

 this query 
	$unum = $db->Execute('select UserNum from account.dbo.main where ID =?',array($item_name));
echo $item_name;
echo '=';
echo $unum;
echo '<br>';
gives this result

kingthor=UserNum 6,6

 

my question is where on earth does it get the UserNum 6, part from? all i want it to do is spit back 6

You're welcome.

You can't expect people here to know details of third party libraries. Few people use PHP with MSSQL, and among those most use mssql extension shipped with PHP.

So now you use exotic library for unpopular database, and when you don't get any help, you're insulting us. Buzz off!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.