39,320 Topics

Member Avatar for
Member Avatar for Akansha_1

hi.. i am learning basics php these days.. i tried embedding a simple html form with a php script.. the html page is working.. but not the php file.. i am using notepad.. what is it dat i am doing wrong.. do i need another text editor for the php …

Member Avatar for cereal
0
142
Member Avatar for anyashantu

How do I make my php contact form redirect the user to a thank you page after sending the email. ?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['fname'] ; $message = $_REQUEST['message']; mail("info@website.com", "$subject", $message, "From:" . $email); …

Member Avatar for cereal
0
3K
Member Avatar for Joby_1

Now i can check the size of the image. But can't validate the image type(.jpg, gif etc..). Could you please check the following my code and give answer. <!--Form image validation--> <script type="text/javascript" src="js/jQuery-1.4.1-min.js"></script> <script> $(document).ready(function(){ $('#i_submit').click( function() { //check whether browser fully supports all File API { //get the …

0
109
Member Avatar for learner001

i have a register and login page where the users can register and login. their details gets saved in the database. my requirement is that when the user will login to the account, they should be redirected to their profile page, where they can view all their profile details. Till …

Member Avatar for shashigowda
0
381
Member Avatar for anmol.raghuvanshi1

I am having registration form which is very long so i have divided into two parts at end of first part i have button continue.If user has filled all the fields and data in fields are correct he can click on continue button to fill remaining form.So after doing some …

Member Avatar for cereal
0
2K
Member Avatar for Deimos161

Hey guys, I'm very new to this so please forgive me. I have a theme that I am trying to use to display some stats from my minecraft server (Yes I am one of those people :) ) The dashboard theme has a load of charts that are in a …

Member Avatar for Deimos161
0
199
Member Avatar for mithesh

<?php printf("This is the first line. \n"); printf("This is the second line"); ?> This is the code but it isnt printing in new line.

Member Avatar for prabhjots226
0
5K
Member Avatar for Petranilla

hello there, i have a purchase requisition table in mysql like below: pr no qty items 1 10 pencil 1 5 ballpen 1 8 eraser I would like to display them in tabular form and eventually the users should be able to edit. But my program does not assign the …

Member Avatar for diafol
0
471
Member Avatar for phoenix254

Hi, I have created real time script for my website. I wanted to ask u is it good or bad script? Here is my script: My php page:servr.php <?php set_time_limit(0); $con = mysqli_connect('localhost','root','') or die ("Could not connect to the Database"); mysqli_select_db($con,"msg") or die("Cannot find the database"); $last_id=null; while(1) { …

Member Avatar for jkon
0
277
Member Avatar for theausum

<?php $ip = '59.32.28.65'; $url = "http://www.ipmango.com/api.php?ip=".$ip; $xml = simplexml_load_file($url); echo "IP address : {$xml->ipaddress} <br />"; echo "City : {$xml->city} <br />"; echo "Region : {$xml->region} <br />"; echo "Country Name : {$xml->countryname} <br />"; echo "Latitude : {$xml->latitude} <br />"; echo "Longitude : {$xml->longitude} <br />"; ?>

Member Avatar for Pramod_7
0
3K
Member Avatar for malatamil

i have a URL like this example.com/index.php?param1=10,20,30,40,50¶m2=50,60,70,80,90,10¶m3=40,50,60,70,80 Using PHP,javascript,JSON i did this pentagon radarchart. If the values are changing then the pentegon image also will be change. and if the parameters limit is 3 only. if it is 1 parameter then the respective parameter values will display. By using the …

Member Avatar for malatamil
0
624
Member Avatar for rpv_sen

Hi I am trying to create a update function. But it not updating in the database. Please help me to fix. **Test-2.php** $whereString = ''; $bind = NULL; if(isset($_POST['Submit'])) { if($_POST) { $SCYQ64UKID = $_GET['SCYQ64UKID']; $SCYQ64AVGP = $_POST['SCYQ64AVGP']*100; $searchFields = array('SCYQ64EMAL'=>$_POST['SCYQ64EMAL'],'SCYQ64EV01'=>$_POST['SCYQ64EV01'],'SCYQ64EV02'=>$_POST['SCYQ64EV02'],'SCYQ64EV03'=>$_POST['SCYQ64EV03'],'SCYQ64EV04'=>$_POST['SCYQ64EV04'],'SCYQ64EV05'=>$_POST['SCYQ64EV05'],'SCYQ64EV06'=>$_POST['SCYQ64EV06'],'SCUSER'=>$_POST['SCUSER'],'SCYQ64AVGP'=>$SCYQ64AVGP,'SCYQ64TZ'=>$_POST['SCYQ64TZ'],'SCJOBN'=>gethostname(),'SCPID'=>'SSWEB','SCUPMJ'=>$_POST['SCUPMJ'],'SCUPMT'=>$_POST['SCUPMT']); if($post = array_filter($_POST)) { if($fields = array_intersect_key($searchFields, $post)) { …

Member Avatar for rpv_sen
0
449
Member Avatar for lewashby

I just installed phpmyadmin with `sudo apt-get install phpmyadmin` but now I can't figure out how to get it started. The installation did place a phpmyadmin directory in /etc/ but I don't have anything in /var/www/html/ . I installed this several years ago and it placed a start icon in …

Member Avatar for Ashley_9
0
289
Member Avatar for shashigowda

Hi Good Morning every one.. This is my Html Code. <div> <img src="http://imgs.zinio.com/magimages/500299032/2012/416238969_170.jpg" alt="Nov-12" title="Food Network Magazine" class="cover"> </div> <select id="myselect"> <option value="B">Business Card</option> <option value="C">Corporate Card</option> <option value="D">Type #</option> </select> consoder i have three different images ,if i choose Business Card option it will show default image,if i choose …

Member Avatar for shashigowda
0
295
Member Avatar for phoenix254

Why my $last_id variable is null always ? i am using this scirpt for ajax..but i tried to excute without my ajax page,it works fine and the output give me `{"data_from_file":"ghjghj","timestamp":1441695735,"msg_id":"1190","reciver_id":"12","sender_id":"10"}` when i want to check my $last_id variable that was null, <?php set_time_limit(0); $con = mysqli_connect('localhost','root','') or die ("Could …

Member Avatar for phoenix254
0
268
Member Avatar for d1stbee

hello, I am trying to make moodle communicate with an external system, I am running moodle 2.9, I know there are enrolment and authentication plugins from external database, but I would like to use the flat file upload for users Maybe the external connection/bridge failed for some reason), what I …

Member Avatar for diafol
0
448
Member Avatar for jeffersonalomia

I want to create a c++ compiler on my website using php. How do I do that? Pls help. thank you

Member Avatar for diafol
0
1K
Member Avatar for hussain765
Member Avatar for rjony321

Dear, I need help, how to import my Excel file into Mysql Database. I can successfully upload excel file but its not correctly formated uploaded or imported. please check this image, ![3b414cc2b0556bbd8691e2ecf29ce42f](/attachments/large/3/3b414cc2b0556bbd8691e2ecf29ce42f.PNG "3b414cc2b0556bbd8691e2ecf29ce42f") My HTML Form looks like, <form enctype="multipart/form-data" method="post" role="form"> <div class="form-group"> <label for="exampleInputFile">File Upload</label> <input type="file" name="file" …

Member Avatar for daksh singh
0
6K
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
581
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
530
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
76
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
689
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
264
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
201
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

The End.