Try something like this:
[PHP]
$mins=0;
$time = mysql_query("se lect * from $table WHERE Time> '0' ");
{
while($row = mysql_fetch_arr ay($time))
{
$mins=$mins+$ro w['Time'];
}
echo $mins." minutes";
[/PHP]...
User Profile
Collapse
-
entertainmentliveuk replied to Text not lining up with floated image in IE but is in Firefox and Netscapein HTML CSSCan you post the code you are using please.
[HTML]
<img
src="img.gif"
style="float:le ft ; padding-right:5px ; height:50px ; width:50px ; "
title="image title"
/>
<ul>
<li> Test 1</li>
<li> Test 2</li>
<li> Test 3</li>
</ul>
[/HTML]
as a guess....Leave a comment:
-
OK I think what you need is this:
[PHP]
<form id="all_region " name="all_regio n" method="GET" action="">
<label>
<select name="region" id="region">
<option value="****">[Select]</option>
<option value="LUZON">L uzon</option>
<option value="VISAYAS" >Visayas</option>...Leave a comment:
-
Thanks nathj,
I invented my own Captcha code of 10 random letters and spaces to view, which is inserted automatically into a hidden field. When the user types in the correct code, without the spaces, using the correct case, it activates the submit button. See code below:
[PHP]function add_check($name )
{
echo"<script>do cument.all.$nam e.disabled=true ;</script>";
$letters_a=arra y("1"=>"a","2"= >"s","3"=>"f"," 3"=>"g","4"=>"h ","5"=>"j","6"= >"k",...Leave a comment:
-
How can I allow guests and registered users but stop spammers
My web site (REMOVED) has an add gig page which allows users to add gigs to their profile and to the gig guide, however I am getting around 30 spoof gigs a day using the form. I have inserted a random code input in to the form for guests to fill out before enabling the submit button. However, someone has found a way around this and I am wondering if there is anyone out there who might have a suggestion on how to trap them.
The page... -
Oooh I like that one... I have not found that!
I'll try it out on my site....Leave a comment:
-
entertainmentliveuk replied to Parse error: syntax error, unexpected T_ENCAPSED_AND WHITESPACE, expecting T_STRINGin PHP[PHP]$stresult = mysql_query("se lect * from mrb_stot
where sbidit = '$tpbidit'and ssys = '$tpsys'");
// arguments, so i made $vars[/PHP]- Try removing the comment from inside the mysql_query and change the { to a (
Leave a comment:
-
At the top of the page, after you have processed the data, try this:
[code=php]
<?php
session_start() ;
if(isset($_REQU EST['bla']))
{
process the code here, then...
echo "<script>
document.locati on.href='thispa ge.url';
</script>";
exit;
}
?>
[...Leave a comment:
No activity results to display
Show More
Leave a comment: