Jump to content

Linking Question


TheMovieman

Recommended Posts

Hello once again, lol

 

Don't know what it's called, but I'm having trouble with linking something.

 

Ok, so I've created a page that lists reviews by studio (each one gets their own page), but the way my code is set up, it's not that easy. Here's the code:

 

><?php

$studioinfo = @mysql_query("SELECT ...");

$cat_array = array();
while ($sinfo = mysql_fetch_array($studioinfo)) {
$studioid = $sinfo['studioid'];
   array_push($cat_array, $sinfo['name']);
}
$cat_string = implode(", ", $cat_array);
echo $cat_string;

?>

 

This is to show multiple studios but I don't know how to link it properly. When I tried it, it linked both studios to the same link when there needs to be one for each.

Link to comment
Share on other sites

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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