- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 18
- Posts with Upvotes
- 16
- Upvoting Members
- 13
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Computers,tennis, soccer, chess...
- Interests
- Web Programming & Design
- PC Specs
- MS Excell
57 Posted Topics
Re: Try this: http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/ http://windowsvj.com/wpblog/xampp-installation-error-port-80-or-443-already-in-use-apache2-2-service-failed/ ![]() | |
Re: Check jqGrid if it is what you need. http://www.trirand.com/jqgridwiki/doku.php http://trirand.com/blog/jqgrid/jqgrid.html http://www.trirand.com/blog/?page_id=5 | |
I have the following code in application.ini resources.db.adapter=PDO_MYSQL resources.db.params.host=localhost resources.db.params.username=myusername resources.db.params.password=mypassword resources.db.params.dbname=mydb resources.db.params.charset = "utf8" resources.db.params.driver_options.1002 = "SET NAMES utf8" I cheked on the internet and could not find out an answer, may you could help. Why the last row resources.db.params.driver_options.1002 = "SET NAMES utf8" is used, if the charset … | |
I am new in Wordpress. I have installed a plugin "Infinite Scroll". When I scroll down the page to load new articles into the page, a message appear "Loading...". I have tried to translate the message in admin panel, but that was not a translation, just a replacement of the … | |
Re: It worked for me this way: var lw = function(){}; lw.prototype = { getData : function(bat,bat2,bat3){ var params = {}; params[bat] = bat; params[bat2] = bat2; params[bat3] = bat3; return params; } } var what = new lw(); var result = what.getData("one","two","three"); for (var apple in result) { document.write(result[apple]+"<br/>"); } | |
Re: Does it help? Instead: $statement = $db->query($query); Write: $statement = $db->query($sql); | |
Re: Does it help you? <select name="table-type" id="select-t"> <option value="" disabled selected>Types of Tables</option> <option value="seat-r">Round Table</option> <option value="seat-b">Banquet Table</option> <option value="seat-s">Square Table</option> </select><br> No. of seats : <br> <input type="text" readonly placeholder="Select Table" size="8" id="inform" /> <select name="seatno" class="seat" id="seat-r" style="display: none;"> <option value="" selected disabled>No. of seats</option> <option value="6">6</option> … | |
Re: Try instead: $something = mysql_fetch_array($count); while ($something = mysql_fetch_array($count)){ write: while ($something = mysql_fetch_array($result)){ | |
Re: Does it help you? <div id="parent"> <div id="id1">1</div> <div id="id2">2</div> <div id="id3">3</div> <div id="id4">4</div> <div id="id5">5</div> </div> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ var divsTotal = $('#parent div').length-1; var divId = $('#parent div:nth-child(' + divsTotal + ')').attr('id'); alert(divId); }); </script> | |
Hi. I have an input type "number" set to display decimals. For example if I type "5" there should appear "5.0000". It works in Chrome and previous versions of Firefox. Now with Firefox 29 it does not work anymore. Does somebody know what could be the problem? $('#mynumber').bind('focusout', function(){ if(!isNaN(parseFloat($(this).val()))){ … | |
Hello! Is it possible to add autocomplete feature to input field with data loaded from local storage? <input type="text" id="medicine" /> <script type="text/javascript"> $(document).ready(function($){ var medicine = localStorage.getItem('medicine'); console.log(medicine); $('#medicine').autocomplete({source:medicine, minLength:2}); }); </script> I know thta 'source' requires an url, I succeded to make autocomplete with data from mysql. But … | |
Hi. I have a mysql field with a record like: [2,5,11]. I have a query like: $query = $this->select() ->from($this->_name) ->where('id = ?', $id); This query work if record is of integer type: 5. Is it possible to create a query to find 5 in the array? Please advise. Thanks. | |
Hello. I have a function that checks the internet connection. I need to set a timeout to it. I have tried without success to do that. Please help. Here is the function: function isOnline() { if(navigator.onLine){ var uri = baseUrl+'ping'; var xhr = new XMLHttpRequest(); xhr.open('GET',uri,false); try{ xhr.send(); return true; … ![]() | |
Hello everyone, I am trying to retrieve some info from a remote site using PHP DOMDocument and I cannot figure out why the code returns NULL, although the provided ID exists on the page. Please help. $dom = new DOMDocument("1.0", "utf-8"); @$dom->loadHTMLFile('http://sports.yahoo.com/news/messis-tax-hearing-put-back-122033643--sow.html'); $content = $dom->getElementById('yog-content'); var_dump($content); | |
Hi. I am using Zend Framework Models. I have 2 tables: 'results' and 'resources'. Table 'results' has the columns: 'results_id', 'resource_id_team1', 'resource_id_team2', 'match_result'. Table 'resources' has the columns: 'resource_id', 'resource_name'. I want to retrieve the results from the table 'results' and I want to join 2 times the table 'resources', … | |
Hello. I need to create an array dynamically from a string value. Please advise how is it possible to retrieve the array values by keys. $mystring = 'myarray'; $myarray = ['a','b','c']; echo '<pre>'; print_r($$mystring); // it works properly echo '</pre>'; echo $$mystring[0]; // returns error | |
Hello. I have a form with captcha element. The text field displays on the right of the image. How can I make it displaying below the image? $path = Zend_Controller_Front::getInstance()->getBaseUrl(); $captcha = new Zend_Form_Element_Captcha( 'captcha', array( 'label' => 'Type the characters you see in the image below:', 'attribs' => array('id' … ![]() | |
I have a login form 'Application_Form_Login' that I call in 'Application_View_Helper_Auth', so that the signin form appears on all pages. If I login from 'index/index', everything is ok, but it doesn't work correctly if I login from 'index/otheraction' or 'othercontroller/index'. The form code starts as follows: class Application_Form_Login extends Zend_Form … | |
Hello! I have a signup form that is working fine. Here it is a text element for providing the email address: $email = new Zend_Form_Element_Text('email'); $email->setLabel($sessionSettings->tr->translate('email')) ->setValue('') ->setAttribs(array('id' => 'email', 'class' => 'required email')) ->setRequired(true) ->addFilters(array('StripTags','StringTrim','StringToLower')) ->addValidators(array( 'NotEmpty', 'EmailAddress', array('Db_NoRecordExists', true, array('user', 'email_address')) )); $email->getValidator('NotEmpty')->setMessage('Email address field cannot be empty.'); … | |
Hi, all. I have a login form with a checkbox that needs to create cookies if checked. How is it possible to check after the form has been submitted if the checkbox has been checked? I have the following code in 'application/forms/Login.php': $remember = new Zend_Form_Element_Checkbox("remember", array('disableLoadDefaultDecorators' => true, 'required' … | |
Re: $fruit = 'apple'; $$fruit = 'red'; echo $fruit . ' is ' . $apple; // returns 'apple is red' | |
Hi! I have a form in Drupal that is filled up by an user and sent as email to the server. I have created a new module to modify the values in the form after the user submit it and to send them to the server with new values. Here … | |
Re: Can this help you? <?php $dataLevel = [[280, "ANALYZE", 260, 560], [230, "APPLY", 260, 510], [180, "UNDERSTAND", 260, 460], [130, "REMEMBER", 260, 410]]; ?> <script type="text/javascript"> var dataLevel = JSON.parse('<?php echo json_encode($dataLevel); ?>'); for(var i=0; i<dataLevel.length; i++){ document.write(dataLevel[i] + '<br />'); } </script> | |
Re: jQuery('.date-pick').removeClass('hasDatepicker').datepicker({ dateFormat: 'mm-dd-yy' }); | |
Re: Cookies and Sessions are 2 different things: http://php.about.com/od/learnphp/qt/session_cookie.htm | |
Hi all. I have a grid table and I need to set globally 2 kind of values for **emptyrecords**: 1. 'Nothing to display from the DB' -> if no data is retrieved from mysql 2. 'No data matches the search' -> after using search and nothing matched. Till now I … | |
Hi! I have a Zend project and I would like to implement a login form in the header of the site in such a way, that if a user is not logged in, he can use the site, but the form is always there, no matter what pages he access. … | |
Re: Check the picture properties, it may be read-only. Then you may change the code to: $old = "./images/general/item2.jpg"; $new = "./images/general/item44.jpg"; if(file_exists($old)) { rename($old, $new) or die('Error renaming file.'); echo "The file has been renamed successfully."; } else { echo 'The file does not exist.'; } | |
Re: Hello! I have the same problem and I have solved just half of it. I have downloaded a javascript plugin 'jsTimezoneDetect' (https://bitbucket.org/pellepim/jstimezonedetect/downloads) and linked it in the header. Then I wrote the following code that is returning the timezone: <script type="text/javascript"> var timezone = jstz.determine(); var user_timezone = timezone.name(); </script> … | |
Re: I use XAMPP on Windows OS. It includes apache server, mysql database, php, and other. If you want to use it, first you need to download and install **Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)** from http://www.microsoft.com/en-us/download/details.aspx?id=5582 , then download and install XAMPP from http://www.apachefriends.org/en/xampp-windows.html#641 . And you are … | |
Re: You can use **jQuery User Interface Dialog**: http://jqueryui.com/dialog/#modal-form | |
Re: http://www.webmaster-talk.com/php-forum/78717-differences-between-php4-and-php5.html | |
Hello. I have created a new Zend project, created a new model class to get some data from the database. If the environment is set to 'development', the data from the database are displayed properly in the browser, but after setting the environment to 'production', the following error appears: **An … | |
Hi all. I need to fix a bug in a code, it is not displaying properly (it appears in the upper-left corner and when I try to click on it, the page reloads). I cannot figure it out myself. Please help. <div class="btn_center" style="padding: 0 0 10px;"> <fieldset> <div class="edit_entry … | |
Hello. I am curious if it is possible to create functions dynamically in such a way, that (1) the names of the functions to be retrieved from an array and (2) these names could be used also inside the functions. I have a code that is solving the first problem, … | |
Hi. I use a fuction to retrieve some information from a remote site: $dom = new DOMDocument; @$dom->loadHTMLFile($url); $page_content = $dom->saveHTML(); When I echo the content, some characters appear like 'á'. I have tried many things from the internet, but nothing helped. Is there a solution? | |
I have a Motorola tablet, sometimes when I fill out a form, when I select a text-field by touching the screen, actually it selects an upper text-filed. Do you know what could be the problem? | |
Hi all. I have got a code that detects the most mobile devices except Samsung Galaxy S3 (there may be other exceptions as well). Please advice how is it possible to detect the device Samsung Galaxy S3. My code is: <script type="text/javascript"> var isMobile = { Android: function() { return … | |
Hi. I have a select box with the id=1. I need a solution for: when changing the select box with the id=1 to appear another select box with the id=2 and when changing the select box with the id=2 to appear another with the id=3, and so on. I have … | |
Hi all. For 3 days I have searched the web to find out how it works, unfortunatelly with no success. I need to compare the encrypted haptcha code with my text, both of them sent by a form. if(!isset($_POST['my_text'])) { $view = new Zend_View(); $captcha = new Zend_Captcha_Figlet(array( 'name' => … | |
Hi all. I have 2 pages: 1. that provides data from mysql in json encoding if a correct "key" is provided, in my case the "key" sent by method post should be "1". Link: http://semaffiliate.local/public/api/getemployees Code in Zend: public function getemployeesAction() { $key = $this->getRequest()->getPost('key'); if (isset($key)) { if ($key … | |
Hi all. I am a beginner in Zend and I am wondering if there is any good book or tutorial for developing applications with Zend Framework, using json for data encoding and decoding and how to use jquery with Zend. Thanks. | |
Hello. I have a larger database that I want to import and I cannot do that using phpmyadmin. I tried to do this in many possible ways by command line, but I get message 'wrong syntax'. I have Windows Vista, MySQl version 5.5.24, wamp server. The path to mysql.exe is: … | |
Hello. The code below returns an error. Please advise what is wrong with it. Thank you. class Login { private var $good_username; private var $good_password; public function Authentification () { private $this->good_username = "myusername"; private $this->good_password = "mypassword"; } } | |
Hello. I want to get data from a table. I wrote the folloing JavaScript code: var homeTeam = document.getElementById('home').firstChild.data; The html code for the table is: <table> <tr> <td id="home"><span class='yellowcard'></span>Tottenham</td> <td id="away">Chelsea</td> </tr> </table> How is it possible to get the word 'Tottenham' in this case? My JavaScript code … | |
Re: I'm wondering just if it is possible to make the same in php without being necessary to press a button. | |
Hi. In March current year I started learning html, css, php, mysql, and a month ago started with Javascript. I have a webpage that I am working on to have practical tasks for finding solutions to them. I have created a Javascript code that colores the rows of a table … | |
Hi. I have a javascript code inserted before closing tag </body> that is meant to change the color of a table row when the mouse is placed over it. It works only when I remove the css file. Please advise what is the problem, I need them working together. The … | |
Hello. Please advise what is wrong in the following code that align and border attributes change when mouse is over the table, except the background color. <table id="myTable" width="200px" cellpadding="0px" cellspacing="0px"> <tr> <td>One</td> <td>Two</td> <td>Three</td> </tr> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> </table> <script> myTable.onmouseover = function(){ myTable.setAttribute("align","center"); myTable.setAttribute("border","1px solid"); myTable.setAttribute("bgcolor","#FF0000"); … |
The End.