39,393 Topics

Member Avatar for
Member Avatar for rpv_sen

Hi I am trying to display count of a row using function with get values. Please help me to fix the issue **class** class Users { private $conn; private $db_name= "DATABASE"; public function __construct($db) { $this->conn = $db; } /*Join Two Tables with where condition and order by*/ public function …

Member Avatar for rpv_sen
0
596
Member Avatar for NuGG

Ok so I have the following code for a table with CSS rules designed to "collapse the table horizontally" on smaller screens... <table> <thead class="thead"> <tr> <th>a</th> <th>b</th> <th>c</th> <th>d</th> <th>e</th> <th>f</th> <th>g</th> </tr> </thead> <tbody> <tr> <td data-label="a">1</td> <td data-label="b">2</td> <td data-label="c">3</td> <td data-label="d">4</td> <td data-label="e">5</td> <td data-label="f">6</td> <td …

Member Avatar for NuGG
0
538
Member Avatar for Robert_36

Hello Everyone, I have issue with calling woocommerce custom taxonomy template: ## Current Paramlink Structure: ## **Common Settings: ** Custom Structure: /%category%/%postname%/ 1) I have created custom taxonomy post type "product" with its slug "wooauthor". **childtheme/woocommerce.php** elseif(is_tax('wooauteur') && !is_archive('wooauteur')) { echo "TAXONOMY"; woocommerce_get_template( 'taxonomy-wooauteur.php' ); } elseif((is_archive('wooauteur') && is_tax('wooauteur')) && …

0
78
Member Avatar for developer707

Hello to everyone, Currently I am building a web application in php. The users have option to upload/download files into the server folders, but the issue is that they should also edit at least some types of documents(Word & Excel) that are uploaded online via the browser. I have seen …

Member Avatar for rproffitt
0
206
Member Avatar for jkon

This is about “https://www.daniweb.com/web-development/php/tutorials/499320/common-issues-with-mysql-and-php” i created a new thread because that is a great tutorial and I believe that comments underneath it would troubled the reader. Hello Diafol , I believe that this tutorial should be linked in the “read first” section , but to be honest I don't believe …

Member Avatar for diafol
2
692
Member Avatar for diafol

## Contents ## Overview 1. Alternatives to Deprecated mysql_* Functions 2. SQL Injection: What to do with $_POST and $_GET variables 3. How to Insert Tablenames and Fieldnames Properly 4. What to do With Dynamic Values? 5. How to Use Aggregate Functions (COUNT, SUM, MIN etc) 6. How to Paginate …

Member Avatar for developer707
6
5K
Member Avatar for Jiby_1

$headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: testing <test@gmail.com>' . "\r\n"; $subject = "testing"; $content = " //html content question How to use foreach loop inside this ? "; $sent=mail("test@gmail.com",$subject,$content,$headers);

Member Avatar for Jiby_1
0
270
Member Avatar for javed_4

I am trying to add a functionality of uploading image while adding new data but I am not able to achieve it. I will provide my code to you. Could you please help me to achieve it? Following is my code, I have three files namely index.php, script.js, func_events.php index.php …

0
208
Member Avatar for ManikandanM

Please guide me. Im begginer in Sql. Im working through task tracking system in php. I need know how to display particular username details using query? Since Im getting all userdetails by single username and password..

Member Avatar for rotten7
0
88
Member Avatar for iharrythomas

Hello, I am using simple web application, But I want to upgrade the PHP version 5.25 to version 5.3 which is mostly recomended thank you

Member Avatar for jkon
0
109
Member Avatar for Randy_2
Member Avatar for diafol
0
57
Member Avatar for basil60

Hi I'm trying to get reviewerid, firstname and last name through a drop down selection box in my html form. The code below is line 26-38 from the attachment. Currentl, it echoes to the browser much of what you see here, rather than pulling the data and displaying it in …

Member Avatar for diafol
0
128
Member Avatar for Ventech_IT

Hi Everyone, I need some advice...i am building a website for a client and would like to integrate a feature where when he creates a new blog post on the site a link to that post is sent to all his social media platform how would i go about doing …

Member Avatar for diafol
0
265
Member Avatar for blueguy777

How to search a string in table i.e. searchstring = "Gandhi Chowk" actual code: if(isset($_POST['companyId'])){ $companyId = $_POST['companyId']; } if(isset($_POST['RouteName'])){ $routeName = '%'.$_POST['routeName'].'%'; } if(isset($_POST['cityName'])){ $cityName = $_POST['cityName']; } // We Will prepare SQL Query $STM = $dbh->prepare("SELECT routeName FROM route WHERE routeName LIKE :route"); // bind paramenters, Named paramenters …

Member Avatar for blueguy777
0
243
Member Avatar for Jiby_1

*) when we click addmore and add content for the below code 2 textboxes will appear extra?? how to avoid that??please help <?php include_once 'config.php'; if (isset($_POST['submit'])) { $text1 = $_POST['boxes']; $text2 = $_POST['boxes1']; foreach($text1 as $a => $b){ if (!isset($text1[$a])) { $text1[$a] = null; } echo "<input type='text' name='boxes12' …

Member Avatar for diafol
0
136
Member Avatar for babir

I want to create a page that contains all searches from my Database. And want to create link for individual searches like- index.php?db=my_db&token=f019813a84dedee74a047b66f489d508 please help me....

Member Avatar for diafol
0
130
Member Avatar for Subrata_1

Hi all, I am trying to develop client server web service using soap wsdl but my code giving proper out put where input given is correct.If any body can fix this? My code attached herewith...and I got the code from the link https://tommorrisblog.wordpress.com/2015/02/07/soap-wsdl-examples-with-php-and-python-scripting/ client.php <?php require_once "lib/nusoap.php"; //$client = new …

Member Avatar for Subrata_1
0
296
Member Avatar for gtel

Ok, i need your expertise on this. Would you still consider a procedural type of a php project that uses the obsolete mysql connect, as long as it works great and the ui is awesome? *someone used it.so i'm wondering

Member Avatar for diafol
0
146
Member Avatar for davy_yg

Hello, I am trying to style google map: like: http://www.akronyms.net/demo/arvin-html/v_1.5/ How? Here is a references: https://developers.google.com/maps/documentation/javascript/styling What I do not understand is to create a grey map I should include the following array variable: var styleArray = [ { featureType: "all", stylers: [ { saturation: -80 } ] },{ featureType: …

Member Avatar for cereal
0
616
Member Avatar for anmol.raghuvanshi1

I am trying to populate dropdown with database what i am actually trying to do i have 3 drop downs country ,state and city and i want if user select any country crossponding states are shown in dropdown and crossponding cities releated to state are shown in city dropdown.I don't …

Member Avatar for anmol.raghuvanshi1
0
375
Member Avatar for Olalekan J

Hello all, I have a problem with geting the div content which was populated from a php/mysql script. please i need help. in the modal. the only echo i get is the last variable passed, regardless of the which ever dif i click. <?php require_once 'connect.php'; if(isset($_GET['userID'])){ require_once 'dbconfig.php'; $query …

Member Avatar for jkon
0
249
Member Avatar for chaitu11

Hi please go through this issue and suggest me http://stackoverflow.com/questions/32294820/where-to-locate-facebook-sdk-v4-vendor-directory-in-codeigniter-3-0

Member Avatar for cereal
0
252
Member Avatar for basketmen

Hi guys, In WHM > Easyapache, there is this PHP extension : Safe PHP CGI - prevents users from overriding system php.ini my question, can i exclude a user from this, so the user can increase like memory_limit in they account? if not, is there alternative for this that allowed …

Member Avatar for rubberman
0
262
Member Avatar for praba_web

Ajax form submission not happening. **view:** <form method="post" name="addwishlists" id="addwishlists" enctype="multipart/form-data" > <input type="hidden" name="deal_id" value="<?php echo $deal_id; ?>" > <input type="hidden" name="cust_id" value="<?php echo $cust_id; ?>"> <input type="submit" value="Add Wishlist" id="addwishlist" class="btn btn-primary" /> </form> **My code is:** <script> //no need to specify the language $(document).ready(function(){ $("#addwishlist").click(function(e){ // passing …

Member Avatar for gabrielcastillo
0
582
Member Avatar for babir

Please help me.... I want to upload up to 5 photos and save in database. I want by selecting photo it will upload automatically and then the selected photo will appear in the page. It will occure with one by one photo, up to 5 photos and the photos can …

Member Avatar for gabrielcastillo
0
546
Member Avatar for chibex

I have web based inventory system written in PHP and going to attach barcode reader to the web interface. Any idea how to use webbased interface to extracting information from barcode data? Does anybody have expirience with barcode and webforms ? Thanks.

Member Avatar for saskico
0
2K
Member Avatar for babir

my code cannot send all image data. it sends odd or even no of data.please help <?php session_start(); include("dbcon.php"); if (isset($_POST['submit'])) { $j = 0; //Variable for indexing uploaded image $a=0; $target_path = "uploads/"; //Declaring Path for uploaded images if (count($_FILES['file']['name'])<6) { $k=count($_FILES['file']['name']); } else { $k=6; } for ($i …

Member Avatar for Dilovan
0
177
Member Avatar for vampz

i have an array of usernames and if a specific name is entered then code should say i know you concatenated with input name...this part is working fine...the problem is in `if(!$knowyou)` this line of code is giving the error of **undefined variable** i'm not getting it i tried to …

Member Avatar for vampz
0
349
Member Avatar for vampz

<body> <?php if(trim($_GET["submit"])){ if($_GET["uname"]){ echo "your name is".$_GET['uname']; } else { echo"please enter your name"; } } ?> <form> <label for="uname">Name</label> <input type="text" name="uname" /> <input type="submit" name="submit" value="Submit" /> </form> </body> hello, i'm new to php watching some tuts and trying to learn...my proble is when i load this …

Member Avatar for vampz
0
194
Member Avatar for Mysquldata
Member Avatar for Kelly Burby
0
107

The End.