15,697 Topics

Member Avatar for
Member Avatar for abim usman

$mysql_hostname = "localhost"; $mysql_user = "root"; $mysql_password = ""; $mysql_database = "loan"; $connect = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Something went wrong..."); mysql_select_db($mysql_database, $connect) or die("Something went wrong..."); if(isset($_POST['btn_submit'])) { $datess = $_POST['datess']; $control = $_POST['control']; $payee = $_POST['payee']; if(!empty($datess) && !empty($control) && !empty($payee)) { mysql_query("INSERT INTO `sales`(`datess`, `control`, `payee`) VALUES …

Member Avatar for klemme
0
297
Member Avatar for Siberian

Hi, I was hoping I can get some help. I've been searching and searching for a lightbox that works with SrcSet so I can display different images based on viewport width. Most to which I have found; don't support SrcSet but presentation wise, are exactly what I want, somewhat a …

Member Avatar for Siberian
0
868
Member Avatar for slowlearner2010

Hi guys, I try to calculate number of month between 2 selected dates and i just got this code. The problem is this code calculate number of days and i try change the code from **var days = (end - start) / (1000 * 60 * 60 *24) ;** to …

Member Avatar for Haji Sameon
0
2K
Member Avatar for rhodoscoder

function otherfunction (arg){ console.log(arg); } function executeFunction(otherfunction){ } executeFunction(otherfunction( "hello") ); This seems redudant , suggestions??

Member Avatar for diafol
0
107
Member Avatar for Keep_1

hello , I running google map api with multiple select of category (checkbox), everything fine working , but I dont know how to link(when u click on marker) form market window to page , if my page loop , any examples or suggestion.

Member Avatar for AleMonteiro
0
65
Member Avatar for karthic2914

1) initially i have a row if the user click save & next button it will say you have 3 fields missing 2) if the user click the addmore button and he did not type any value in the text field then he click the save and next button it …

Member Avatar for diafol
0
246
Member Avatar for AntonyRayan

