39,316 Topics

Member Avatar for
Member Avatar for janicemurby

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 …

Member Avatar for janicemurby
0
2K
Member Avatar for TheFearful

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, …

Member Avatar for AleMonteiro
0
270
Member Avatar for ravi142

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. …

Member Avatar for rproffitt
0
108
Member Avatar for Natsu123

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 …

Member Avatar for cereal
0
859
Member Avatar for abhi10kumar

How I can convert ? Tue Mar 15 2016 05:30:00 GMT 0530 (India Standard Time) into 2016-03-08T00:00:00+05:30

Member Avatar for cereal
0
120
Member Avatar for Brian_17

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. …

Member Avatar for AndrisP
0
4K
Member Avatar for Podu

<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 …

Member Avatar for AndrisP
0
608
Member Avatar for Ts91

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)) { …

Member Avatar for TexWiller
0
2K
Member Avatar for Ts91

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() …

Member Avatar for TexWiller
0
1K
Member Avatar for Latrell_vie

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 …

Member Avatar for jkon
0
389
Member Avatar for swilliamrobert

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

Member Avatar for jkon
0
8K
Member Avatar for Natsu123

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']; …

Member Avatar for Za3mi
0
267
Member Avatar for Rajiv_2
Member Avatar for Ammar_7
0
158
Member Avatar for James_43

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 …

Member Avatar for diafol
0
421
Member Avatar for davy_yg

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'] …

Member Avatar for davy_yg
0
329
Member Avatar for jorwill.harion

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 …

Member Avatar for April_3
0
271
Member Avatar for azegurb

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

Member Avatar for cereal
0
267
Member Avatar for James_43

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 …

Member Avatar for jkon
0
200
Member Avatar for shashigowda

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 ?>

Member Avatar for cereal
0
263
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
336
Member Avatar for gann1

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 …

0
111
Member Avatar for Mark_WBST

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>';} …

Member Avatar for hericles
0
192
Member Avatar for ramsiva

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.

Member Avatar for hericles
0
205
Member Avatar for rpv_sen

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'; ?> /> …

Member Avatar for rpv_sen
0
9K
Member Avatar for vishal_isharani

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

Member Avatar for pritaeas
0
370
Member Avatar for Teja_1

i am using php with xampp server and i am getting the following error while i am running the program. Unknown column 'firstname' in 'field list' (heres the program) CREATE DATABASE IF NOT EXISTS `customerdb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `customerdb`; -- -------------------------------------------------------- -- -- Table structure for …

Member Avatar for Teja_1
0
401
Member Avatar for pirulo64

Please anyone can help me. I need to add an if statement to verify if a user already exists on a table. Can someone help me on this. Here is my code. The code below it work but it doesn't verifyed if a user already exists. Thanks <?php /* Attempt …

Member Avatar for hericles
0
227
Member Avatar for James_43

Hi all, I'm having some serious issues with AJAX forms. I'm currently using jQuery 2.2.0 and the jQuery Form plugin. I have a simple php file: <?php if(isset($_POST)): print_r(json_encode($_POST)); endif; ?> I have a simple html form: <form method="post" id="regform"> <input id="login_name" name="login_name" type="text" > <input id="login_password" name="login_password" type="text" > …

Member Avatar for James_43
0
233
Member Avatar for Shattered

So I am working on a messanger, and I am having problems automatically fetching new messages from the database. If anyone can fix me up with a peice of code which can fetch new information from the database after every 2 seconds or so. I am very new to working …

Member Avatar for Shattered
0
238
Member Avatar for Reem50

I am working on integrate some php file with my platform. The platform using HTML for interface and js file for functionality. I try two appraches: First approach: I call filename.php from form tag action and it is working but, it display the result from php file **outside my platform** …

Member Avatar for AndrisP
0
273

The End.