-
Replied To a Post in Zend 1 - setting database charset to utf8 in application.ini
@cereal Thank you. -
Created Zend 1 - setting database charset to utf8 in application.ini
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 … -
Began Watching Zend 1 - setting database charset to utf8 in application.ini
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 … -
Created WordPress, Infinite Scroll Plugin, translate string "Loading..."
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 … -
Began Watching WordPress, Infinite Scroll Plugin, translate string "Loading..."
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 … -
Replied To a Post in Looping Object error ?
I am not sure if it is recomended using this, but it is working only if adding 'document.' before 'write': function lw(bat,bat2,bat3){ this.bat = bat; this.bat2 = bat2; this.bat3 = … -
Replied To a Post in report generator plugin with pagination
PHP is executed on the server. Javascript is executed on the client side (in the browser). If you want to create real dynamic pages, I think you should learn Javascript … -
Began Watching report generator plugin with pagination
This is sort of a generic question... I'm at a point where I need to do some report generation with various data from different tables i.e. commissions earned / transactions … -
Replied To a Post in report generator plugin with pagination
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 -
Replied To a Post in Pass SQL query into a PHP array
This works for me: $connection = mysql_connect ("localhost",$database_username,$database_password); mysql_select_db ($database_name,$connection); $result = mysql_query ("SELECT * FROM table",$connection); while($row = mysql_fetch_array($result)){ echo $row['column_name']; } -
Began Watching Pass SQL query into a PHP array
I have a 2 column SQL table as follows: **Product Price** Drill 20 Hammer 15 Screwdriver 5 Screws 2 Nuts 3 Bolts 6 I eventually want to embed a PHP … -
Replied To a Post in Pass SQL query into a PHP array
Does it help? Instead: $statement = $db->query($query); Write: $statement = $db->query($sql); -
Began Watching Looping Object error ?
Why won't this object, loop won't write ? function lw (bat,bat2,bat3) { this.bat = bat; this.bat2 = bat2; this.bat3 = bat3; } var what = new lw ("one","two","three"); for (var … -
Replied To a Post in Looping Object error ?
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 … -
Replied To a Post in Warning: mysql_fetch_array() expects parameter 1
You're welcome! -
Began Watching Warning: mysql_fetch_array() expects parameter 1
I have the following code, and i am having these errors: "Warning: mysql_fetch_array() expects parameter 1 to be resource, integer given in C:\xampp\htdocs\fyp\qmc-login\login.php on line 58 Warning: mysql_fetch_array() expects parameter … -
Replied To a Post in Warning: mysql_fetch_array() expects parameter 1
Try instead: $something = mysql_fetch_array($count); while ($something = mysql_fetch_array($count)){ write: while ($something = mysql_fetch_array($result)){ -
Began Watching show dropdown2 when option in dropdown1 is selected
hey guys. im trying to show a dropdown list and hide input text when an option in another drop down list is selected. dropdown <select name="table-type" id="select-t"> <option value="" disabled … -
Replied To a Post in show dropdown2 when option in dropdown1 is selected
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" … -
Began Watching How to get second last child div id?
how can I get second last child's div id in JS? -
Replied To a Post in How to get second last child div id?
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 = … -
Created Firefox 29 - decimals not displaying in the input of type "number"
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. … -
Began Watching Firefox 29 - decimals not displaying in the input of type "number"
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. … -
Replied To a Post in jQuery autocomplete from local storage
Thank you for help. I finally managed to do it. Here is an example: <input type="text" id="country" /> <script type="text/javascript"> $(document).ready(function(){ // Creating an array with country names and load … -
Began Watching xampp been a pain
hi guys i had a brig problem last night and i had to delete xampp and this then decided to delete all of the file for the website that i … -
Replied To a Post in xampp been a pain
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/ -
Marked Solved Status for Zend MySQL query
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 … -
Replied To a Post in Zend MySQL query
Finally I've got the solution. ->where("FIND_IN_SET($id, TRIM(TRAILING ']' FROM (TRIM(LEADING '[' FROM `id`))))"); 1. First I get rid of the leading '[' 2. Then I get rid of the ']' … -
Replied To a Post in Zend MySQL query
Thank you all for reply. I think it is not possible to use LIKE here because there may be found situation of [12,32] will return true when searching for 2. … -
Created Zend MySQL query
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 … -
Began Watching Zend MySQL query
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 … -
Created XMLHttpRequest set timeout
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 … -
Began Watching XMLHttpRequest set timeout
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 … -
Created jQuery autocomplete from local storage
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, … -
Began Watching jQuery autocomplete from local storage
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, …
The End.