39,320 Topics
| |
I have the code . It is not properly showing output <?php session_start(); $servername = "localhost"; $username = "root"; $password = ""; $dbname = "forextrading"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname ); $link = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (mysqli_connect_errno()) { //echo "Failed … | |
Hi I am trying to insert to database. I am facing an issue in getting relavent radio button value. suppose if i select 1 or 2 or 3 radio button, by default it display 1 radio button value. please help me to fix the issue. **index.php** <div id="message"></div> <form class="form-horizontal" … | |
Hi all, I'm building a multi-tenant web application in PHP which is hosted on a dedicated Ubuntu 14.04 server (LAMP). I'm trying to figure out the simplest method of allowing my customers (SME's) to connect the application to their active directory server to authenticate users. The only issue is, I … | |
Id like to generate an automatic email at certain times of the week from my website to certain users. i.e at 12.30 on wednesday id like an email reminder sent to user [EMAIL="example@example.com"]example@example.com[/EMAIL]. Can anyone point me in the right direction :?: | |
Hello, I have tried to install xampp repeatedly and still the same or similar error appears. My localhost works fine except the phpmyadmin: Welcome to phpMyAdmin Error MySQL said: Documentation Cannot connect: invalid settings. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should … | |
hi im attempting to keep a group of tick boxes ticked after i refresh the browser in been through the forums trying different solutions but anything ive tried doesnt work if anyone has a solution to this be much grateful index.php <?php session_start(); include ('connect.php'); ?> <div class="main"> <h2>PHP: Get … | |
I don't know too much about web development or making web pages although I can make simple html pages that have forms and so forth. I can do a little bit of javascript and css so that I can give the page some functionality and some type of design. However, … | |
Hello, I have one website that i have transfer to subfoder of second parent website. but permalinks still takes parent url. As bellow. [Subfolder_website](http://nitrohits.com/blog) [parent_website](http://nitrohits.com/) When you seen /blog and click on menu that redirect to parent website. I dont want to inherite parent htaccess. Both website have htaccess files. … | |
Hi, I am programming an app and facing a problem now. I want to Update my Database over the GUI from my App via PHP. My Problem is that the app always sends the value of the checkbox even if it is unchecked. I will post my Script below. update.php … | |
How I can convert ? Tue Mar 15 2016 05:30:00 GMT 0530 (India Standard Time) into 2016-03-08T00:00:00+05:30 | |
Hello All. I'm trying to loop the following statement with PHPmyAdmin in order to add 1000 entries with the variable "i" incremented for each entry. (data and ip can be static) INSERT INTO 'TABLE'('id', 'data', 'ip') VALUES ([i], [06/03/2016],[192.168.0.1]) It's been 20 years since I've done any coding with loops. … | |
<form action="checkbox.php" method="post"> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="s">S</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="m">M</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="l">L</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="xl">Xl</label> </div> </form> here is my html code i want to selelct more then one checkbox, and it will fetch data … | |
Im making a website that works around a very basic MVC structure. I have three folders, the Model, View and Controller. I want to display the content of the database in the dropdown once the page has loaded. My view has: <div id="appCalc"> <form id="applianceCalc" method="POST" > <?php if(isset($error)) { … | |
Hi guys! i have a dropdown list that is filled with data that is pulled from my database. Im stuck with populating the textbox based on the value thats selected from the dropdown box. My model currently looks like this: <?php require_once('../Config/config.php'); class AppCalc { public $dbconn; public function __construct() … | |
Dear folks , I've already created some website from scratch with html and javascript , php etc. On the other hand i also created websites with wordpress. I find the freedom in creating from scratch grandiose to say at least but wordpress to me has the benefits of professionally looking … | |
Hi, How can we destroy session after closed window or tab? If user close window, still session is alive after login the systems. Please give me good solutions. thanks for your time. William | |
Hi guys, I am programming an Android App and I am trying to do a multiple SQL insert but it doesn't work. Can someone help me? And I also want to have the ID from the new created student. How do I get that ? <?PHP if($_SERVER['REQUEST_METHOD']=='POST'){ $Name = $_POST['Name']; … | |
Hi, I have problem while printing to notepad and displaying to the user view | |
Hi all, In all my time with PHP I have only ever seen one way of adding a variable onto the end of the string: $string = "hello" . $variable; However, recently I came across another method, which was used in the context of constructing a mySQL query. Can someone … | |
Hello, I am trying to reset mysql myphpmyadmin password: Cannot log in to the MySQL server Username: root Password: 12345 And have not been successful yet reseting it. This is my config.inc.php <?php /* * This is needed for cookie based authentication to encrypt password in * cookie */ $cfg['blowfish_secret'] … | |
I have this code that will display whatever that was checked in the checkboxes, but the problem is that this should be an Updating code and not just Adding information, would someone help me with this. Any help will be highly appreciated, thank you very much, it's for my thesis … | |
I want to learn how HTTP PUT method is used with PHP? I googled at the web and found some tutorials about it with cURL. But i dont know how to use it (Like REST API). Can anyone help me? Thank in advance | |
Hi all, I just have a question about how PHP works. Say I have several classes that I call but don't `unset()` once I've finished with them, how long will the server hang onto that data. Is it completely dependant on the client connection to the server? Similarly, I understand … | |
hii, it may b very simple or very basic thing but iam confused in this case...any one can explain usage of single & double quotes in **echo** statement <?php $x = "test"; echo '$x';//produces $x as a output echo "$x"; //produces test as a output ?> | |
I have host on 000webhost when i will try to connect it gives me this error i cannot figure out whats the problem ? `Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/1130): Host '31.170.161.176' is not allowed to connect to this MySQL server in /home/a2548020/public_html/includes/connection.php on line 6` here is my connection script <?php … | |
Sending SMS through gateway was one of the features in our project. In our first tries, the complete message was succeefully sent.. We used this Code <?php header("location:http://api.clickatell.com/http/sendmsg?user=thisistheusername&password=thisisthepassword&api_id=thisistheapiid&to=". $_POST['mnumber'] ."&text='". $_POST['message'] ."'"); ?> But our panelists required us to put an alert that the message was sent.. and when we … | |
I am an amateur and I am trying to edit a theme that I have bought and I am not able to display the category name and link. Does anyone to resolve this problem. <div class="item-info">'; if($show_aut!='0'){ $author = get_author_posts_url( get_the_author_meta( 'ID' ) ); $html .= '<span class="item-author"><a href="'.$author.'" title="'.get_the_author().'">'.get_the_author().'</a></span>';} … | |
I need to refresh page. without open page using cron job any body explain how to do in cron job without open page i need to refresh page. Because refresh page means new records updating insert into database. | |
Hi I am trying to update the ON / OFF status through the below code. If i change the OFF status to ON, its getting a value is OFF. can any one please help to fix the issue. **toggle.php** <div id="setQuickVar1"> <input type="checkbox" data-switchery <?php if($SCYQ64EV01=='Y') echo 'checked'; ?> /> … | |
i want to use cron job for my project for sending emails, i have searched google but i dont found anything yet. anyone knows how to achieve it . Your help is appreciated Thank you |
The End.