Check the field value Number or not in Javascript

<script type=”text/javascript”> numbersonly(myfield, e, dec) { var key; var keychar; if (window.event) { key = window.event.keyCode; } else if (e) { key = e.which; } else { return true; } keychar = String.fromCharCode(key); // control keys if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) ) { return true; } else if … Read moreCheck the field value Number or not in Javascript

Tab view design in html

# MAKING OF TAB VIEW DESIGN:: <style> .sh14-prohead { background-repeat: repeat-x; height: 20px; font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; font-weight: bold; font-size: 12px; padding: 5px; } .sh14-pro-price { text-align: center; } .pdes24-head224 li { padding: 5px; margin: 5px; background: #CDDC39; text-align: center; } .pdes24-head224 li a { text-decoration: none; color: black; } </style> <script> function … Read moreTab view design in html

How to Join sql query in php

$SELECT = “c.city_id,c.city_title,c.state_id,cn.cnt_id as country_id”; $FROM   = “td_city as c INNER JOIN td_states as s ON c.state_id=s.id INNER JOIN td_country as cn ON cn.cnt_id=s.country_id “; $COND   = “c.city_id > 0  AND cn.cnt_id = 101 ORDER BY c.city_id”; ## In Codeigniter Query is:: $this->db->select($SELECT); $this->db->from($FROM); $this->db->where($COND); $CITY_QUERY = $this->db->get(); $CITY_RESULT = $CITY_QUERY->result_array();