Here is an example of a 3 layer menu with some styles added to it, so maybe try adapting it?
It's only your HTML and CSS arn't quite there. Hope this helps :)
Yes you can use javascript to do it, and your syntax is correct.
Or you can apply CSS direct to an image, like this:
img.clip {
position: absolute;
clip: rect(0px,60px,200px,0px);
}
Either one would work, depending exactly how you'd like to apply it. Personally I'd use CSS, unless you have to change the clip sizes for each image.
But as you're trying to set propotions from a user-uploaded image, maybe not a good idea to use clip
, as they might think the image has uploaded wrong and throw a fit. Try looking at alternate methods, such as height/width, positioning, scaling etc etc.
Note: Avoid inline styles, use a CSS stylesheet instead. Make your code consistant, either close the <img>
or don't (depending if you're HTML5 or not). Just for future note, you cannot self close a <div>
, it needs to be: <div><img></div>
. This may be what's causing you a problem.
Sure no worries, its pretty simple aha.
A quick TinyMCE (with CDN) tutorial:
1) Shove this into your page, just before the </body>
tag if possible
<script src="http://tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>tinymce.init({selector:'textarea'});</script>
And here you are, done! You'll have the default one going, so if you want to snazz it up a bit or change the settings, just alter the bit inside tinymce.init({})
bit.
All it does is changes the look of your textarea, and submits HTML code instead of plain text. So all it is doing is helping your user add HTML to their textarea, if that makes any sence.
line-height: 26px;
will solve your problem, but you need to look at the overall structure of the menu as it's not best practice.
Maybe not a good idea to use wordwrap()
after you've sorted the entire HTML of the message out. Maybe add it right at the beginning if your that desperate to use it, but I would consider some validation instead of just chopping half of the message off.
Apart from that, It could be because you're using <input>
, which is submitted as one continual block of text. What you may be interested in is a HTML Editor, like TinyMCE. This will allow you to format your email using HTML, so therefore it can have user-defined line breaks and other formatting bits and bobs.
I can't see anything other thn that in your code, but there could be some issue when calling the send function, so that's the place to look afterwards.
However, be mindful that this type of email can have security issues, so be very careful and just make sure you properly sanitize everything.
Is this trying to test my maths skills or something? Because they're fine.
You might need to see if you can find the duplicate ip_ip first, and then in a separate statement see if they both have the same username.
Look here: http://www.petefreitag.com/item/169.cfm
I'm struggling to understand what you want.
Maybe show us how your database is structred etc. so we can maybe begin to understand this a bit better.
Yup. Missing a close bracket (}
) around line 26-27
We can pretty much see what will be the PHP developers of the future.
Topics like this make me worry.
OScommerce, zencart, open cart, tomato cart, presta shop, magento community edition.
I can't imagine it would have taken her long to find that out.
Really, are people unable to do even a copy and paste now? Wow.
How can i make it? I need a source code.
Do you expect us to waste our time doing your research?
Put some effort in and do your own googling.
Place session_start();
at the very top of both files.
It's just a phone.
It's just an Apple phone.
The above link will redirect you to http://all2psd.com/start/indd2psd
Warning: He didnt state this but you need to enter your email address for the PSD to be sent to. There is no privacy policy on the site and nothing to prevent selling your address on/spam/ads etc.
However it is possible to do this, but not sure how well it works... http://smallbusiness.chron.com/open-indd-file-photoshop-64749.html
If not, try to download the trial of InDesign just to convert maybe?
Just call the plugin in your demo link, and use the following snippets.
Ajust your PHP:
<a href="studentmgt.php?student_id='.$data['.student_id.'].'" class="confirm">Delete</a>
jQuery:
$(".confirm").confirm();
Then just put some PHP/SQL in the link to delete the record.
Hope this helps :)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ cms.php?cms_id=$1 [L,QSA]
Where you have positioned your code is fine, change line 8 to:
<script src="http://ajaxsearch.partners.agoda.com/partners/SearchBox/Scripts/Agoda.SearchBoxV2.1.js" type="text/javascript"></script>
Keep the SRC all on one line, because otherwise spaces will mess up the URL and you won't be able to load the library.
Welcome :D
Use ||
or &&
for if
statemets (OR/AND are for SQL)
if(!empty($name) || (!empty($file) && $_FILES["file"]["type"] == "application/docx")){
Try using an array and adding to it, that way we can check if there's a value already matching it.
<?php
$result = mysql_query("SELECT category FROM inventory");
$output = array();
while($row = mysql_fetch_array($result)){
$cat_array = array($row['category']);
foreach ($cat_array as $value){
if ($value<=1 && !in_array($value,$output)){ # If $value is already in the array
array_push($output,$value); # Add to array
} # No need for 'else{}'
}
}
foreach($output as $value){
echo $value."<br/>";
}
?>
^^ Seen this alot lately, how can you guys be appearing lower than me with only 300+ posts?
Did Dani make a change allowing more people to edit their user titles lateley then or something?
Defence paid for uni, and a salary while I was there.
Even if you are the only student in uniform, being the only one with money helps a lot. $3 lunches at the 'Nott'
Of course I like to blow things up
Wow thats some story aha ;) What did you actually do at uni/for a carrer?
Example? Source code? Links/demos?
Come on try a bit.
here are many fine looking geek girls
I found that at uni - I was very very happy where I was for 4 years ;p But at first I had exactly the same problem as @Diafol...
My last year was the most stressful thing of my life, having been given a chance of a lifetime at uni, I had to work extremely hard.
Just meant that as soon as we got our results we could party very hard at prom ;)
<iframe marginheight="0" marginwidth="0" src="http://maps.google.com/maps? ... &ll=50.954966,0.493012&spn=0.018615,0.021458 ... output=embed" frameborder="no" height="500" scrolling="no" width="500"></iframe>
Change ll
so ll=
-YourLat-,
-YourLong
So the end code would be like:
<?php
$src= "http://maps.google.com/maps?f=q&hl=en&geocode=&q=&ie=UTF8&om=1&&s=AARTsJpQqM3ktaXD4q9ItwThgIRSOtr4zg&ll=".$row[1].",".$row[2]."&spn=0.018615,0.021458&z=9&iwloc=A&output=embed";
?>
<iframe marginheight="0" marginwidth="0" src="<?= $src ?>" frameborder="no" height="500" scrolling="no" width="500"></iframe>
And do you mean the user will look at a map, and every now and then it will change? (if so, we'll have to sort you out with AJAX)
Welcome!
BTW: rally like your username!
And it's 100% because you haven't given us reason to think anything else, yet.
Use a javascript/jQuery function: Click Here
You will just have to adjust the selectors to suit your needs
Font Awesome, as the name suggests, is a font library of SVGs, so behaves very differently.
Ideally you want to actually use font awesome for something like a plus icon. If not, you can look at things like this: click here (scroll down to the bit about inline SVGs.
Things get very complicated doing everything this way, so I really suggest using the Font Awesome library (and if you've got problems with that, they're probably much easier to fix!!)
Why not use this:
<iframe marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=en&geocode=&q=&ie=UTF8&om=1&&s=AARTsJpQqM3ktaXD4q9ItwThgIRSOtr4zg&ll=50.954966,0.493012&spn=0.018615,0.021458&z=9&iwloc=A&output=embed" frameborder="no" height="500" scrolling="no" width="500"></iframe>
Taken from here
Replace the &ll=50.954966,0.493012
bit with &ll=<?php echo $row[1].",".Row[2];?>
Then just echo out all of your other information and variables as normal :)
If the file existed in the right place and was filled with correct content, it would display fine.
Your code above is unclear, if you are presumably wanting to view the content of a file use file_get_contents($url_to_file);
. You might need to expand on your objectives if you want more help.
He might do, I wouldn't know where he'd put them ;) I'll ask aha
When we grew up, I was really good friends with a lad called Chris. Chris was always a gifted mathematician, and at 17 went to Cambridge to study maths.
He carried on to do his PhD, studying the concept of a 4th dimension, of which he was awarded a fellowship and remains in charge of a research team there.
I'll have to ask him what he thinks about all of this aha ;)
Using what the guys have said about obtaining the $radio
variable:
Solution to your version
<input name="xyz" <?php if($radio == 0){echo "disabled='disabled'";} ?> />
Neater version
<?php
$input = "<input name='xyz'";
if($radio == 0)
{
$input .= " disabled='disabled'";
}
$input .= " />";
echo $input;
?>
Okay so first things first, any SQL/PHP error messages at all?
Have you checked that your databases are set up exactly the same, there are no differences in structures etc so they perform exactly the same.
If they are identical, is it because this new location doesn't support or is having troubles with the mysqli_real_escape_string()
?
To me, if you have to copies of the same code (in different locations) and one fails to work, it means the location itself is causing the error or something that has to be setup for each location (databases). These are really the only things that change between the two, so are the probable cause of error. (Assuming no other error messages)
I personally think that we shouldnt get involved unless its absolutely nessesary, since there are Chemical WMDs involved - id much prefer things stay over there.
There are times when we need to sit back and carefully think - "Is this really our fight?"
That's only because its short of the images etc, #davy_yg must now incorporate the JSfiddle to help him out.
The fiddle is only to help out with the structure :)
Right, the problem youre having is fairly easy to fix:
Firstly: give #navigation the gradient background (the blue and white one).
Then change the #cssmenu a to a transparent background.
Next add some borders to the #cssmenu a to get your black line seperator effect.
And finally if you sort out the padding on the dropdown links, we're pretty much there.
Code here: JSfiddle
Result here: JSfiddle result
Hope this helps,
Matt
Are you using the code from the demo? If so you actually need to follow the tutorial.
Things like:
<div id="pt-main" class="pt-perspective">
<div class="pt-page pt-page-1"> PAGE </div>
<div class="pt-page pt-page-2"> PAGE </div>
</div>
All need to be correct and checked first
Try using this:
/* HTML */
<li class="nav1"><a href="">Link</a></li>
<li class="nav2"><a href="">Link</a></li>
/* CSS */
#nav li {background:no-repeat top;}
#nav li .nav1 {background: url('images/banner nav1.jpg');}
#nav li .nav2 {background: url('images/banner nav2.jpg');}
Its actually quite a well styled blog, I would just add a bit of padding on the .site-info div at the footer.
If you were really looking for perfection, try to add a feint background colour to the logo/header area
Aha thanks guys :)
RIP to those who lost their lives, and I feel so sorry for their families
It was on my birthday that I was told I got into uni, a dream come true!!
I really was hoping to get in, and two weeks before the due date, I got a letter from Oxford saying I had got in!!! YAY!!
I used "PHP & MySQL for dummies" and it was actually a really good book, they assume basic HTML and CSS, but nothing too advanced. It breaks it in quite nicely :)