197 Posted Topics

Member Avatar for MrXortex
Member Avatar for paulkd
0
219
Member Avatar for raul prakash

The scheduled task will point to a cfml file. Are you able to run the actual cfml file manually and if so do you see an error?

Member Avatar for paulkd
0
385
Member Avatar for cgull
Member Avatar for paulkd
0
2K
Member Avatar for GlenRogers

Untested. Assuming your table contains an id column. Set a cookie of the id of the last image displayed. If this is first time (cookie doesn't exist) simply set a $cookieId of 1. Amend your query to $q ="SELECT * FROM headerrotatorimage WHERE rotator = 1 AND status = 1 …

Member Avatar for GlenRogers
1
364
Member Avatar for Rahul47
Member Avatar for Rahul47
0
124
Member Avatar for Midgard

Presumably your code simply returns HTML elements not "jQuery" elements? Are the returned elements random or known?

Member Avatar for paulkd
0
652
Member Avatar for furlanut
Member Avatar for diafol
0
319
Member Avatar for london-G
Member Avatar for Kert
Member Avatar for ytrobe
Member Avatar for Albert Pinto

First off, I wouldn't store comma-delimited lists in a database field. That said, here is some code for you to try. <?php $hobbies = array( 'Swimming', 'Trekking', 'Scuba Diving', 'Birding' ); //simulate your database field result $dbResultHobbies = 'Swimming,Trekking,Birding'; $dbResultHobbiesArray = explode(',',$dbResultHobbies); ?> <form> <?php foreach($hobbies as $hobby): ?> <?php …

Member Avatar for Albert Pinto
0
2K
Member Avatar for Martin C++

What you describe sounds like a nav menu. Perhaps you could search in this area?

Member Avatar for almostbob
0
1K
Member Avatar for L-D

Maybe you are using PHP V5.4 ? [session_is_registered](http://uk1.php.net/manual/en/function.session-is-registered.php)

Member Avatar for L-D
0
187
Member Avatar for mjsmitten

I assume there's more code as we are in infinite loop territory otherwise :-)

Member Avatar for paulkd
0
126
Member Avatar for Ritesh_4

Do your divs look something like this? <div id="container"> <div id="menu">First</div> <div id="content">Second</div> </div>

Member Avatar for Ritesh_4
0
186
Member Avatar for McLaren

I have a function that I use with PayPal that you could perhaps use/adapt. function array2nvp($arr) { $str = ''; $delim = ''; foreach ($arr as $key => $value) { $str .= $delim . $key . '=' . urlencode($value); $delim = '&'; } return $str; }

Member Avatar for paulkd
0
100
Member Avatar for yaragalla_mural
Member Avatar for omoayan

Is your text HTML? or just text? is your muddled text just one big paragraph of text or is it truly scrambled?

Member Avatar for C#Jaap
0
166
Member Avatar for rolanduk
Member Avatar for nouth

> how can I remove something like everything except for "efg" from "abcdefghijklm" without know what anything is except for "ef"? var alpha = 'abcdefghijklm'; var pattern = 'ef'; var re = new RegExp(pattern+"."); result = alpha.replace(re,""); alert(result);

Member Avatar for nouth
0
2K
Member Avatar for McLaren

It's a judgement call. I was once called out for not having the company's name in a variable. Who knew they would eventually change their name? However it was fairly easy to use a script to change all occurrences of "Old Company Name" to "New Company Name". So, what does …

Member Avatar for McLaren
0
184
Member Avatar for weeraa

Two thoughts come to mind 1. Cacheing 2. Publishing process Is there a public URL we can view?

Member Avatar for arunmagar
0
279
Member Avatar for bhallarahul

I've had problems in the past trying to install Apache and MySql standalone. So I used [WAMP](http://www.wampserver.com/en/)

Member Avatar for paulkd
0
431
Member Avatar for Navlag

Move count out of the if(val $('input[type="text"]').each(function() { var val = Number( $(this).val() ); if (val && val >= 0) { sum += Number(val); } count++; });

Member Avatar for paulkd
0
216
Member Avatar for yaragalla_mural

Your code didn't resize at all for me. <div style="height:50px;background:#F75D59;"> <div style="float:left;"> <span style="color:white;font:bold 20px arial;left:50px">GOOGLE </span> <input type="text";text size="50px"> <input type="button" value="search"> </div> <div style="float:right;"> <span style="color:white"> mythili mydhili </span> <input type="button" color="#ff0000"value="1"> <input type="button" button size="10px" value="+share"> <img src="a.png"height="20px";width="20px"> </div> <div style="clear:both")></div> </div>

Member Avatar for TonyG_cyprus
0
165
Member Avatar for Nirmeen Ased
Member Avatar for atikah8890
Member Avatar for Cravver

Script to produce a list of random numbers in an array that you can then iterate. var ubound = 32; var sequence = []; var slotAvailable; var i; for(i=0; i<ubound; i++) { sequence.push(0); } for(i=0; i<ubound; i++) { slotAvailable = true; while(slotAvailable) { randomSlot = Math.floor((Math.random()*ubound)); if(sequence[randomSlot]===0) { sequence[randomSlot] = …

Member Avatar for Cravver
0
366
Member Avatar for mallows.yum

There is no readonly attribute in an <input type="text" field. There is disabled="disabled". re-edit: I may be incorrect. :-(

Member Avatar for LastMitch
0
550
Member Avatar for Albert Pinto

You could append the $_GET['idfield'] to the next page link e.g. (untested) <a href="records.php?page=<?php echo $nextPageNum; ?>&idfield=<?php echo $_GET['idfield']; ?>

Member Avatar for diafol
0
1K
Member Avatar for |-|x

Can you not create a function that is called on every page load to check for the existence of the required session vars, or request vars, and takes appropriate action (e.g. redirect to a form to create the required variables or a page that says "you were told!" :-) Seems …

Member Avatar for pritaeas
1
149
Member Avatar for solomon_13000

Lines 21 & 22 Change to:- $('.success').fadeOut(200); $('.error').fadeIn(200);

Member Avatar for paulkd
0
266
Member Avatar for eburlea

It would seem to me that both of your requirements are the same. That is, there are no records found. jqGrid is a client side component. Getting data from the database is a server side operation, which if there are no records found shouldn't even bother trying to display a …

Member Avatar for paulkd
0
153
Member Avatar for shilu2
Member Avatar for solomon_13000

<style type="text/css"> #rotating-img-container { position:relative; } #rotating-img-container img { position:absolute; } </style> <div id="rotating-img-container"> <img class="rotating-img-item" src="images/1.jpg" /> <img class="rotating-img-item" src="images/2.jpg" /> <img class="rotating-img-item" src="images/3.jpg" /> <img class="rotating-img-item" src="images/4.jpg" /> <img class="rotating-img-item" src="images/5.jpg" /> </div> <script> function rotateImage() { var $e = $("#rotating-img-container"); $e.find("img").last().fadeOut("slow",function(){ $(this).prependTo($e); $(this).css({display:"inline"}); }); } $(window).load(function(){ setInterval(rotateImage,3000); …

Member Avatar for paulkd
0
319
Member Avatar for hallianonline

It's a bit difficult to see with all the escaping and no layout. Try this instead:- I've assumed your donor_id is an integer, you'll need to sort the rest. I use '%s' for strings %d for integers and %.2f for decimals. [sprintf syntax](http://php.net/manual/en/function.sprintf.php) $sql = sprintf(" INSERT INTO donors ( …

Member Avatar for diafol
0
130
Member Avatar for dhani09

Your array has two identical records (both [id] => 2), so I assume you copy/pasted for quickness. You also have a ; missing in your for statement after $contents foreach($_SESSION['cartItems'] as $key => $products){ if($products['id']==$delid) { unset($_SESSION['cartItems'][$key]); } }

Member Avatar for dhani09
0
109
Member Avatar for hallianonline
Member Avatar for hallianonline
0
170
Member Avatar for iamthwee
Member Avatar for McLaren

Without seeing the snippet of code that performs the POST "we" are unable to suggest where the issue lies.

Member Avatar for McLaren
0
256
Member Avatar for mjsmitten

You can also use array_key_exists if(array_key_exists('category',$_GET)) { if(array_key_exists($_GET['category'], $myarray)) { echo $myarray[$_GET['category']]; } else { echo 'not found in array'; } } and shorter and not so pretty..... if(array_key_exists('category',$_GET)) { echo array_key_exists($_GET['category'], $myarray) ? $myarray[$_GET['category']] : 'not found in array'; } and shorter....and uglier..... echo (array_key_exists('category',$_GET) AND array_key_exists($_GET['category'], $myarray)) ? …

Member Avatar for paulkd
0
174
Member Avatar for jencinas69
Member Avatar for amkaos

Hi, I'm not a JavaScript guru, and I use jQuery because it make client side stuff so easy and logical. That having said, this line (and others) does not appear correct:- // Get the form var form = $('comments_form'); What is $('comments_form'); ? is there another js file that you …

Member Avatar for paulkd
0
248
Member Avatar for xianamersu

Need a little more snippet.. e.g. where did **$user_length** come from ? is *u0003:omied:123456-12-1234:male:married:privatesector:dfsfsdf:603-32323242:6016-2343432:omied@gmail.com:omeid123:dingo1234* associated with a variable?

Member Avatar for diafol
0
579
Member Avatar for xianamersu

If you are allowed to use a php to store the names instead of a txt file..... users.php <?php $users = array( 'paulkd' => array( 'firstname' => 'Paul', 'location' => 'Preston' ), 'xianamersu' => array( 'firstname' => 'Rachel', 'location' => 'Melbourne' ) ); ?> and to check.... <?php include_once 'users.php'; …

Member Avatar for diafol
0
344
Member Avatar for MargateSteve

Was the 9 seconds by design? I think the BBC only refreshes every 5 mins for sporting events.

Member Avatar for minitauros
0
189
Member Avatar for Borzoi

If error logging is disabled, is it possible your host has disabled your ability to rename?

Member Avatar for Borzoi
0
222
Member Avatar for bradly.spicer

Start with adding lots of echos.... e.g. between line 3 and 4 add echo '1'; after your $_POST check line add echo '2'; if they don't show up add a die after them... echo '1';die; if it doesn't show up check config.php

Member Avatar for bradly.spicer
0
197
Member Avatar for asif49

I would say no, because if you don't know how many times it will fire, you wont know if the current fire is the last.

Member Avatar for paulkd
0
239
Member Avatar for Maideen
Member Avatar for Maideen
0
2K

The End.