ko ko 97 Practically a Master Poster

Query your image from the table and pass this into the function argument where you want to do.

Below is sample:

$sql = "SELECT * FROM image_table WHERE image_id = 123 ORDER BY image_id DESC LIMIT 1";
$row = mysql_query($sql);
$image = mysql_fetch_assoc($row);

//pass the image to the function parameter
createThumbnail($image);

Isn't what you want ?

ko ko 97 Practically a Master Poster

Show your thumbnail image or what ? What's wrong with the codes ?

ko ko 97 Practically a Master Poster

<title>June 16, 2011 &raquo; The-Elder-Scrolls-V-Skyrim_2011_06-16-11_002 &mdash; Gematsu Gallery</title>

Check your view source. The title tag is outside of the HTML. You've wrong close tag of '</script>' at line 59 which is not opened.
Validate your markup here. Copy the source codes from the browser 'View Source' and paste into 'Validate by Direct Input'.
Here is CSS validator.

ko ko 97 Practically a Master Poster

Mark this as 'Solve Thread' then.

ko ko 97 Practically a Master Poster

Ajax ?

ko ko 97 Practically a Master Poster

You can escape HTML from the PHP delimiter and echo the value in their specific '<td>'. Example below:

<? php
/* Shuawna Norris
June 13, 2011
Part two
Working with money
*/

$balance=55.75;
$newShirtCost=15.75;
$earns=20.00;
$bar=.55;
?>
<body>
<h1>Balance</h1>
<TABLE border=’1’>”;
<tr><td colspan="3">Starting balancebalance</td></tr>
<tr>
<td>Purchase: Clothing Store:<?php echo sprintf("$%2f", ($balance-$newShirtCost)); ?></td>
<td>ATM Deposit: <?php echo sprintf("$%2f", ($balance+$earn)); ?></td>
<td>Balance after split with wife: <?php echo sprintf("$%.2f", ($balance/2)); ?></td>
</tr>
</table>
</body>

This is more readable and easy to maintain.

karthik_ppts commented: helpful +4
ko ko 97 Practically a Master Poster

What does 'alert(str)' show ?

ko ko 97 Practically a Master Poster

Solved ?

ko ko 97 Practically a Master Poster
$query = "SELECT * FROM my_table WHERE email_id = $email_id";

This should work if you built the specific email id in the same table.

ko ko 97 Practically a Master Poster

Make sure that you've access permission for the web folder (ie. xampp).

ko ko 97 Practically a Master Poster

Your post is unclear. What do you want to do ? Change the active image for the current page ? Be more precise will be appreciate for us.

ko ko 97 Practically a Master Poster

If you want to process in the same page, use form. Otherwise you can use link. But you can't retrieve the data with '$_POST[]' by pass with the link, whether the form can be retrieve both '$_POST' and '$_GET'. Here is example below:
With the anchor link:

<a href="page.php?param1=blabla&param2=blabla">Go to page</a>

# page.php

$param1 = $_GET['param1'];
$parem2 = $_GET['param2'];
//other statements for processing

With form:

<form name="myform" action="page.php" method="post">
<input type="text" name="param1" />Param1<br />
<input type="text" name="param2" />Param2<br />
<input type="submit" value="Submit" name="submit" />
</form>

#page.php

$param1 = $_POST['param1'];
$param2 = $_POST['param2']; 

//you can also use $param1= $_GET['param1'] and $param2 = $_GET['param2'] respectively when you are using the get method with that form

//further processing

Hope this help.

ko ko 97 Practically a Master Poster

That's not enough info. Post the code you're using or link to the site where you're using.
You can do rounded corner simply in CSS, most of the modern browsers and IE9 support this feature except IE-8 and older.
Example shows here.

ko ko 97 Practically a Master Poster

Maybe, there is no post in the `comments` table. You can check manually in phpMyadmin.

SELECT name FROM comments WHERE blog_id = 'your_id' ORDER BY dateposted;
ko ko 97 Practically a Master Poster

What is the difference of 'login.inc.php' and 'login_form.inc.php'? Aren't they same ? If they are have the same functions, you don't need to include the 'login.inc.php'. The login will be process in 'login_form.inc.php' when the form was submitted even if you included 'login.inc.php' on the top because your form points 'login_form.inc.php'.

