I'm a bit of a novice to PHP and MySQL. I'm creating my own little news blog for the heck of it. I got to display the information I wanted, but what I want to do is count the number of comments. I made 2 tables, the first table is the article and the other is the comments. I not to sure of how to figure this out. Can anyone help?
$...
I received a flash file from the design agency to incorporate on our template (Java/JSP based framework). I specified the width in the javascript flash player we have as those specified by the agency and 963x488, but in IE8 it seems the flash occupies more space than that and even though the flash content area remains small, the overall ...
I would like to make a div that covers the entire page. I put a css style with height:100% but this covers only the viewable area. I want it to also cover the area when I scroll down.
...
When displaying a company logo I saw something new today.
They set a height and width and overflow:hidden on the h1 tag and set a negative margin on the a tag inside of the h1 tag to keep the text from showing.
The code looked like this
<h1 class='logo'><a href='/'>Company Name</a></h1>
The css looked like this:
.logo {
text-inde...
I am building a very simple WYSWIG editor for a div with contenteditable = "true". I am using execCommand to do simple formatting such as bold, italicize, and underline along with text justification.
PROBLEM: Bold, italic, underline all work but using justifyCenter (or any justify) doesn't work in Firefox but works in Chrome and Safari...
I'm currently working on updating a "legacy" website to xhtml/css, so that I can go ahead and proceed on a re-design. All of the pages have the header included via PHP. The issue is is that if I reference the style sheet from the header as "style.css" it looks in the current directory for the style sheet where of course there is no style...
I have a number of ftp accounts on my website where each account is accessible by a limited number of people. The accounts can be accessed for download by going to ftp.mysite.com in a browser. I would like to make the directory display look like the rest of the site when people goto ftp.mysite.com. Is this possible?
Edit: Not using any...
I have a graffiti blog and i have a strange problem which is showing strange char page like this:
This page was showing when I opened my control panel admin page. It's also showing the same when I try to edit one of my previous posts. My problem is that i don't know what's the reason behind it.
I am not sure how to fix this. All my...
Hi,
I'm trying to set validation for an image alternate text, and here's what I think should be validated so far. It's a pretty simple RegEx, but I'm yet to start learning that topic..
Double quotes
< and > characters to prevent HTML input
Is there anything else you would add to this?
Would text length ever be an issue?
I apprecia...
Hello all,
I have an issue with div positioning. I used to have a SWF inside my HTML that I would add after the last two divs:
<div id="content">
<div style="position: absolute; left: 10px;">
<div style="position: relative">
Something like that, it was working fine. Inside the last two divs was a SWF. Now I had to move t...
<?php
include "db.php";
$username=$_POST['username'];
$email=$_POST['email'];
$query="SELECT * FROM members where username = '".mysql_real_escape_string($username)."'";
$result=mysql_query($query)or die(mysql_error());
$user = mysql_fetch_assoc($result);
mysql_close();
?> <br /> <p></p>
Welcome back! Your details below: <br /><b...
Everybody knows that IE7 sucks at scaling images. I just recently discovered the trick of using img { -ms-interpolation-mode: bicubic; } to force IE to use bicubic sampling when scaling images so that they look better. However, I was wondering if anyone knows the performance impact of using ms-interpolation-mode.
...
Hi guys
Basically I have HTML form which reads in a date from a user, for a hotel booking system.
I have 3 lists, one for day, one for month and one for year.
<SELECT NAME="month">
<OPTION VALUE="1"> Jan
<OPTION VALUE="2"> Feb
<OPTION VALUE="3"> March and so on
</SELECT>
and the same for year(2010 - 2013) and day(1 -31).
I...
I'm looking for a list of heuristics, given an HTML document and/or a set of URLs on a web page, that will give a set of URLs that are previous/next links from that page. Also, assume that you are given the base URL. I do not require to know if a link is specifically a next or previous URL, just that it is one of those two.
I've got a...
I need to load a specific webpage from a site that has multiple images on the site. I need to extract these images but I can't do this manually because the names of each image have no pattern and there will be hundreds of sites. I have a silverlight application to load the webpage in an iframe and I intended on extracting the html for th...
Hi, I am doing some of my first web dev, and had a question about the max-height css property.
Here's my code:
div{
max-height:10px;
}
Whenever I create a new div, everything works fine, but when I add any sort of other element between the div tags, the height of the div increase by around 10 pixels (I'm guessing). Is there any...
Hi,
I have to display a bunch of images in a page. Images are of different size, some very wide and some very thin. I want to put them all in a container of fixed width and fixed height.
Say if image is smaller, we retain the size and put it at the center of container. if image is bigger, we scale it down according to the prominent di...
I have a number of fields where I want to display the data in red if it is expired.
<%= Html.Encode(String.Format("{0:d}", Model.Subcontract.insurance_GL))%>
If the date is less than today's date, then I'd want it to display in red. What is the best way to do this?
EDIT
This is for my Detail View. It's not in a grid. It's just a li...
Hi,
I'm calling a silverlight component in my aspx page like this
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="silverlightControlHost" >
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="900">
<param n...
(The title may not be proper but I try my best to phrase it)
Description:
I forward a domain(a.com) to another domain(b.com/a) in my domain registrar.
To make sure that the user see a.com on the browser URL bar, I enable domain masking for it.
However, I discover that the domain masking in fact using an iframe trick to include b.com/a ...