Jump to content

Meta Title setup swapping question.


IvanTW
Go to solution Solved by CroNiX,

Recommended Posts

Hi,

 

I have a quick question, just want to make sure I don't screw anything up before I do it.

case "article": // single article item
			$sqlart = "SELECT * FROM Articles WHERE Article_ID = ".$_GET["id"];
			$resultart = mysql_query($sqlart, $dbc);
			$rowart = mysql_fetch_array($resultart);
			
			$title = "mixrevu.com - Article: ".$rowart["Article_Title"];
			$description = substr(strip_tags($rowart["Article_Story"]),0,100)."...";
	        break;	
	    
	    case "article2": // single audio blog item
			$sqlart = "SELECT * FROM Articles2 WHERE Article2_ID = ".$_GET["id"];
			$resultart = mysql_query($sqlart, $dbc);
			$rowart = mysql_fetch_array($resultart);
			
			$title = "mixrevu.com - Audio Blog: ".$rowart["Article2_Title"];
			$description = substr(strip_tags($rowart["Article2_Story"]),0,100)."...";
	        break;			   

As you can see above, my meta titles are displayed as ( mixrevu.com - Article " title of article is pulled here") but I want the article title to be displayed like this "title of article is pulled here" : Article - mixrevu.com.

 

**So I just want to swap the order**

 

Is it ok for me to  swap the code on the $title line like ".$rowart["Article_Title"] :Article - mixrevu.com ?????

 

Would I screw anything up? The question goes for "article single item and article2. If I am reading the code correctly the $sqlart to $rowart section is where the instructions are giving on what is what and the $title, $description is where I can acutally make the changes. Would I have to do anything to the inital $sqlart section?????

 

 

Thanks for your help,

 

-ivantw

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.