Jump to content

[SOLVED] 2database


corillo181

Recommended Posts

ok.. lets say i got 2 database..

one is for comments..

and another one for pictures..

what i'm trying to do is finding a way to assigne comment to a picture..

i was thinking about..

in the comment data base put a field with the name picname.. and in php assign the pic name to the comment..
like lets say..

$sql1= 'select name from pic';
$sql2='select name from comment';

insert into comment(picname,comment) values($picname,$comment)..

i just did somethin quick i'm just triyng to give a illustration..

my question is if everytime they view the picture will the be able to see the comment with such a simple comment books..

like when they viee the picture it will have..

select from commet where pic=$picname

.. will the be possible or there is some other way of joining 2 database that would make it easier..?
Link to comment
Share on other sites

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.