ko ko 97 Practically a Master Poster

You should move this thread to the javascript forum.

ko ko 97 Practically a Master Poster
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Put DTD in your document. IE need DTD to support 'inline-block' property.

Lapixx commented: Really solved my problem. Thanks! +1
ko ko 97 Practically a Master Poster
ul#another-name li {
      display: block;
}
ul#another-name li.foo, ul#another-name li.bar {
      display: inline;
}

This is all I understand your question. Post your CSS code to know more clearly.

ko ko 97 Practically a Master Poster

The problem must be your PHP codes. Check your PHP codes or post here.

ko ko 97 Practically a Master Poster

Post your query codes.

ko ko 97 Practically a Master Poster
addPhoto.innerHTML = addPhoto.innerHTML +"<br/><input type='file' name='flImg'+ i>";

You need to insert the quote here <input type='file' name='flImg'" + i + "'>" This one may help you.

function AddMore()
{
var i = document.frmExhbt.addN.value;
var ele = document.getElementById('addPhoto');
i=parseInt(i);
i++;
document.frmExhbt.addN.value=i;
var newFile = document.createElement('DIV');
newFile.innerHTML = '<input type="file" name="flImg' + i + '" />';
newFile.innerHTML += '<input type="text" name="txtTtl' + i + '" />';
ele.appendChild(newFile);
}

Hope this help..!

ko ko 97 Practically a Master Poster
("SELECT ap_info.ap_id, ap_info.f_name, ap_info.l_name, ap_info.dob, ap_info.email, ap_info.skype, ap_info.home_phone, ap_info.cell_phone, ap_info.home_add, ap_info.education, education.desc, ap_info.marital_status, marital_status.desc, nationality, start_date, end_date, driving, cycling FROM ap_info join education on education.unique_id = ap_info.education join marital_status on marital_status.marital_id = ap_info.marital_status where ap_info.ap_id = '2'")
("SELECT languages_ap.lang_id, languages.language, languages_ap.speaks FROM languages_ap join languages on languages.lang_id = languages_ap.lang_id WHERE languages_ap.ap_id = '$ap_id' order by languages.lang_id ");

Remove the curly brackets '()'. This may cause the SQL injection when the query run.

mysql_query($sellang)

This one will look like:

mysql_query(("SELECT languages_ap.lang_id, languages.language, languages_ap.speaks FROM languages_ap join languages on languages.lang_id = languages_ap.lang_id WHERE languages_ap.ap_id = '$ap_id' order by languages.lang_id "))

Try this one:

$select = "SELECT ap_info.ap_id, ap_info.f_name, ap_info.l_name, ap_info.dob, ap_info.email, ap_info.skype, ap_info.home_phone, ap_info.cell_phone, ap_info.home_add, ap_info.education, education.desc, ap_info.marital_status, marital_status.desc, nationality, start_date, end_date, driving, cycling FROM ap_info join education on education.unique_id = ap_info.education join marital_status on marital_status.marital_id = ap_info.marital_status where ap_info.ap_id = '2'";

Instead of

$select = ("SELECT ap_info.ap_id, ap_info.f_name, ap_info.l_name, ap_info.dob, ap_info.email, ap_info.skype, ap_info.home_phone, ap_info.cell_phone, ap_info.home_add, ap_info.education, education.desc, ap_info.marital_status, marital_status.desc, nationality, start_date, end_date, driving, cycling FROM ap_info join education on education.unique_id = ap_info.education join marital_status on marital_status.marital_id = ap_info.marital_status where ap_info.ap_id = '2'");

Hope this help ..!

ko ko 97 Practically a Master Poster

No. You can't include an HTML file into another. You can use frames for multiple HTML document embeds. You can find more details here http://www.w3schools.com/html/html_frames.asp.

ko ko 97 Practically a Master Poster

Uhhh.. ADM, you need default statement if there is no parameter passed. I found that you want to sort with the 'employee.LNAME' as default. Try this one:

if(isset($_REQUEST['sort'])){
	if($_GET['sort'] == "FNAME"){
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY FNAME";
	}
	elseif($_GET['sort'] == "LNAME"){
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY employees.LNAME ASC";
	}
	elseif($_GET['sort'] == "TITLE"){
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY employees.TITLE ASC";
	}
	elseif($_GET['sort'] == "NAME"){
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY departments.NAME ASC";
	}
	else{
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY employees.PHONE ASC";
	}
}
else{ // Default if no parameters passed
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY employees.LNAME ASC";
}

It should work. Good luck dear.

ko ko 97 Practically a Master Poster

Try this:

<?php
$con = mysql_connect("localhost","root","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("mydb", $con);

if(isset($_REQUEST['sort'])){
	if($_GET['sort'] == "FNAME"){
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY FNAME";
	}
	elseif($_GET['sort'] == "LNAME"){
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY employees.LNAME ASC";
	}
	elseif($_GET['sort'] == "TITLE"){
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY employees.TITLE ASC";
	}
	elseif($_GET['sort'] == "NAME"){
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY departments.NAME ASC";
	}
	elseif($_GET['sort'] == "PHONE"){
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY employees.PHONE ASC";
	}
	// Default sql if no parameters given
	else {
	$query = "SELECT * FROM departments LEFT JOIN (employees) ON (departments.ID=employees.DEPARTMENTID) ORDER BY employees.LNAME ASC";
	};
}


$result = mysql_query($query) or die(mysql_error());
echo '<table border="1">
<tr>
<td><a href="test.php?sort=FNAME">First Name</a></td>
<td><a href="test.php?sort=LNAME">Last Name</a></td>
<td><a href="test.php?sort=TITLE">Title</a></td>
<td><a href="test.php?sort=NAME">Department</a></td>
<td><a href="test.php?sort=PHONE">Phone</a></td>
</tr>';
while($row = mysql_fetch_array($result))
{
if($row['LNAME'])
{
echo "<tr>";
echo "<td>".$row['FNAME']."</td>";
echo "<td>".$row['LNAME']."</td>";
echo "<td>".$row['TITLE']."</td>";
echo "<td>".$row['NAME']."</td>";
echo "<td>".$row['PHONE']."</td>";
echo "</tr>";
}
}
echo "</table>";
mysql_close($con);

?>

Check if the 'sort' parameter is already defined which was sent by form. In the first time of this page, the form is not processed and there is no 'sort' parameter has been sent. So '$_GET' is undefined variable. You can check if the variable is already set with the 'isset()' method. Hope this help!

ko ko 97 Practically a Master Poster
str_replace('<br />','<br>',$string);

Hope this help!

ahmedeqbal commented: helpful reply...! thanks Zero13 +2
ko ko 97 Practically a Master Poster

Post some of your codes you thought that the problem came from.

ko ko 97 Practically a Master Poster

The pseudo selector can't support in IE 6 and older. Using the background image must be more flexible and comfortable. I never used the pseudo selector for styling the elements.

ko ko 97 Practically a Master Poster

You mean 'Street' is one row and the others are another row together ?
You can merge the columns. Try this:

<form>
<table class="spon_info">
<tr>
<td colspan="2">
<label for="add_street" style="font-size:12px;vertical-align:middle;padding-left:2px;">Street</label></td>
<input name="add_street" type="text" style="vertical-align:middle" value="" size="35" maxlength="50"/>
</td>
</tr>
<tr>
<td>
<label for="add_city" style="font-size:12px;vertical-align:middle;padding-left:2px;">City</label><input name="add_city" type="text" style="vertical-align:middle" value="" size="35" maxlength="30"/>
</td>
<td>
<label for="add_state" style="font-size:12px;vertical-align:middle;padding-left:2px;">State</label><input name="add_state" type="text" style="vertical-align:middle" value="" size="5" maxlength="2"/>
</td>
</tr>
</table>
</form>

Hope this help !

ko ko 97 Practically a Master Poster

session_start() should always stay at the first line of the others.

<?php
session_start();

//some scripts after this line

?>
ko ko 97 Practically a Master Poster
$query="insert into attendance values('$admission_no[$y]','$date')";

Should be:

$query="insert into attendance(field1, field2) values('" . $admission_no[$y] . "','" . $date . "')";

You must select the field(s) to insert the value(s). $var="variable $var" and $var = "variable " . $var are not same.

ko ko 97 Practically a Master Poster
#img {background-image: url ("../images/red.jpeg/") width= "100%" length="100%"}

This is not valid CSS. And '.jpeg' should be '.jpg'.

ko ko 97 Practically a Master Poster

The CSS is fine, actually like it, the table and div will appear next to each. Check the class name of the table and div that was correctly related with the CSS class.

If it is ok. It may be missing the opening or closing tag in the HTML.
You said that you were using the sql_query fetch, check your HTML source code inside the script file (PHP or Asp etc.).

The server side script produce simply HTML, so check the view source in browser when the script was processed, or validate these source codes. Here is W3C validator.

Hope this help !

ko ko 97 Practically a Master Poster

Post your codes. We can't find the problem and help you without seeing any codes.

ko ko 97 Practically a Master Poster

It is because of your container 'height: auto'.

#accountContainer
{
	position:absolute;
	top:2%;
	left:42%;
	width:16%;
	height: -px; /* Set some height here */
	background-color:#CCCC33;
}
ko ko 97 Practically a Master Poster

Post HTML.

ko ko 97 Practically a Master Poster

The inline-element doesn't has the vertical margin, and the image has not vertical margin while it was not specified by the css 'display: block'.

For example: 'margin-bottom: auto/ x-px' and 'margin-top: auto/ x-px' is ignore to inline elements.

It may be the table cell vertical alignment. You can set the vertical alignment for each table-cell both HTML (valign=bottom) and CSS (vertical-align: bottom).

ko ko 97 Practically a Master Poster

Try this:

body {
background: #FFFFFF url('backgrounds/358.gif') scroll repeat top left;
}
ko ko 97 Practically a Master Poster
ko ko 97 Practically a Master Poster
header("Location: add.php");

I am not sure that is the one you want. Hope this help..!

ko ko 97 Practically a Master Poster

Your codes are not properly nested. Some are missing close tags. I found that 'p' has not close tag.

Run your code in browser and then open the view sources, validate these codes.
Here is validator

And also need the DTD in your document. You can get more infos about DTD here.

ko ko 97 Practically a Master Poster

DIV is the block level element. Block level can include both block level (such as heading, paragraph, list, table) and inline level elements (such as span, anchor, image), but inline cannot include block element. Here is some example:

This is available.

<div>
    <div></div>
    <p></p>
</div>
This is unavailable.

<span>
      <div></div>
      <p></p>
</span>

Because the 'span' tag is inline element and it cannot include the block level element.

Hope that help!

ko ko 97 Practically a Master Poster

IE needs DTD to support auto margin. You can use these.
In transitional mode:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org
/TR/xhtml1/DTD/xhtml1-transitional.dtd">

In strict mode:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org
/TR/xhtml1/DTD/xhtml1-strict.dtd">

In frame-set mode:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org
/TR/xhtml1/DTD/xhtml1-frameset.dtd">

You should always validate your markup. Go here to validate.

ko ko 97 Practically a Master Poster

Don't forget DTD.
IE needs DTD to support 'auto margin' property.

ko ko 97 Practically a Master Poster
#content {
background-position: 190px 0px;
background-attachment: fixed;
}

