#19046 [NEW]: Resource id #2
| From: | jean dot bazin at ifrance dot com | Date: | Thu, 22 Aug 2002 14:07:32 +0000 |
| Subject: | #19046 [NEW]: Resource id #2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17541@lists.php.net to get a copy of this message | ||
From: jean.bazin@ifrance.com
Operating system: linux 7.3
PHP version: 4.1.2
PHP Bug Type: MySQL related
Bug description: Resource id #2
Hello,
The return of this script returns "Connexion OK Resource id #2", instead
of the value "5".
<?php
$connexion = mysql_connect("myserver", "login", "pwd") or die
("Error");
print ("Connexion OK");
$bdd = mysql_select_db("testSMS",$connexion) or die ("Can't find db");
$query = "SELECT ticket_id FROM ticket";
$results = mysql_query($query, $connexion);
print ( " $results" );
mysql_close($connexion);
?>
thanxs for helping.
jano
--
Edit bug report at http://bugs.php.net/?id=19046&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19046&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19046&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19046&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19046&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19046&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19046&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19046&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19046&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19046&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19046&r=globals