- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: 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 :) | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 :) | |
Re: 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. … | |
Re: 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. … | |
Re: 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 … |