Hope this help!

ko ko 97 Practically a Master Poster

Use 'text-align' property for your sub-menu. It would like:

ul ul li a {
     text-align: left;
}

Hope this help!

ko ko 97 Practically a Master Poster

Try this..

.menu .sub li a {
    text-align: left;
}

Hope this help!

ko ko 97 Practically a Master Poster

Use 'class' or 'id' instead of 'attribute' (input[type]). This may ignore in some of IE version.

ko ko 97 Practically a Master Poster

Simply way for one DIV inside another DIV.

<div class="div1">
     <div class="div1-1">
         <div class="div1-2">
         </div>
     </div>
</div>
ko ko 97 Practically a Master Poster
<td class='td_stars'><ul id='total' class='rating ninestar'></td>

There is no closing for the 'ul', and validation failed.
http://validator.w3.org/, validate here.
'<br>' doesn't allowed in XHTML. You should use '<br />'.

ko ko 97 Practically a Master Poster

May be not had the enough space for the right. The maximum width of the two columns must be their parent's width, and if there was also margin or padding, they can increase spaces between the two columns. Check these and try again.

ko ko 97 Practically a Master Poster

Here:

#mainnav ul {
	float: left;
        overflow: hidden;
        margin-left: 140px;
        margin-bottom: 0;
	border: 1px solid blue;
	}

Add 'margin-bottom: 0' to 'ul' which is inside of 'mainnav' div.

drewpark88 commented: Great Input! Thanks Zero - Drew +1
ko ko 97 Practically a Master Poster
div#div1-b {
	position:absolute;
	top:0px;
	right:0px;
	width:75%;
	height:200px;
}

Remove 'height: 200px' with 'height: auto'. Or use 'overflow' property to control the overflow contents.

div#div1-b {
         /* This declaration hide the overflow contents */
         overflow: hidden;
         /* This declaration show the overflow contents */
         overflow: visible;
         /* This declaration will show with the scrollbar when the contents are flow out of layer */
         overflow: auto;
}

Good luck..

ko ko 97 Practically a Master Poster

The 'overflow' control how to display the overflow contents. The contents can be overflow out it's parent or neighbor elements by floating, negative margins or absolute position.

ko ko 97 Practically a Master Poster

Show your codes.

ko ko 97 Practically a Master Poster

Use auto margin to center the div tag.

div {
     margin: 0 auto;
     width: 650px;
   }

I have no idea to stay exactly center at vertical alignment. Note that auto margin need static width.

ko ko 97 Practically a Master Poster

You can also use span tags and class for the multiple font colors.
Here:

<th> Address<br/>
       <span class="green">North</span>&nbsp;&nbsp;&nbsp;
       <span class="red">South</span>&nbsp;&nbsp;&nbsp;
       <span class="blue">West</span>
</th>

CSS:

.green {
   color: green;
   }
.blue {
   color: blue;
   }
.red {
   color: red;
   }
ko ko 97 Practically a Master Poster

The 'response redirect' can help you.

<%
response.redirect('contact.html')
%>

When you submit the form and it will process in 'asp' file and then, redirect to the 'contact.html'. It make the browser refresh and all fields are clear.

ko ko 97 Practically a Master Poster

Right. Auto margin work with block-level element. Can't apply to inline element.

ko ko 97 Practically a Master Poster

You are wrong with id and class. Your div used 'id', not 'class'. So CSS should be:

#main {
}

id and class are not the same. id start with '#', class start with '.'

ko ko 97 Practically a Master Poster

Try this tag 'minihorizontalnav' with 'overflow:hidden'. This may be solve. If not post again.

ko ko 97 Practically a Master Poster

Your function return value, not echo value. You need to echo the value. Example:

include_once('renderIndexer.php');
echo renderIndex();
ko ko 97 Practically a Master Poster

In your HTML file. There is no html tag. Check out and make sure your codes were valid.

ko ko 97 Practically a Master Poster
html, body {
       margin: 0;
       padding: 0;
ko ko 97 Practically a Master Poster

I checked your code and it is fine with both. Did you validate your HTML?
If not, validate your HTML first, and try again.