In line 18 on the processing script:
Do I need to return false; to do it correct, and the script doesnt contibue after the validation?
I haveent done this, and it is not submitting (It is working anyways)!?
If i write return false; it still works..

You shouldn't use 'empty()' for string. See more detail here.

Next question, How do I create a session, so that I can include it on the pages I want to protect

You must write 'session_start()' on the very top of the file before processing any PHP scripts. Put 'session_start()' in the file where you want to create and use.

ko ko 97 Practically a Master Poster

What does the code returns ? Is any errors or what ? Echo the value pass via form first and ensure that the data are correct. Need more clear detail.

ko ko 97 Practically a Master Poster

<a href="reply_mail.php?id=<?php echo $row;?>" >
<input type="submit" name="reply" value="Reply" class="button"></a>

What for the submit button inside anchor ? Put 'reply_main.php' for action of the form and all pass via form with POST method is better.

ko ko 97 Practically a Master Poster

Put the correct host of MySql database. Not just one, ( host, username, password ) all must be correct input.

ko ko 97 Practically a Master Poster

Greek unicode collation was already supported in MySql. Change the unicode collation for your table that is using Greek language. Go to your phpMyadmin, and select your database, go to Operations tab and select the appropriate unicode in Collation options. Hope this help.

ko ko 97 Practically a Master Poster

Mark this thread as Solve then, and it will help us to save our time.

ko ko 97 Practically a Master Poster
<html>
<body>
<?php
 $A = floatval($_GET['n1text']);
 
if($A>=60)
 {
 
 echo "Congrats!!!<p>Grade1";
 }
elseif ($A <60 && $A >= 40)
 {
 
 echo "Grade2";
 } 
else  
{
 
echo "\n Fail";
} 
?>
</body>
</html>

Try with above. It works on my PC.

ko ko 97 Practically a Master Poster

Echo the value first, and ensure that the parameter takes the correct data. Put this line on the first line of 'Grade.php'.

echo $_GET['n1text'];

If it returns the correct value, then try with 'floatval()' and check again. Hope this help.

ko ko 97 Practically a Master Poster

Echo the value first, and ensure that the parameter takes the correct data. Put this line on the first line of 'Grade.php'.

echo $_GET['n1text'];

If it returns the correct value, then try with floatval() and check again. Hope this help.

ko ko 97 Practically a Master Poster

<input type="text" value="n1text">

Replace above with below one:

<input type="text" name="n1text">
almostbob commented: good eyes zero +13
Zagga commented: Well spotted +5
ko ko 97 Practically a Master Poster

Use jquery more simple and clear. You should separate the reply form in another php file. When the user click the reply button, call ajax function to the file where the reply HTML form located. Here is my example:

$(document).ready(function(){
    $('.reply').click(function(){
         $.ajax({
                 type: "GET",
                 url: "reply.php",
                 data: "reply_id="+$(this).attr('id'),
                 success: function(data){
                           $(this).next().append(data);
                          }
               })
    })
})

@reply.php
<?php
$reply_id = $GET['reply_id'];
?>
<form name="replyform" method="post" action="replymessage.php">
<input type="text" name="reply<?php echo $reply_id; ?>" id="reply<?php echo $reply_id; ?>" />
<input type="submit" value="Reply" name="reply" id="reply" />
</form>

And attach the class to the handler element, the reply link.

<a id="{$msg['id']}}" class="reply" href="javascript:;">Reply</a>

With my example, you need only one form for reply. With your version, the server is generating the reply form followed by every reply links, and the server will also be generated the comment forms while the new comment have been created. It makes the file size larger and too much unnecessary HTML will be output. Hope that help.

ko ko 97 Practically a Master Poster

Not smooth ? What does it mean ? It is working nicely in my PC.

ko ko 97 Practically a Master Poster

Maybe, your need is this one.

<script language="javascript">
function toggle(ele){
  var msgbox = document.getElementByID(ele.id);
  if(msgbox.style.display == "block") {
  msgbox.style.display = "none";
  ele.innerHTML = "Reply";
}
else {
msgbox.style.display = "block";
ele.innerHTML = "Hide";
}
} 
</script>

Hope this help.

ko ko 97 Practically a Master Poster

Too much codes...! Please be precise and post the part of problem you think.

ko ko 97 Practically a Master Poster

Post your PHP.

ko ko 97 Practically a Master Poster

Try that:

<?php
include_once "connect_to_mysql.php";

