39,393 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
190
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
355
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
349
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 davy_yg

site/views/index.php <?php foreach($pic as $pic_item): ?> { <img src="<?php echo base_url('assets1/images/slider/'.$pic_item->pic_item );?>"> } <?php endforeach; ?> controllers/Cspages.php public function index() { $this->load->model('gallery_model'); $pic_unique_id = 18; // slider $data['pic'] = $this->gallery_model->get_picture($pic_unique_id); $this->load->view('index', $data); } models/Gallery_model.php public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures', array('picture_unique_id' => $pic_unique_id)); return $query->result(); } How to fix …

Member Avatar for Mark_k
0
305
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
244
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
220
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
228
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
614
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
724
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
836
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 davy_yg

Hello, Sending messages to this contact address giving an error message. Can anyone interpret why the error message appearing? ----- Forwarded Message ----- This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is …

Member Avatar for cereal
0
207
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
187
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 davy_yg

Hello, I am trying to open pdf link that I place through tinymce. I add the link button through toolbar add or plugin in tinymce: https://www.tinymce.com/docs/plugins/link/ http://www.gsa-constructionspecialist.com/articles/article/detail/visi-dan-misi-training-names-gsa I wonder why I cannot open the pdf link that I place without having to enter the cpanel password? I already set the …

Member Avatar for diafol
0
280
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
125
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
342
Member Avatar for Jacob_10
Member Avatar for JamesCherrill
-4
156
Member Avatar for surendar_1

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

0
161
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
462
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
154
Member Avatar for davy_yg

Fatal error: Call to a member function get_where() on a non-object in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\masterlinkci2\application\site\models\gallery_model.php on line 10 I try this : Line 10: $query = $this->db->get_where('galleries_pictures',array('pic_id'=> $pic_unique_id)); class Gallery_model extends CI_Model { public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures',array('pic_id'=> $pic_unique_id)); return $query->result(); } } IN Controller: public function index() …

Member Avatar for davy_yg
0
2K
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
977
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
332
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
395
Member Avatar for davy_yg

The following code: <a href="<?php echo base_url('cpages/viewpicture/'.$this->uri->segment(3)); ?>" class="delete">BACK</a> Shows: BACK uri->segment(3); I am trying to erase uri->segment(3); part but do not know how to?

0
137
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

The End.