197 Posted Topics
Re: Have you confirmed the problem by using the process for your own "test" account? | |
Re: 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? | |
Re: re: your first post - shouldn't your view be a php file rather than JavaScript? | |
Re: 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 … | |
![]() | Re: Rahul47, <input type="submit"... is actually the normal "submit" button. ![]() |
Re: Presumably your code simply returns HTML elements not "jQuery" elements? Are the returned elements random or known? | |
Re: Are you saying you have a database table with 2, possibly 3 columns? ![]() | |
Re: Do you already have a an email function? | |
| |
Re: 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 … | |
Re: What you describe sounds like a nav menu. Perhaps you could search in this area? | |
Re: Maybe you are using PHP V5.4 ? [session_is_registered](http://uk1.php.net/manual/en/function.session-is-registered.php) | |
Re: I assume there's more code as we are in infinite loop territory otherwise :-) | |
Re: Do your divs look something like this? <div id="container"> <div id="menu">First</div> <div id="content">Second</div> </div> | |
Re: 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; } | |
Re: Can you place your code on a site we can view? | |
Re: Is your text HTML? or just text? is your muddled text just one big paragraph of text or is it truly scrambled? | |
Re: Is your developer back? It displays fine on my IE. | |
Re: > 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); | |
Re: 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 … | |
Re: Two thoughts come to mind 1. Cacheing 2. Publishing process Is there a public URL we can view? | |
Re: I've had problems in the past trying to install Apache and MySql standalone. So I used [WAMP](http://www.wampserver.com/en/) | |
Re: 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++; }); | |
Re: 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> | |
Re: Do you know how to program in JavaScript? | |
Re: Are you using jQuery or just raw JavaScript? | |
Re: 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] = … | |
Re: There is no readonly attribute in an <input type="text" field. There is disabled="disabled". re-edit: I may be incorrect. :-( ![]() | |
Re: 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']; ?> ![]() | |
Re: 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 … | |
Re: Lines 21 & 22 Change to:- $('.success').fadeOut(200); $('.error').fadeIn(200); | |
Re: 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 … | |
| |
Re: <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); … | |
Re: 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 ( … ![]() | |
Re: 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]); } } | |
Re: valid_weight, valid_height and valid_privacysec are missing $ | |
![]() | |
Re: Without seeing the snippet of code that performs the POST "we" are unable to suggest where the issue lies. | |
Re: 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)) ? … | |
| |
Re: 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 … | |
Re: 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? ![]() | |
Re: 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'; … ![]() | |
Re: Was the 9 seconds by design? I think the BBC only refreshes every 5 mins for sporting events. | |
Re: If error logging is disabled, is it possible your host has disabled your ability to rename? | |
Re: 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 | |
Re: 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. | |
Re: Can you post all your PHP code, but NOT your mysqli credentials. |
The End.