- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 7
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
a Computer Science graduate and self-proclaimed PHP geek
41 Posted Topics
I want to sort four dimensional array based on 0th index by using following method, Here is the code: var main_arr = [ [] ]; var hdnFromValues = [11,16,12,17,14,18,15]; var hdnToValues = [12,17,13,18,15,19,16]; var hdnSPIDs = [11,12,13,14,0,0,0]; var hdnFlag = [D,E,E,D,A,A,A]; for (var j = 0; j < hdnFromValues.length; j++) … | |
Re: I integrated PayPal in my plenty of projects & one of my client account credited with 16845$ solidly. But, for transfering the amount to your account from PayPal may take sometime as like other gateways do & to transfer more amount you need proper authentication to do. | |
Re: Hello devianleong, We don't understand what you are asking for. But, i feel like you need AJAX script which will load your product options/attributes. Here are the few links for study, 1. http://www.w3schools.com/php/php_ajax_php.asp 2. http://www.w3schools.com/php/php_ajax_database.asp 3. http://stackoverflow.com/questions/6804327/jquery-ajax-call-from-javascript-to-php 4. http://stackoverflow.com/questions/2269307/using-jquery-ajax-to-call-a-php-function 5. http://stackoverflow.com/questions/12075143/using-ajax-to-run-php-code 6. http://stackoverflow.com/questions/13351175/calling-php-functions-in-javascript-using-ajax 7. http://stackoverflow.com/questions/6610300/how-to-call-a-php-function-with-ajax | |
Re:  Here are my few suggestions, 1) Do check whether, error logs are ON, or try to add these lines to enable, ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(-1); 2) Replace all $_POST with $_REQUEST (Just a try) 3) Add backtick (above tab key & near to 1 key) symbol in all your … ![]() | |
Re: $dirPath = $_POST['company']; if(is_dir($dirPath)) { $result = mkdir($dirPath, 0755); if ($result == 1) { echo '<br/>'.$dirPath . " has been created".'<br/>'; } else { echo '<br/>'.$dirPath . " has NOT been created".'<br/>'; } } else { echo '<br/>'.$dirPath . " already exists".'<br/>'; } | |
Re: Agree with JorgeM point. Anyway, try this http://simplehtmldom.sourceforge.net/ . It will works perfect... | |
Re: $JSONdata = json_decode($jSOnString); echo $JSONdata[0]->amount; echo $JSONdata[0]->trxId; | |
Re: Here are my reviews... 1. Logo should be in img tag.. currently given as background image 2. Create sitemap in XML & submit to major search engines. There are plenty of online tools to generate 3. Try to give this image also in img tag, "../images/front.jpg" - Name the file … | |
Re: Change the memory size in php.ini file because the allocated memory 67108864 bytes is 64MB. Try to set 128MB or something.. Or use below code as first line of the page.. ini_set('set_memory_limit',-1); | |
Re: get_posts() will helps you to sort the issue. This function will retrieves a list of latest posts based upon the setting paramaters as array. Refer the link for more explanation & examples.. http://codex.wordpress.org/Template_Tags/get_posts ![]() | |
Re: $result will returns as resource type. Better try this, while($Row = mysql_fetch_array($result)) { echo $Row['FirstName']; } | |
Re: Simple script here... [Took from w3schools] <!DOCTYPE html> <html> <head> <script> function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","ajax_info.php",true); xmlhttp.send(); … ![]() | |
Re: Use JQuery or HTML5 tags to get this done as like mentioned by @phorce.. :) | |
Re: Read http://webdesign.tutsplus.com/articles/seo-articles/meta-tags-and-seo/ | |
Re: here you go... http://www.9lessons.info/2011/03/facebook-graph-api-to-post-status.html | |
Re: Try this PHP code, <?php // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ?> | |
Re: echo "<ul>"; foreach($loop as $mydata) { echo "<li>".$mydata."<ul>"; foreach($mydata->values as $values) { echo "<li>".$values->value . "</li>"; } echo "</ul></li>"; } echo "</ul>"; | |
Currently am running a website. Its good for SEO, currently i added few self written widgets to retreive data using AJAX. I needs to make those AJAX widgets SEO friendly. Give some suggestions.. Thanks in advance.. ![]() | |
Re: HI, Check below links with examples, 1. http://stackoverflow.com/questions/11504335/what-is-the-difference-between-a-and-a-in-php 2. http://stackoverflow.com/questions/2715654/what-does-mean-in-php?lq=1 | |
Re: Will u share click button HTML code too? Are you using JS also? If means, share that tooo.. :) | |
Re: Try http://css-tricks.com/perfect-full-page-background-image/ & http://css-tricks.com/forums/discussion/19221/background-size-and-ie8/p1 Hope this will helps you.. :) | |
Re: Instead of this structure mysite.com/?category=sports. why dont you try the permalink structure like this mysite.com/category/sports? Structure which i mentioned also good for SEO.. :) Login into your Wordpress Dashboard Go to Settings -> Permalinks | |
Re: 1. addslashes 2. stripslashes Be safe in handaling users, 1. Never trust users 2. Validate input data strictly | |
Re: Try this, $UserName = $session->username; $strSQL = "SELECT * FROM employee WHERE proj_mgr = $UserName"; | |
Re: 404 Error for abve URL [http://www.apprs.com/noruw/portfolio/]... :( | |
Re: This can be done in many ways, here is the one quick solution.. <script> function PerformAction() { var SelectedValue = document.Form.SelectValue.value; if(SelectedValue == "mail") document.getElementById("VisibleID").style.visibility="visible"; else document.getElementById("VisibleID").style.visibility="hidden"; return false; } </script> <form action="" method="get" name="Form"> <select onchange="PerformAction()" name="SelectValue"> <option value=""></option> <option value="mail">Mail</option> </select> <div style="visibility:hidden;" id="VisibleID"> Username : <input name="" … | |
Re: OMG... y jquery.min.js? Try to explain your problem in detail plz... :) | |
Re: Problem may be in closing DIV tags... make sure HTML tags are closed properly.. | |
Re: Dont perform else.. Once performed, it will redirect to index.jsp. your form data will be cleared. Remove below lines: else { document.location.href = "index.jsp" } | |
Re: Compare the stored Date field & the Date in loop from/to report requried using IF stmt. Add all the Amount as seperate variables for each date & show the result. Note: Above point may increase CPU usage. | |
Re: A method for accessing files in server using FTP. When server prompts for username & password. Give username as anonymous or ftp. Password can be anything u wish. But, most of the servers are well protected. :) | |
Re: Instead of setting width, height in **pixels / em** in CSS. Better use **percentage**. | |
Re: echo "$file <a title='Delete book' href='Page-name.php?del=$file'>X</a>"; if(isset($_REQUEST['del'])) { $link = './book/'.$_REQUEST['del']; if(unlink($link)) echo "Success"; else echo "Failed"; } | |
Re: http://stackoverflow.com/questions/2076299/how-to-close-current-tab-in-a-browser-window | |
Friends, Kindly suggest me best PHP Open Source for Social Networking website. Looking forward your best suggestions. Thanks in advance... ![]() | |
Re: profile=new Object(); profile.FName="Vijayakumar"; profile.Lname="S"; document.write(profile.FName+" "+profile.Lname); Created Object & new instances of an Object & added 2 properties to it... :) | |
Re: HI garyjohnson, For auto align center using DIV, margin & width plays a important role. So, u must assign the width to fix the issue. Eventhough, there is few more possiblities to fix, here are the details, Fix 1: #overlay { position:absolute; position:fixed; z-index:1; width:100%; height:100%; background-color:rgba(0, 0, 0, .8); … | |
Hi all, Currently am developing a wordpress blog to download free resouces. I need a pure PHP script that allow useres to download files after liking my facebook page/follow my twitter page. Thanks in advance... | |
Re: Its very easy to do, Just change extension .html to .php. Run this on server. It will works fine. |
The End.