39,323 Topics
| |
Hi everyone, I wanted to display different data from the same table in 2 different tabs in php. When i select the Responsible person and click Notify in tabs-1, it will be saved and displayed in the improvement_plan table. But when i select Responsible person and click Notify in tabs-2, … | |
Hey, I am trying to create a form where in I can input 3 or more values on it, but I do not know where to start I am planning to create a datagrid like in PHP, Guys can you help me? Thank you. | |
How we open a ms word document file with php? | |
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 … | |
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); … | |
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 … | |
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 … | |
| 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 … |
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 … | |
<?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. | |
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 … | |
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) { … | |
<?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 />"; ?> | |
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 … | |
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)) { … | |
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 … | |
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 … | |
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 … | |
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 … | |
I want to create a c++ compiler on my website using php. How do I do that? Pls help. thank you | |
| |
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" … | |
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 … | |
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 … | |
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')) && … | |
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 … | |
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 … | |
| ## 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 … |
$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); | |
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 … |
The End.