Jump to content

Recommended Posts

hi, guys

i'm trying to display a record with the following condition & codes below;
[code]
$sql->QueryRow("select * from photos where photo_filename = $cur_file");
$row = $sql->data;

$max_array = count($row);

echo $row[id];
[/code]

but these codes threw me an error message here;
[quote]
Fatal error: Call to a member function on a non-object in /home/askjames/public_html/mygallery/img_info.php on line 30
[/quote]

and line 30 is the first line of codes above and so on...
$cur_file is the name of the current .gif file in the directory.

what do you think is the reason of this error message?
please help me to figure out this?

thank you very much.




This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.