Jump to content

MySQL result Resource id #52


bftwofreak

Recommended Posts

I'm new to SQL Commands via php, but here's my script:

<?php


define(BUNGIE, 'http://www.bungie.net');

$db_link = mysql_connect("mysql301.ixwebhosting.com", "uberpil_admin", "imtheplaya");
if (!$db_link) {
   die("Could not connect: " . mysql_error());
}
mysql_select_db("uberpil_evo") or die("Could not select database");

$uname = $_COOKIE['user'];

$read1 = 'SELECT tag FROM nuke_halo_3 WHERE uname=\'' . $uname . '\'';
$url_player1 = mysql_query($read1);


mysql_close($db_link);

?>

My result of $url_player1 is always Resource id #52 even if I set the $uname variable to a constant. What's going wrong or what do I need to change?

Link to comment
https://forums.phpfreaks.com/topic/122327-mysql-result-resource-id-52/
Share on other sites

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.