Actually, I just tried the link you have and it's incorrect. Where did you copy that from? videos that allow embedding will have the embedding code available for you. Don't just grab code from the browser url. you link gives out a warning saying: 'Incorrect parameters, please try again.'
Hope this helps
In my opinion you should always use ceil. This is mainly because you just want to know if there's gonna be another page or not, even if that page just has one result. if the value was 2,1 and you used round(), the result would be 2 pages, but in fact you need 3 to display all the results.
Hope this made sense.
when a video is uploaded to youtube, the uploader has an option to choose if he's going to allow other people to embed the movie or not (i.e. in other websites, like you're trying to do). If this is not set to 'Allow', you won't be able to show it. Although I'm quite sure you should see a blank area with something saying "embedding disabled for this video".
yeah, my bad. teynon is right, the backslash is an escape character, use the forward slash in everything and you should be fine. (I'm not a windows guy, but I think the only time you need backslashes in win is when you're accessing a network path with something like \\server\share)
hope this helps and I'm not saying something really stupid.
$var = 1;
echo "variable is $var"; // should output: variable is 1
echo 'variable is $var'; // should output: variable is $var
* the difference is in the quotes. With double quotes php will check for variables, with single quotes it wont. although your first level ($family) should have worked. I'm not sure how this works on windows though.
in your case, either change the quotes to double, or do something like this that should always work: 'C:\herbariumdb.eku.edu\images\'.$family.'\'.$genus.'\'$species;
hope this helps.
I also don't really get what is intended. Can you post an example of the content in $article and maybe also a printscreen of what you would like the final result to look like?
thanks
or you can figure out how many lines you have first, and then split accordingly:
1. split sentences into array using \n as delimiter
2. check each sentence length, to determine if they will occupy more than one line. Split sentences if needed
3. devide lines into columns
Hope this helps
let me see if I understand... You want to:
1. get the unique keywords
2. link each keyword to a different url (this is easier if you link them all to the same page but pass the keyword with it)
how about this: (assuming $keywords is just a string with words : "ICQ JOOMLA fancy word facebook etc");
// split string into an array whenever a space is found:
$words = explode(" ",$keywords);
// remove duplicates
$unique = array_unique($words);
// output keywords and link them to another page
foreach($unique as $word){
echo '<a href="pageToLinkTo.php?keyword='.$word.'">'.$word.'</a> ';
}
then on pageToLinkTo.php you just need something like
if(isset($_GET['keyword']) && $_GET['keyword']!=''){
//send to appropriate page
}else{
// cant determine page. Send to default page or 404.html
}
hope this helps
$splitcategory is already an array with your keywords... What exactly do you want to do? remove duplicates?
try:
$distinct = array_unique($splitcategory);
Hope this helps,
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.