39,326 Topics

Member Avatar for
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
205
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
691
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
265
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
203
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
86
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
107
Member Avatar for Randy_2
Member Avatar for diafol
0
55
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
126
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
263
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
241
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
135
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
128
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
294
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
143
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
612
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
373
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
248
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
250
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
580
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
544
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
174
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
348
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
193
Member Avatar for Mysquldata
Member Avatar for Kelly Burby
0
105
Member Avatar for SimonIoa

Hello i did a research about a import contacts script. The best script i find this is https://www.design19.org/blog/import-google-contacts-with-php-or-javascript-using-google-contacts-api-and-oauth-2-0/ On the last comment as Simon you ll see where i stuck with. Although i think its the best import gmail contacts script

0
99
Member Avatar for paul-lucas

Hello, I have a file (01.php) <?php abstract class Sender { const E_NEW_APPOINTMENT = 1; /** * Send instant confirmation/notification emails. * * @param int $type (E_NEW_APPOINTMENT) * @param CustomerAppointment $ca */ public static function sendEmails( $type, CustomerAppointment $ca ) { list ( $codes, $staff, $appointment, $customer ) = self::_prepareData( …

Member Avatar for pritaeas
0
399
Member Avatar for devianleong

Hi guys, currently I have 3 groups of user which is A, B and C. A will handle tasks for first week, B will handle tasks for second week, C will handle tasks for third week, C will handle tasks for 4th week, A will handle tasks for 5th week, …

Member Avatar for cereal
0
141

The End.