1,003 Posted Topics
Re: you can add it on your plugin or theme function. I don't have any time to actually check for my answer. However, I did this long time ago and this is how much I can recall. **Warning!** *Please check the wordpress codex for validity of my wordpress syntax and make … | |
Re: You can build your portfolio similar to whatever is the common requirements in your area. Allow me to use my situation as an example, I can breakdown 3 distinct requirements in the state of California. If I want to be employed as a back-end developer in Orange County, then I … | |
Re: Can you please tell me why you need to send two mysql queries during login credentials validation? For security reason, what these pages tell the user, when they arrived upon redirect? header ("Location: index.php?look=login&err=nun"); header ("Location: index.php?look=login&err=npw"); these are wrong data types. Supposedly, you want 0 and 1 as an … | |
Re: another thoughts.. you can also count the PROCESSLIST to find out if you are on the max connection allowed , then let the next connection to sleep, check on wake up and then sleep if there is not available slot, else let the processes to continue. 150 is a lot … | |
Re: in addition, you may want to get familiarize with the drupal file system. Like many other applications not written in strict MVC design pattern, Drupal is built on the common application design "includes and modules". So anything that you want to alter in this CMS will be either in includes … | |
Re: Honestly, I think you should have not accepted the project without knowing the core requirements. I am not insinuating here that you won't learn the frameworks, but if you haven't seen these frameworks before, I couldn't help myself not to think that you are indeed in a big trouble from … | |
Re: Honestly, your query looks good to me. Unless, you made a mistake in referring to the image. <img src="directory/<?php echo $row['image'];?>" /> should give you something like this <img src="directory/mpb.jpg" /> remember you query looks for the minimum price for each Product_name and not the MIN of all prices. Still, … | |
Re: The script above should have at least more than 2 errors. this alone will give an error if (isset($_POST['submit'])) //&& ($_POST['submit'] == "Submit")){` because this part has been commented out and it will break the if statement //&& ($_POST['submit'] == "Submit")){` if you uncomment the above, this will give you … | |
Re: Honestly, I kind of like the gimmeDotSupport. It is pretty straight forward I think. | |
Re: I don't see programming as a way of manipulating computer system in order to gain controll over it. I think programming is our ability to create complex instructions to test computer's maximum potential. Only fools believe everything they hear. | |
Re: can you open one of them or at least when you see this <script runat="server"> you might also see something like this var sys = require("sys"),http = require("http"); that is for the server side js e.g. node.js . | |
Re: for the template name or style name, you can either store it in database or in xml file. | |
Re: are talking about this [extension](http://www.opencart.com/index.php?route=extension/extension&filter_search=SPAM%20prevention)? Can you tell us exactly, which page these spams are originating from? Is it on your catalog? The reason I am asking is that, I know open cart is written in MVC and knowing the origin of the spam can lead us to the controller … | |
Re: try var_dumping the response from payza. In this case it should be the $info. Also, try var_dumping the $response just below the cURL's curl_close() call. | |
Re: I don't have the source of Magento, but what the error tells us is that whatever is the object of the method getPosition(), it is not being instantiated. You will have to find this on your codes. Please read the codes below as instructions and not the actual method of … | |
Re: IMHO, the only way to push the footer down and keep it there is to have a wrapper that will have a minimum height of 100% and then we can place the header, content and footer inside this wrapper. The content div must have a bottom padding equivalent to the … | |
Re: you can try DirectoryIndex index.php try adding that to your .htaccess file either in the root or your directory in question and let us know if it work. You can read more about this topic [here](http://httpd.apache.org/docs/current/mod/mod_dir.html). | |
![]() | Re: Graduated High School From the world class Tech Magnet School here in California. Although we have football field, I don't know much about playground, I am sure we don't have one. All we have were computers and finest mathematics teachers. Some kids are too young to be in High School. … |
Re: besides from using the deprecated mysql_ function, your query is not properly constructed. It should be constructed like this. Assuming that the $db is the persistent database connection. Make sure to add an error catcher. I am just giving you the most basic example. $result = mysql_query($query,$db); while($row = mysql_fetch_array($result, … | |
| |
Re: I am not aware of any GUI to do this kind of installation, but it is not that hard to install them using comman line. | |
Re: why not record the sales on different table and sort the best combination or group of products that sell the most. Don't make it too complicated. All you need to do is define your own restrictions. e.g number of item sold, which pair of products are the top selling. But … | |
Re: > I understand that you can use c# with it to develop web apps, but I can already do everything I need and more in a webapp with python and sometimes ruby. but those languages that you mentioned are among of the .NET languages e.g iron python, iron ruby and … | |
Re: should be like this $dataid = mysql_fetch_array($studentidResult); | |
Re: line 47: comparison operator incomplete. line 47: php closing tag needed. You need to complete this statement if($expires > and after the statement, you need to close your PHP ?> so that the parser will know where to stop parsing. | |
Re: Both will be good and this new [password_hash](http://php.net/manual/en/function.password-hash.php) function from PHP. | |
Re: index.html must be save as index.php also. Otherwise, anything with <?php will not be parsed by the PHP parser. There are alternatives to .php extension. PHP parser will parse any files with these extensions .php .php3 .php4 .php5 .phtml .inc // carefull with this one. the source can be viewed … | |
![]() | |
Re: You can also try doing something like this if(isset($_POST['submit'])){ var_dump($_POST); } the above should give you two sets of array. Assuming that all items are checked and quantities were filled, the above codes will give us something like this array(3) { ["drink"]=> array(5) { [0]=>string(3) "p/c" [1]=>string(6) "c/half" [2]=>string(3) "b/k" … | |
Re: session is pretty much the standard my friend. Assuming that the users don't turn off their cookie, still you will have to save it to your database for verification. Session will not slow your server to a halt. In today's standards and specifications, the load on the tmp directory is … | |
Re: set $dbtype to public $dbtype = 'mysqli'; instead of mysql | |
Re: **Please ignore my reponse. For some reason, we posted our responses almost at the same time.** echo '<a href="'.$dirpath.'/'.$file.'"> Click here to download '. $file .'</a>'; | |
Re: PyCharm looks promising, but the features I like to have are all in the paid version only. Community version should help beginners and intermediate programmers/developers. | |
Re: I don't understand the need of storing an instance of an object into a session. There are many ways in finding out if an instance of an object is present. There are singleton, factory, and instanceof PHP function that can be utilized. It does not take much to use them. … | |
Re: this is wrong var arr = {/literal}{$a.ins_status|@json_encode}{literal}; alert(arr); it should be written as var arr = {literal}{$a.ins_status|@json_encode}{/literal}; alert(arr); Whatever you want to pass to the template file, it is highly recommended to pass it from the business logic side rather going for the literal. Besides you can always register you … | |
![]() | Re: just create a method for the modal, for example let's use the most common example of bootstrap modal. View page <head> <script type="text/javascript"> $(document).ready(function(){ $("#myModal").modal('show'); }); </script> </head> <body> <!-- the modal. Again, there is nothing here that I wrote, except I added something for the jquery to catch, else … |
Re: Joomla have provided some possible server related problems [here](http://docs.joomla.org/Why_does_your_site_get_messed_up_when_you_turn_on_SEF_%28Search_Engine_Friendly_URLs%29%3F). An alternative way of doing this is by renaming the htaccess.txt to .htaccess included in the distribution as mentioned [here](http://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs). in the htaccess.txt, there is also an instruction there about **Options +FollowSymLinks** must be commented out if causes errors. | |
Re: @raminshahab, here is the array equivalent and you can try either one of the proposed solutions above. I know which one will work and which one will not. Your job now to test each. $json_info = array('data'=> array( 'ucsfeduworkingdepartmentname'=>array('ITS'), 'telephonenumber'=>array('+1 415 502-7575'), 'ucsfeduprofilenodeid' => Array ('39487740' ), 'displayname' => Array … | |
Re: wow, this is pretty scary. I have been sitting in front of my computer for long hours since I was 9 years old. Now, that I am an adult :) I am sitting until 4 AM finishing projects. My eyes can no longer be save, I am wearing prescription glasses … | |
Re: it is also looking good on my side.  code used <div class="text-center"> {% $paginate %} </div> <div class="row" style="border: 1px solid red"> <div class="col-md-9"> Level 1: .col-md-9 <div class="row" style="border: 1px solid blue"> <div class="col-md-6"> Level 2: .col-md-6 </div> <div class="col-md-6"> Level 2: .col-md-6 </div> </div> </div> </div> … | |
Re: Here is a very simple example.. $article = array('1'=>'article one','2'=>'article two','3'=>'article three','4'=>'article four', '5'=>'article five', '6'=>'article six','7'=>'article seven','8'=>'article eight','9'=>'article nine', '10'=> 'article ten'); $this_ad = '<b>this is banner ad</b>'; $perpage = 10; $ad_interval = 2; $i= 0; $out = ''; foreach($article as $item){ $i++; $out .= $item.'<br/>'; for($ad_x = $ad_interval; … | |
Re: > Personally I think Python is better then ruby because it runs on the Django framwork and it can do more. I do respect your affinity to Python. However, why is it that you only mentioned Django framework and not a single framework for Ruby. Have you ever tried writing … | |
Re: you can make the password all lower case. Although I do not agree with the use of a superglobals $_GET to process user credentials, you can do it like this Everytime the form is submitted, you can covert the password to lower case $password = strtolower($_GET['password']; | |
Re: Hi, Try this, [CODE] <?php ## define your url ## change comments tags to the proper syntax as recommended by php.net. ## unless you are a developer, you can give reason why these ## are valid. ## even if the rest of the world would argue that it is wrong, … | |
Re: The table has nothing to do with it. this is the one causing the error <?php if($_POST['submitted'] == true){ ?> you can do something like this <?php if(isset($_POST['submit']) && ($_POST['submitted'] == true)){ ?> |
The End.