Posts
 
Reputation
Joined
Last Seen
Ranked #803
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #25.0K
Ranked #3K
~6K People Reached
Favorite Forums
Member Avatar for SolidSolutions

Hi SolidSolutions, You can also treat a string like an array, i.e. [code=js] /* Set string var */ var my_string = 'longboard'; /* Store last character of string */ var last_character = my_string[my_string.length-1]; /* Alert */ alert( last_character ); [/code] Jim :)

Member Avatar for Biiim
0
5K
Member Avatar for jbennet

Hi jbennet, Go download the latest version of JQuery ([url]http://jquery.com/[/url]) and include this (the downloaded file) in the '<head>' of your site. Next, create a file called delete.js file with the following 'post' request - and include it on your page. [code=js] function delete_item(id) { /* Post the id of …

Member Avatar for jimforsyth
0
336
Member Avatar for apollokid

Hi apollokid, Below is some example code that should help you out. You need to choose a different column to order your data by. At the moment you are only selecting items which have a 'catid' of 38 - then you're trying to order the results by 'catid'. If all …

Member Avatar for jimforsyth
0
94
Member Avatar for rajeesh_rsn

Hi rajeesh_rsn, Another option would be to do the following: [code=php] /* Original array */ $my_arr = array( "first","second","third","forth","fifth","sixth" ); /* Remove element from array */ $my_arr = remove_item_from_array( "third",$my_arr ); /* Display aletered array on screen */ print_r( $my_arr ); /* The function */ function remove_item_from_array($val,$arr) { /* Find …

Member Avatar for Agarsia
0
147
Member Avatar for El Pirata

Hi El Pirata, When the timer is activated, you could store a unix timestamp in a php session. Then if/when the user refreshes the page, you can check for a session (with the start time value) and continue counting down from there. Hope this helps. Jim :)

Member Avatar for sudeepjd
0
115
Member Avatar for MoreBloodWine

Hi MoreBloodWine, You could loop through the array and replace the data with that of the legend: [code=php] foreach( $U2Array as $key => $item ) { if ( $key == "http_code" ) $U2Array[$key] = ${'$_'.$U2Array[$key]}; } [/code] If you haven't sorted this out already, I hope you find this useful. …

Member Avatar for jimforsyth
0
129
Member Avatar for dudzkie

Hi dudzkie, It sounds like you're after 'pagination' - where results are displayed over several pages, rather than lumped all together on one. Try this: 1. Let's assume we have a database with a table called 'tbl_accounts'. 2. We want to find all account holders with the name 'Jack'. 3. …

Member Avatar for jimforsyth
0
70
Member Avatar for lulemurfan

Hi lulemurfan, Open up the php.ini file on your new server and look for the line that starts: 'display_errors = ' .. make sure it reads: 'display_errors = Off' The server is obviously trying to tell you something with its warning message, but this may help you short-term - I …

Member Avatar for jimforsyth
0
92