39,320 Topics

Member Avatar for
Member Avatar for amith_ami

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.

Member Avatar for cereal
0
471
Member Avatar for Stefce

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 …

Member Avatar for Dani
0
189
Member Avatar for SimonIoa

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'; …

Member Avatar for SimonIoa
0
349
Member Avatar for shany0786

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 …

Member Avatar for shany0786
0
348
Member Avatar for monst3rworld

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; …

Member Avatar for Krishna_23
0
2K
Member Avatar for Jacob_10

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 …

Member Avatar for diafol
0
224
Member Avatar for Joseph_26

<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 …

Member Avatar for gentlemedia
0
218
Member Avatar for janicemurby

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 …

Member Avatar for diafol
0
226
Member Avatar for Jacob_10

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 …

Member Avatar for diafol
0
611
Member Avatar for Akshay_5

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 …

Member Avatar for john_111
0
2K
Member Avatar for shany0786

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 …

Member Avatar for shany0786
0
714
Member Avatar for Carlo_1

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 …

Member Avatar for rproffitt
0
810
Member Avatar for Owais_1

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 = …

Member Avatar for broj1
0
2K
Member Avatar for bharathi_2

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 …

Member Avatar for diafol
0
184
Member Avatar for Saad_8

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 …

Member Avatar for diafol
0
382
Member Avatar for Jacob_10

Hi I'm new to php,i need a code for issue and edit in library management system can someone please help

Member Avatar for JamesCherrill
0
123
Member Avatar for phphp

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 …

Member Avatar for diafol
0
341
Member Avatar for Jacob_10
Member Avatar for JamesCherrill
-4
154
Member Avatar for surendar_1

Please help me .. how to calculate the binnary mlm calculation in php and mysql ... thanks in advances ...

0
160
Member Avatar for Lloyd_4

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 …

Member Avatar for Dani
0
461
Member Avatar for phphp

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 …

0
153
Member Avatar for UI

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) …

Member Avatar for rproffitt
0
976
Member Avatar for UI

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. …

Member Avatar for rproffitt
0
331
Member Avatar for Andera

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 …

Member Avatar for Daniel_69
0
391
Member Avatar for phphp

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: …

Member Avatar for pty
0
5K
Member Avatar for Lloyd_4

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 …

Member Avatar for diafol
0
267
Member Avatar for amith_ami

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 …

Member Avatar for diafol
1
403
Member Avatar for jailani_1

hey guys ...... im trying to insert/ update the marks in marks table(database) of multiple students at one click of button in php ,how can do iit plzzz reply me or send code for it on my gmail: `<Do not solicit for help by email>` plz help out me thank …

Member Avatar for cereal
-1
287
Member Avatar for Mygar

Hello. I've been learning a bit of PHP for a small school project. The project is almost done just that 1 thing is missing. I need a way to output something I searched into CSV / Excel. I found a script which im using currently. It works beautifully I just …

Member Avatar for rproffitt
0
358
Member Avatar for fazal_1

i have an array $value=array (2,4,6,3,2,4,3,8); and i need only the values thar are repeating it self in the array that would be 2,4,3 i have this code written <?php $value=array (2,4,6,3,2,4,3,8); $arrlength = count($value); for($x=0; $x<$arrlength; $x++){ $value[$x]; for($y=0; $y<$arrlength; $y++){ $value[$y]; if($value[$x]==$value[$y] ){ echo $value[$y]; } } echo …

Member Avatar for fazal_1
0
501

The End.