Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 61
Search took 0.07 seconds.
Search: Posts Made By: XterM
Forum: JavaScript programming 11-29-2011, 05:55 AM
Replies: 9
Views: 320
Posted By XterM
once every second? no. look at the code. count...

once every second? no. look at the code. count every you click.
span just used to container your counter number.
Forum: JavaScript programming 11-29-2011, 01:25 AM
Replies: 2
Views: 1,099
Posted By XterM
i don't know why it's standart code. but i have a...

i don't know why it's standart code. but i have a good idea to do this. and i have tested it.

<ul id="filter">
<div style="position:relative; float: left;"><li class="current"><a href="#All"...
Forum: JavaScript programming 11-29-2011, 12:49 AM
Replies: 9
Views: 320
Posted By XterM
little modification of your script bro ...

little modification of your script bro


<html>
<head>
<font size="4">Click the button below as many times as you can</font>
<br>
<script type="text/javascript">
var clicks=0;
function...
Forum: JavaScript programming 11-25-2011, 01:38 AM
Replies: 2
Views: 871
Posted By XterM
<select name="sel1" id="sel1" > <option...

<select name="sel1" id="sel1" >
<option value=a>a</option>
<option value=b>b</option>
</select>
<select name="sel2" id="sel2" >
<option value=a>a</option>
<option value=b>b</option>...
Forum: PHP 11-25-2011, 12:59 AM
Replies: 6
Views: 1,309
Posted By XterM
wow. that is very understandable. thanks bro...

wow. that is very understandable. thanks bro :thumbsup:
Forum: PHP 11-25-2011, 12:51 AM
Replies: 5
Views: 341
Posted By XterM
try var_dump($saverec) bro.

try var_dump($saverec) bro.
Forum: PHP 11-24-2011, 07:06 AM
Replies: 8
Views: 575
Posted By XterM
make sure culumn "_countryid" exists in table...

make sure culumn "_countryid" exists in table countries. also make sure it column name written correctly. I am worried about "underline" in your column name. :thumbsup:

lets we see your table...
Forum: PHP 11-24-2011, 06:54 AM
Replies: 2
Views: 318
Posted By XterM
that command create a uniq token. the token made...

that command create a uniq token. the token made from combination of session_id() and time(). session_id is uniq by each browser. and time() uniq by time. and it is hashed with md5.

then include...
Forum: PHP 11-24-2011, 06:48 AM
Replies: 6
Views: 1,309
Posted By XterM
$a = "value of var a"; $b = "a"; echo...

$a = "value of var a";

$b = "a";

echo $$b;


simple example. hehe.
Forum: PHP 11-24-2011, 12:46 AM
Replies: 17
Views: 762
Posted By XterM
how if there is ethnicity AND gender? or...

how if there is ethnicity AND gender?
or without ethenicity and gender?

it will be error on queries.
Forum: PHP 11-23-2011, 09:39 AM
Replies: 17
Views: 623
Posted By XterM
try look at where is $currentEmpID employed

try look at where is $currentEmpID employed
Forum: PHP 11-23-2011, 09:35 AM
Replies: 20
Views: 34,003
Posted By XterM
hey, this is nice post. i have a simple way...

hey, this is nice post.

i have a simple way to prevent sql injection attact. usually, hacker test if sql vulnerable by adding a single or doble quote in input variable. like this:

?id=1' or...
Forum: PHP 11-23-2011, 09:19 AM
Replies: 17
Views: 623
Posted By XterM
maybe we need to look from where values of...

maybe we need to look from where values of $currentEmpID.
Forum: PHP 11-23-2011, 07:43 AM
Replies: 17
Views: 623
Posted By XterM
i feel there is something in your queries. ...

i feel there is something in your queries.

$currentEmpID <--- are you sure this value is uniq?

i worried you run the query with same $currentEmpID, so return always 1.
Forum: PHP 11-23-2011, 07:00 AM
Replies: 17
Views: 623
Posted By XterM
try to var_dump $rsSSS->fields first bro. and...

try to var_dump $rsSSS->fields first bro. and look value of Ref_No
Forum: PHP 11-23-2011, 06:51 AM
Replies: 17
Views: 623
Posted By XterM
it is simple bro. to compare values, don't use =,...

it is simple bro. to compare values, don't use =, but use ==


if($Ref_No == 1){
$SSS = (80.70 / 2);
}
elseif($Ref_No == 10){
$SSS = (183.30 / 2);
}
elseif($Ref_No == 8){
Forum: PHP 11-23-2011, 06:47 AM
Replies: 5
Views: 299
Posted By XterM
i don't understand why you are worried about null...

i don't understand why you are worried about null entries.
Forum: PHP 11-23-2011, 02:16 AM
Replies: 5
Views: 299
Posted By XterM
the length of all array same?

the length of all array same?
Forum: PHP 11-23-2011, 01:47 AM
Replies: 6
Views: 751
Posted By XterM
use htmlentities before insert it. it will...

use htmlentities before insert it. it will prevent xss and html and sqlinjection.

$sql="INSERT INTO $tbl_name (name, comment, datetime) VALUES ('".htmlentities($name,ENT_QUOTE)."',...
Forum: PHP 11-23-2011, 01:39 AM
Replies: 17
Views: 762
Posted By XterM
like as Fou-Lu's clue, I try to make it code ...

like as Fou-Lu's clue, I try to make it code


$dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) //connect to db
or die('Error connecting to MySQL server. Maybe it went to buy...
Forum: PHP 11-23-2011, 01:34 AM
Replies: 5
Views: 299
Posted By XterM
make array1, 2, and 3 with same name bro. ...

make array1, 2, and 3 with same name bro.

$data[] = array("3","8","2");
$data[] = array("4","8","1","2","5");
$data[] = array("1","2","3","4");


so, you just need to add $data[].
Forum: PHP 11-23-2011, 01:22 AM
Replies: 5
Views: 576
Posted By XterM
add new field named "id" in your table bro. make...

add new field named "id" in your table bro. make it auto_increment. so, field in your table is: id, firstName, lastName, age.

then, just insert it like you do. the "id" will filled automatically,...
Forum: PHP 11-23-2011, 01:07 AM
Replies: 2
Views: 469
Posted By XterM
a simple way to do it bro. actually, a function...

a simple way to do it bro. actually, a function will return false if something wrong. function mail() too. so, try this:


if(!@mail($email_to, $email_subject, $email_message, $headers)){
...
Forum: PHP 11-22-2011, 08:11 AM
Replies: 9
Views: 377
Posted By XterM
try to validate $view and existed file. i...

try to validate $view and existed file. i validated it in some steps.

define valid pages in an array. defined valid pages, make validation is easy.
define $default page too. default page is used...
Forum: PHP 11-22-2011, 07:47 AM
Replies: 8
Views: 358
Posted By XterM
replace it: $to = $emailfrom; with ...

replace it:

$to = $emailfrom;

with

$to = $_POST['emailfrom'];
Showing results 1 to 25 of 61

 
Forum Jump

All times are GMT +1. The time now is 06:27 AM.