vinsb Posted March 21, 2014 Share Posted March 21, 2014 (edited) Hello, So I'm trying to take take description of content when I share it but can't figure out how. I have this: $currid = $line[0]; if (isset($_GET['id'])) { do { $currid = $line[0]; if ($currid == $_GET['id']) break; $previd = $currid; $line = mysqli_fetch_array($result, MYSQL_BOTH); } while ($line); } if ($line) { echo "<h1>".$line['caption']."</h1><br />"; ///rest of code And trying with this but content is empty. If I $_GET['id'] is ok and I get ID in content. <meta property="og:description" content="<?php echo $_GET[$line['content']];?>" /> Can anyone help me with this? Edited March 21, 2014 by vinsb Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.