HI, In a page I load table in while loop with time duration calculation for multiple times. I want to display time difference in their respective rows. Here I included my code. <?php $a = mysql_query("SELECT * FROM user")or die(mysql_error()); $a_count = mysql_num_rows($a); if($a_count > 0) { ?> <table border="1" …

Member Avatar for diafol
0
276
Member Avatar for dawbin

Trying what I thought was a simple way to extract html tags. In this example I'm expecting an array with 4 elements but I get only one... am I missing something? var htm="<a></a><b></b>"; var patt = /<.*?>/gim; var a = patt.exec(htm); alert(JSON.stringify(a)); Expected: ["<a>","</a>","<b>","</b>"] But I get: ["<a>"]

Member Avatar for Johnny1
0
135
Member Avatar for Yousef Altaf

I was trying and trying to get this to work as expected I got this chain drop down menu to work but the problem how can I edit or retrieve data to edit pls if you have time look at my script here on (MS oneDrive) https://onedrive.live.com/redir?resid=B6ED478A72FB6A78!33834&authkey=!AO9oNU_4snXOqH4&ithint=file%2czip the three drop …

Member Avatar for diafol
0
202
Member Avatar for AntonyRayan

Hi, I need your help for forgot password decryption. When a user registers , his password will be encrypted using md5(); and When he sign in, I will encrypt his password using MD5() and I will compare it with value already stored in to table, My problem is, If he …

Member Avatar for diafol
0
255
Member Avatar for AntonyRayan
Member Avatar for mexabet

I'm experiencing an issue deleting data via PHP/MySQL query. The following is the error message: Delete product category failed. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 This is …

Member Avatar for cereal
0
781
Member Avatar for abim usman

<h4>Both Product fix price. if checkbox is check and chose quantity automaticaly total</h4> <p class="one">Product Quantity</p> <div class = "checkbox"> <input type="checkbox" name="abim[]" id="tab_price" value="100" onkeyup="AutoCalc(this)">Samsung TV <input type="number" id="tab_quantity" value="0" onkeyup="AutoCalc(this)"><br/> <input type="checkbox" id="mineral_price" name="abim[]" value="200" onkeyup="AutoCalc(this)">SonyVaio TV <input type="number" id="mineral_qunatity" value="0" onkeyup="AutoCalc(this)"><br/><br/> Total <input …

0
83
Member Avatar for samertaha

hello i have an online gallery i used blueimp plugin to get the good features in it like lightbox and touch support ... you can look on it here : [www.aburaga.com](http://aburaga.com/en/gallery) as you see its a big cakes gallery with many categories and pagination ( i built it with codeigniter/php …

Member Avatar for samertaha
0
558
Member Avatar for mintu_2

LightGallery is counting wrong number of images.. here is [jsfiddle code..](http://jsfiddle.net/jetnku0x/3/). In this jsfiddle i am append dynamical element with a div that is in html file.. Please check manually ... Why lightgallery is count wrong images ?

Member Avatar for mintu_2
0
699
Member Avatar for zelrick

Hello DaniWeb Community, I have a question about changing the symbol of my tracker. I am using google.maps.SymbolPath.CIRCLE Can I change this to a image of mine? jpeg / png file If yes, How I can do it? Thank you and God Bless -Tap

Member Avatar for JamesCherrill
0
574
Member Avatar for abim usman

<html> <body> <form action="#" method="post"> Addition 1: <input type="text" id="add1" name="add1" onkeyup="AutoCalc(this)" /> Subtraction 1: <input type="text" id="sub1" name="sub1" onkeyup="AutoCalc(this)" /> Addition 2: <input type="text" id="add2" name="add1" onkeyup="AutoCalc(this)" /> Subtraction 2: <input type="text" id="sub2" name="sub1" onkeyup="AutoCalc(this)" /> <label> Total</label> <input type="text" id="total" name="total" disabled="disabled" /> </div> </body> </html> <script> function …

Member Avatar for rubberman
0
191
Member Avatar for Florea

Hy there... I have this problem and I don't know how to fix it....I didn't get help from the theme creator and I am asking your help:) In product list - list mode, I have the product with the ingredients and on the second row I want to put the …

Member Avatar for gentlemedia
0
372
Member Avatar for toxicandy

I have a page running scrolling nav bootstrap theme which essentially means for me that I have multiple forms on one page. The problem I am having is whenever someone submits any of the 3 forms it sends data from all forms on the page. The code is below, I …

Member Avatar for toxicandy
0
402
Member Avatar for AntonyRayan

I included my mail attachment code in php But it is not working correctly, Please give me a alternate solution which works in online <?php //define the receiver of the email $to = 'demo@gmail.com'; //define the subject of the email $subject = 'Test email with attachment'; //create a boundary string. …

Member Avatar for AntonyRayan
0
316
Member Avatar for Izzah_2

Hi, Ive been follow the tutorial in the youtube . I need to upload images to my webpage but the code seem not working. It also doesnt not appear any errors from the code. Can someone please have a look at my code, please? <!-- dbase.php to connect between php …

Member Avatar for Izzah_2
0
4K
Member Avatar for anayaarchi

Hi, How to develop Mobiel app in html 5? which framework use for it? By Anaya,

0
68
Member Avatar for pro-tek
Member Avatar for Jatinder_1

problem in getting live data in my web page search_ajax.js $(document).ready(function() { // Icon Click Focus /*$('div.icon').click(function(){ $('input#search').focus(); });*/ // Live Search // On Search Submit and Get Results function search() { var query_value = $('input#search').val(); $('b#search-string').html(query_value); if(query_value !== ''){ $.ajax({ type: "POST", url: "search_ajax.php", data: { query: query_value }, …

0
111
Member Avatar for gunnarflax

Hi, I'm trying to read a cookie that I've set with php with javascript. The cookie is for storing the username when logging in to a site. If the cookie has been set I want the focus in the inline popup to target the password field so that the user …

Member Avatar for Zsolt
0
5K
Member Avatar for shany0786

this is js code i am calling "is_loggedin" from ajax in php folder in login.php but it always gives undefined index action $(document).ready(function(){ $('.carousel').carousel({ pause: "false" }); }); $("#loginId").click(function(){ $("#modalLoginId").modal("show"); }); $("#registerId").click(function(){ $("#modalRegisterId").modal("show"); }); $("#login-btn").click(function () { var loginpasswordJSON = JSON.stringify({ "username": $('#login_username').val(), "password": $('#login_password').val(), }); alert(loginpasswordJSON); console.log ("Login Started"); …

Member Avatar for diafol
0
491
Member Avatar for Aeonix

Website is exclusively built with `.click()`, `onclick=""` and alikes. I'd like to use a plugin that there is out in the world, which would allow me to use custom scrollbar to scroll content of a lengthy `<div>`. I've tested about 6, whom 1 didn't work (maybe I just can't read), …

Member Avatar for Sanchit_Sahu
0
428
Member Avatar for AntonyRayan

Hi, It is a new for me. In a site, I have 10 to 15 menus. I want to know a user what are the menus he accessed , how many times he visited a particular menu from he logged in, and from which IP Address. How to know these …

Member Avatar for rch1231
0
133
Member Avatar for pro-tek
Member Avatar for AntonyRayan

In local, mail works perfectly. But in online I got error like: SMTP->ERROR:Password not accepted from server:534-5.7.14 Please log in via your web browser 534-5.7.14 then try again. Learn more at 534-5.7.14 https://support.google.com/mail/answer/78754z190sm15009353oig-25 - gsmtp Message was not sent.mailer Error:SMTP Error:Could not connect to SMTP host.

Member Avatar for cereal
0
234

The End.