Jump to content

Resource id #59

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
visit this link:
FindItGlobally.com - Business Directory

And scroll to the very bottom you will see Resource id #59

I made a Query using this code:

[HIGHLIGHT="PHP"]$queryzz = "SELECT url FROM {$Stb_name}_LINK";
$theurloutput = mysql_query($queryzz) or die('Error, query failed');
echo $theurloutput;[/HIGHLIGHT]

and the Resource id #59 is outputted by the echo.

Thanks for helping. This is my first time using PHP and MySQL.

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
You're not supposed to echo the resource given by mysql_query() The resource contains the result of the query, so you shall use it to get the data. There's a lot of PHP/MySQL-functions. You can find a complete list right here: PHP: MySQL - Manual

#3
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Thanks man! I finally got it working, now the headache will start :( because I gotta make something working.. let's hope it does!

#4
Guest_Jaan_*

Guest_Jaan_*
  • Guests
well you can try this:

$query = mysql_query("SELECT * FROM {$Stb_name}_LINK");
$row = mysql_fetch_rows($query);
$theurloutput = $row['url'];
echo $theurloutput;

it will work 100%
i guess... :D

#5
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Yes I did something similar.. and works fine :)

Thanks

#6
Guest_Jaan_*

Guest_Jaan_*
  • Guests
Np :)