how to make database item unique


Posted on 16th Feb 2014 07:03 pm by admin

Hey guys,

is it possible to do this:

Did you know?Explore Trending and Topic pages for more stories like this.
I have the database item $title being pulled for the title and the actual clickable part of a link.

Is it possible to make the $title in the link title unique?

I ask because i'm truncating the clickable text with this code:

Code: $maxChars = 28;
if(strlen($row['album']) > $maxChars) {
$row['album'] = substr($row['album'], 0, $maxChars - 3);
$row['album'] .= "...";
}
and the link title shows the truncated version to. If i could make the clickable link or the title $title unique then i could have the full db item for the title and still have it truncated for the clickable text.

Anyone know if this is possible?
No comments posted yet

Your Answer:

Login to answer
283 Like 26 Dislike
Previous forums Next forums
Other forums

When i am Canseling the Billing Document in VF11 I am getting Shortdump
Hi Experts

When i am Canseling the Billing Document in VF11 I am getting Shortdump.

INSERT data problem!
After having an string with apostrophes ', double quotes " or any other special characters, suc

natcasesort works on one server but not on another
Hi

I have a problem that I was hoping that someone can help me with.

I'm trying to use

Thread in PHP
Thread in PHP
Some basic use and basic code for thread in php
This is my question?

re calling a function without including file
Hi,
i am new to programming in php, i was just checking the wordpress code and found out in the w

a dificult string search
Hi I don't know a way around this. I want the user to input a password, but to make it a bit complca

How to know if online site made with PHP
Hello,
I see some sites that does not display extensions at all , for example:

www.site.co

single values into sql field
i have a form which i want the user to able to select multiple answers. But i want the answers to be

printing links
Hi every1

i am connecting to a table in sql and the looping through with a while ($ var = my

help retrieiving results and doing pagination
Having some trouble trying to get the results to show on more than just one page.

What is ha

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash