ko ko 97 Practically a Master Poster

Where to show ?

foreach ($area as $areaofinterest) {
echo "$areaofinterest";
}

Your codes are ok. It might be work.

ko ko 97 Practically a Master Poster

else(state=='none') {
document.getElementById(id).style.display = 'block';
}

You don't need to put the expression into 'else' statement. Replace with below:

else {
document.getElementById(id).style.display = 'block';
}

Also, place the codes in code tags.

ko ko 97 Practically a Master Poster

Mail function does not work on localhost. If you want to test the mail function on your localhost, you need to setup the mail server on your machine. You can search on google.

ko ko 97 Practically a Master Poster

Try this:

foreach($correctanswer as $answers){
	if($answers[0] == TRUE){
		echo "Your answer is true.";
	}
}
ko ko 97 Practically a Master Poster

while($info = mysql_fetch_array( $data ))
{

$str[] = $info[0];
$timer[] = $info[1];

}

Check these array. It must be mysql table field name like '$info["field_1"]', '$info["field_2"]'.

ko ko 97 Practically a Master Poster

With the understanding of your question, I concluded that you might used the keyword of the items to delete from the cart. Using the 'id' number of the items is more simpler than using the keyword/name of the items. As you mentioned above, you may get the item with the name of the item with the value from the checkbox after submitting the form or by clicking the submit button.

while($items = mysql_fetch_assoc($query)){
       echo "<input type=\"checkbox\" value=\"" . $items['id'] . "\" />" . $item['name'];
}

With the example, you can get the id of the item that the user wants to delete from the cart after submitting the form or clicking the 'Delete' button, and then you can fetch the item from database match with that 'id' and delete it.
Hope this help.

ko ko 97 Practically a Master Poster

Great ! If your problem was solved, then, make it 'Solved Thread'.

ko ko 97 Practically a Master Poster
//Get the id for the row to delete
$row_id = $_POST['linklabel'];

//Write the query
$sql = "DELETE FROM pages WHERE id=" . $row_id;

//Execute the query
$query = mysql_query($sql);
if($query){
     echo "The row is successfully deleted from the database."; 
}
else{
     die("Cannot delete the row. " . mysql_error());
     exit;
}

Hope this help!

ko ko 97 Practically a Master Poster

Make this thread 'Solved' if it was solved.

ko ko 97 Practically a Master Poster

Remove the white space and empty line before and after the PHP enclose tags.

<?php
//Start your PHP code here. Do not left a space or empty line

//End your PHP code here. Do not left a space or empty line
?>
ko ko 97 Practically a Master Poster

What error are you receive ? Post the error message. So, we can approach the problem quickly.

ko ko 97 Practically a Master Poster
ko ko 97 Practically a Master Poster

Simply show the small info of image such as the file name by following Kraai way. Use Javascript DOM for create more visual effects. For example, when the user hover the image, the description of the image appears with pop-up layer. And you can add more effect like fade-in/out as you can do. Now, we are in HTML forum and I don't have to talk about this anymore. You can learn about DOM in the javascript forum.
Hope this help.

ko ko 97 Practically a Master Poster
mysql_query("select * from oocust") or die("Faile to select table " . mysql_error());

Using the error handling should be use with the coplex code block. Learn more about Mysql error types here.

ko ko 97 Practically a Master Poster

Mark this thread 'Solved', if it was solved.

ko ko 97 Practically a Master Poster

Try with 'input type="button"' instead of 'image' and set background image 'search.png', and put the exceed width and height to the button that it necessary to see the background.
Hope that help.

ko ko 97 Practically a Master Poster

Try with 'input type="button"' instead of 'image' and set background image 'search.png', and put the exceed width and height to the button that it necessary to see the background.
Hope that help.

ko ko 97 Practically a Master Poster

Post you codes that you have been thinking where the problem was.

ko ko 97 Practically a Master Poster

Add 'top' property and set it to '0' to reset for all browser.

ko ko 97 Practically a Master Poster

Post the codes where the problem that you think. Show us the focus and it may save our time.

ko ko 97 Practically a Master Poster
$data = $_POST['input_field_name'];

Catch the data with the above in the page that you want to process those data.

ko ko 97 Practically a Master Poster

Set the highest value for the z-index of the sticky footer.

ko ko 97 Practically a Master Poster

Make sure that the image extension is 'jpg'. Sometimes JPEG image has the extension 'jpeg'.

ko ko 97 Practically a Master Poster
#container {
    height:1200px;
    width:1980px;
    margin: 0 auto;
    position:relative
}

Where is the container ? You might be forgot to wrap the site with this container.

ko ko 97 Practically a Master Poster

Check the file path of CSS. Is it correct place? You can easily check the file path by clicking the link of your CSS in the view source. If the CSS codes has been shown, the path is correct, otherwise, your path is wrong.

ko ko 97 Practically a Master Poster

The line-height with the form elements are depending on the browser and the version on each browser. In my experience, Firefox cannot understand the line-height property with the form elements while IE and other modern browsers are working well. Put the padding top/bottom is better and already solved for cross-browser compatible.

ko ko 97 Practically a Master Poster

img.decor a:hover{background-color:#CCCCCC;}

The syntax is a little bit wrong. In your HTML, the image tag is the child of the anchor tag. So it should be img.decor:hover or a:hover img.decor . Place the parent element or selector first, and the childs in the next hierarchically, as the structure of the HTML element nodes. http://www.w3schools.com is the pretty place for beginners.

ko ko 97 Practically a Master Poster
ko ko 97 Practically a Master Poster

Concatenation needs period '.'. You need to place the period between the string or variable that you want to concate.

$string1 = "This is string 1";
$string2 = "This is string 2";
$string 1 . $string2;
----------------------------------
$string1 . ". " . $string2;
ko ko 97 Practically a Master Poster
$dir = dirname(__FILE__);

$dir will have the current directory of the file. So, you can import the file you want from the current file. Here is some example.

include($dir.'../somedir/somefile.php'); //somefile.php under the somedir folder which is same root of the folder that the current php file was stored
include($dir.'somedir/somefile.php'); //somefile.php under the somedir folder which is same root of the current php file

Hope this help!

ko ko 97 Practically a Master Poster

What is the purpose of what you are doing ? Send data without form or POST method ? You need HTML form in which data passed by this form and send to the specific CGI and process that data, otherwise use the GET method that passes via URL.

ko ko 97 Practically a Master Poster

You can store the value with the specific key. Like the example:

$health = array('chicken'=>20,'dragon'=>50,...);

Then parse the value due to the options

$chr_health = $health[$_POST['chr_pet']];

Hope this help.

ko ko 97 Practically a Master Poster

I see that you wrote a #wrapper and #main-column style but didn't use them

Sorry.. they are code blob. You may need another wrapper to add more styles to the main columns. With my example, the '#main' layer should be the parent container. Cheer...

ko ko 97 Practically a Master Poster

session_start(); must start first line of the fiile.

ko ko 97 Practically a Master Poster

$row=mysql_fetch_array($result);
$id=$row;
$state=$row

Echo the values ($id, $state) first. It should better with

while($row=mysql_fetch_array($result)){
$id=$row['id'];
$state=$row['state'];
}

Hope this help.

ko ko 97 Practically a Master Poster
$query3="SELECT * FROM selling WHERE name LIKE %item% AND state='$state' LIMIT 0,30"

Where does the '$state' come from ?

ko ko 97 Practically a Master Poster

Well, that is my fault. You didn't place the quote in your syntax, right ?

<script type="text/javascript">
$('#searchsubmit').click(function(){
var keyword = $('#se').val();
window.location = http://www.domain.com/default.aspx?st=FT&ss=+keyword;
});
</script>

ko ko 97 Practically a Master Poster

<script type="text/javascript">
$('#searchsubmit').click(function(){
var keyword = $('#se').val();
window.location = http://www.domain.com/default.aspx?st=FT&ss=+keyword;
});
</script>

You need jquery library to work the above method. And window.location = 'http://www.domain.com/default.aspx?st=FT&ss='+keyword; is wrong. Should be window.location = 'http://www.domain.com/default.aspx?st=FT&ss='+keyword; You must link the jquery library to work the above method, or try with simple js.

<script type="text/javascript"
var keyword = document.getElementById('se').value;
window.location = 'http://www.domain.com/default.aspx?st=FT&ss='+keyword;
</script>

Hope this help.

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">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
<!--
body {
	height: 768px;
	margin: 0;
	padding: 0;
}
h1 {
	font-size: 14pt;
	margin: 0 0 10px;
	padding: 0;
}
#wrapper {
	background: #8a0202;
	height: 100%;
	margin: auto;
	position: relative;
	width: 380px;
}
#main-column {
	margin: auto;
	padding: 10px;
	text-align: center;
}

#left {
	float: left;
	display: block;
	position: relative;
	top: 0;
	width:50%;
}
#left-content {
	margin-right: 190px;
	background: #f54646;
}
#right {
	float: right;
	right: 0;
	display: block;
	position: absolute;
	top: 0;
	width:50%;
}
#right-content {
	margin-left: 190px;
	background: #f54646;
	position: relative;
}
#main {
	color: #ffffff;
	width: 380px;
	margin: auto;
	position: relative;
	z-index: 111111;
	background: #830202;
}
-->
</style>
</head>
<body>
	<div id="left">
		<div id="left-content">
			<h1>Left Column</h1>
		</div>
	</div>
	<div id="main">
		<h1>Main Column</h1>
	</div>
	<div id="right">
		<div id="right-content">
			<h1>Right Column</h1>
		</div>
	</div>
</body>
</html>
ko ko 97 Practically a Master Poster

Show your HTML.

ko ko 97 Practically a Master Poster

I am not sure where do you want to insert the image. Insert image with message in Gmail, go to Gmail settings. Open the labs tab, there is a lot of application that can be working with gmail. Find 'Inserting images' and choose 'Enable', and then click 'Save Change', when you done with this setting, you can insert image into the gmail by clicking 'Insert Image' from the editor.
Hope this help !

ko ko 97 Practically a Master Poster

Where are you using CSS ? Is it in your document by embedding or external ? Post your complete HTML and it is close to find the problem.

ko ko 97 Practically a Master Poster

All of the 'href' value needs quote. You have already used double quote for php, so use single quote or use double quote by escaping it.

echo "<a href='" . $_SERVER['PHP_SELF'] . "?page=" . $nextpage . "'>Next</a>";

or

echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?page=" . $nextpage . "\">Next</a>";

Hope that help.

ko ko 97 Practically a Master Poster

What is the unique of 'tableheader' ? Is table cell or table ? If it is for table, your table has only '30px' width and has very small area for each cell in this table. Table can wrap it content and automatically set it's width related with the content inside it. I am not sure what problem it is. Remove 'width' property or set the 'width' to 'auto', and DTD also needs in your markup.
Hope that help.

ko ko 97 Practically a Master Poster

header('Content-type: image/png');

It should be very top of the script after the opening tag of php '<?php'.

ko ko 97 Practically a Master Poster

Where is the 'imagepng($image)' function you used. What type of the data that the '$image' assigned. If the '$image' assigned the image path. You can easily echo the image tag with PHP. <img src="<?php echo $image; ?>" alt="" />

ko ko 97 Practically a Master Poster

Make sure that the variable '$image' stored the correct data. More infos need and you need to post code including the function 'imagepng()'.

ko ko 97 Practically a Master Poster
$_SESSION['error'] = 'Error';
ko ko 97 Practically a Master Poster
ko ko 97 Practically a Master Poster
ul.dropdown {
float: left;
position: relative;
z-index: 597;
}

Float ignore the auto margin.