$extract = mysql_query("select * from tbl_competition WHERE fld_closed='N'");
         
if(mysql_num_rows($extract) < 0){
header( 'Location: nocompetition.php' ) ;     
}
else{
header( 'Location: competition.php' ) ; 
}
?>

Hope that help.

ko ko 97 Practically a Master Poster

You should not use '[]' by repeating in the loop. The '[]' will generate array room every time you assign it. You have 7 elements each time mysql_fetch looping. Specify the index for one looping. For example:

$count = 0;
while ($row = $result->fetch()) {
	$output[$count] = '<tr>';
	$output[$count] .= '<td>'.$row['manufacturer'].'</td>';
	$output[$count] .= '<td>'.$row['model'].'</td>';
	$output[$count] .= '<td>'.$row['description'].'</td>';
	$output[$count] .= '<td>&#x24;'.$row['price'].'</td>';

	$output[$count] .= '<td><input type="text" name="Value[{'.$row['id'].'}]" value="{'.$row['value'].'}"></td>';
    $output[$count] .= '<td><input type="checkbox" name="Update[{'.$row['id'].'}]" value="Box #{'.$row['id'].'}"></td>';

	$output[$count] .= '<td><a href="cart.php?action=add&id='.$row['id'].'&product='.$product.'">Add to list</a><td>';
	$output[$count] .= '</tr>';
        $count++;
}

Don't forget to put '.' to assign new value to the array element. If not, the last will override the first one and so on. You can easily check the array with 'var_dump($input)', and ensure that your data entered in the array.

ko ko 97 Practically a Master Poster
<ul>
   <li><input type="button" value="Home" class="menus" onclick="javascript:Show_Stuff(display1)"></li>
   <li><input type="button" value="Customers" class="menus" onclick="javascript:Show_Stuff(display2)"></li>
   <li><input type="button" value="Stringers" class="menus" onclick="javascript:Show_Stuff(display3)"></li>
   <li><input type="button" value="Stringing Machines" class="menus" onclick="javascript:Show_Stuff(display4)"></li>
   <li><input type="button" value="String Types" class="menus" onclick="javascript:Show_Stuff(display5)"></li>
   <li><input type="button" value="Racquet Types" class="menus" onclick="javascript:Show_Stuff(display6)"></li>
   <li><input type="button" value="Place an Order" class="menus" onclick="javascript:Show_Stuff(display7)"></li>
</ul>

Argument must be quoted, like this one onclick="javascript:Show_Stuff('displayx')"

ko ko 97 Practically a Master Poster

What mean the proper format ? Sorting, order or what ? Please be more precise will be appreciate for us.

ko ko 97 Practically a Master Poster

Try this one.

<!--
	function Show_Stuff(Click_Menu) 
	// Function that will swap the display/no display for
	// all content within span tags
	{
                var content = document.getElementById(Click_Menu);
		if (content.style.display == "none") 
		{
			document.getElementById(Click_Menu).style.display = "block";
		}
		else 
		{
			document.getElementById(Click_Menu).style.display = "none";
		}
	} 
	-->
ko ko 97 Practically a Master Poster

Mark this thread as 'Solved' then. So, it will make us clear.

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

Make this thread 'Solved' if it was solved.

ko ko 97 Practically a Master Poster
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

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

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

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

Float ignore the auto margin.

ko ko 97 Practically a Master Poster

How about the 'display: inline-block' ?

.bluegradient {
          display: inline-block;
}

I noticed this bugs for months. It commonly see when the first child element has set the vertical-margin.

ko ko 97 Practically a Master Poster

Change

$var_list = explode("\n",$var_data);

to

$var_list = explode("\r\n",$var_data);
ko ko 97 Practically a Master Poster
$result = mysql_query("SELECT * FROM tbl_localnews ORDER BY local_date DESC LIMIT 10");
ko ko 97 Practically a Master Poster

Try this one:

document.getElementById(toPopulate).innerHTML = "<a href='javascript:showOtherContent(\"" + toPopulate + "\");'>show</a>"

Hope this help.

ko ko 97 Practically a Master Poster

What errors did you get? Form always required 'action', that is the url where the form data received and processed.

<form name="login" method="post" id="login_form" action="login.php">

I tested with IE7 and it sent the data finely. What version of IE are you using and what is the problem ? Post more info and we can help.