39,323 Topics
| |
Aight folks! So I'm trying to do some custom coding within Wordpress and my plan is to create custom post types which I want to display within custom widgets. I thought that would be fun for a learning experience.... ahum... and I wanted a widget/plugin that outputs some proper semantic … | |
Hi to all the old familiar faces, have not been here for a while... I have read up on tons of samples and answers (and even more on how cryptography works) but none answers my scenario. I am creating a new user from desktop app in VB.Net. User need to … | |
I want to collect basic user information when they land on an index page, such as: IP Country City State Zip Code I've looked into sites such as ipinfo.io that offer a service regarding these details, but think it may be easier to collect the same info via PHP. From … | |
I have affiliate api of amazon,ebay,flipkart and snapdeal. I want to combine all api results to my web page with pagination. Like this website https://www.compareraja.in/mobiles.html If possible please suggest any ideas. I am using opencart for development. | |
Is it good idea/possible to encrypt everything in your database (Emails, User Input, Passwords :), everything.. )? Is there something which will shut down the current PHP script OR website entirely ? **EDIT: This is not sponsored queston i have not donated any money, why is `Sponsored` badge at my … | |
Hello i am getting an error TypeError: data is null i can't find the error. js <script> $(document).ready(function() { username='<?php echo $_GET['public_username']; ?>'; apiBaseUrl='<?php echo $base_url; ?>'; singleArtist(apiBaseUrl,username); }); function singleArtist(apiBaseUrl,username) { var html =''; var encodedata=JSON.stringify({"username":username}); var url=apiBaseUrl+'api/singleArtist'; ajaxPost(url,encodedata, function(data) { if(data.length) { $.each(data, function(i,data) { html += 'dddddd'; … | |
I have scenario where one user can refer two codes to other one will become right and other left.Now this right can have two child left and right and so on same for left child user.... So this is binary tree like strucutre so i am selecting a user from … | |
Hi Everyone, How are you all? Friends i m new on daniweb, and i just want to know that how can i make diamond with stars (*) using "For" Loop in PHP. My Teacher Gives me an assignment to make like this... [code] for ($a=1; $a<=5; $a++) { for($b=1; $b<=5; … | |
HI Dani, I am working on a dissertation project, based on a library management systems. There are a number of features as admin, that needs to operate, which are as follows:- 1. Inserting new books' info 2. Issuing books 3. Fines 4. Editing books details 5. Return books 6. Multisession … | |
<DOCTYPE html> <html> <?phpinclude 'includes/head.php'/?> <body> <?phpinclude 'includes/header.php'/?> </body> </html> am running this code but it is not loading the include files of header and head header <header> <h1 class="logo">logo</h1> <nav> <ul> <li><a href="index.php">Home</a> <li><a href="downloads.php">Downloads</a> <li><a href="complains.php">complains</a> <li><a href="contact.php">Contact us</a> </ul> </nav> </header> head <head> <title>research perefct</title> <meta charset … | |
hi i have the following form where a member chooses how long they want to be be displayed on another page like example below <select name="hours"> <option value="1"<?php if(!empty($hours)) {?><?php if($_POST['hours']=="1") { echo "selected"; } ?><?php }?>>1</option> <option value="3"<?php if(!empty($hours)) {?><?php if($_POST['hours']=="3") { echo "selected"; } ?><?php }?>>3</option> <option value="6"<?php … | |
Hi Dani, I have already posted for the first code, now i want to move on to the next which is issuing books. (due to the closeness of the deadline, i will be posting all areas where i'm having problems) The issue_book.php page is supposed to capture the ISBN, current … | |
I have a database with only one table which has around 2 Million rows and 60 columns. I created a php application with multiple search filters like name, country, state, surname, domain etc which will filter and display the result in HTML table. But the problem is, every text field … | |
Hello every one i am having one doubt i have a set of links[url].Now there is pave ackages like 6 links,25 links package. if two user select 6 link each day and both will have same links[url] .now i when user log in then on adversitment page he visit each … | |
Hi this is my last try before I give up on Forums. I have been asking this question many times, searched the whole Internet and found no answer so far. Can somebody tell me how to insert data in a TablePress table from a form on a webpage(yes like a … | |
i need help in the following code i am trying to create dynamic radio buttons from mysql db and want to insert into another table its not echoing data and not even inserting i am just beginner please help me out thanks in advance <?php $dbhost = 'localhost'; $dbuser = … | |
i did one quiz application using php..in that i display 3 questions from database depending on the category the user select...i display one question per page..when user click on next button i display the next question...and i put timer for every question..when we click on next button every time..i display … | |
HI, I have recently upgraded my mysql database to version 5.1.72 community log. I am having an issue that all my select queries are showing the columns as NULL if there is no entry added for a specific column. For exmaple I have a table table_employee and the employee name … | |
Hi I'm new to php,i need a code for issue and edit in library management system can someone please help | |
Sir I have following codes on login.php <?php error_reporting(E_ALL); ini_set('display_errors', 1); require_once("../includes/connectsql.php"); require_once("../includes/functions.php"); $error = false; $cerror=""; $cur_id=0; $cur_user=""; $cur_email=""; $mypass=""; if(isset($_POST['login'])){ $muser=clean($_POST['username']); $mpass=clean($_POST['password']); $mypass=SHA1($mpass); if (!preg_match("/^[a-zA-Z0-9]+$/",$mpass)) { $error = true; $cerror="Password must contain only alphabets and space"; } if(!filter_var($muser,FILTER_VALIDATE_EMAIL)) { $error = true; $cerror = "Please Enter Valid Email … | |
c Hi I need codes for issue and edit in library management systems | |
Please help me .. how to calculate the binnary mlm calculation in php and mysql ... thanks in advances ... | |
Hi Everyone - I keep getting the following error messages in my log file [19-Jan-2017 22:16:46 UTC] PHP Notice: Use of undefined constant CURLOPT_httpsHEADER - assumed 'CURLOPT_httpsHEADER' on line 22 [19-Jan-2017 22:16:46 UTC] PHP Warning: curl_setopt() expects parameter 2 to be long, string given on line 22 This is the … | |
Sir I have following codes function generate() { var doc = new jsPDF('p', 'pt'); doc.setFontSize(18); doc.text('Chart of Accounts', 220, 50); doc.setFontSize(8); doc.setTextColor(100); var res = doc.autoTableHtmlToJson(document.getElementById("mytable")); doc.autoTable(res.columns, res.data, {margin: {top: 70}}); doc.save("chartofaccounts.pdf"); } I am trying to set font size 8 to text so I used this line doc.setFontSize(8); but … | |
Fellow Php Developers, Googled but no luck to get Php 7 sample snippets for my learning purpose. Can you be kind enough to give me code snippets in Php 7 so I can learn Php 7 faster while gaining work experience building scripts ? I have tailored (but not built) … | |
I would like to learn Php 7. Php 7 tutorials are available online (tutorialspoint.com, etc.) for those who already know previous version which I know not. Been aiting ever since late 2015 but no proper tutorials out yet. php.net is a reference manual and not a tutorial for beginner. Q1. … | |
I am trying to install Zend via a composer command in Linux. I am following the official Zend tutorial. And I am able to make a simple application, which is working perfectly. However, when I follow this tutorial's advice to use composer development-enabl e. But an CommandNotFound Exception is appearing … | |
Sir I have these codes <input type="text" size="11" name="f_date1" id="datepicker-13" value="<?php echo date('d-m-Y', strtotime($f_date1));?>"/> <input type="text" size="11" name="t_date1" id="datepicker-133" value="<?php echo date('d-m-Y', strtotime($t_date1));?>"/> <script> var ja = jQuery.noConflict(); ja(document).ready(function() { ja("#datepicker-133").datepicker({dateFormat:'dd-mm-yy'}).on("change",function(){ var f_date1 = $("#datepicker-13").val(); var t_date1 =$("#datepicker-133").val(); var data = { ff_date1: f_date1, tt_date1: t_date1 } alert(data) $.ajax({ url: … | |
Hi Everyone - I have recently upgraded my hosting enviroment and the php version has changed to Current PHP version: 5.6.27 Now a number of queries do not work as they did before. The below query has stopped working, Any ideas how I can update the query so it works … | |
I'm trying to generate barcode tickets after successful booking and it's working fine. But yesterday (08-Jan-2017) night at 11.59 pm, one customer booked 2 tickets but the ticket sl.no was duplicate. Tthat is both tickets sl.no was 1. Actually it should be 2. But the next customer's tickets sl.no was … |
The End.