39,320 Topics
| |
Dear Sir, I have following codes to save record in MySql. <?php include("connect.php"); $insert_query = "INSERT INTO ghee (sno,pack,weight) VALUES (18,'kk',80)"; $insertion_result = mysql_query($insert_query); //check whether the data insertion was successful if(!$insertion_result) { die("Sorry! Something went wrong.</p>"); } else { echo "<p>Record saved successfully.</p>"; } mysql_close(); ?> These codes work … | |
Here is the code of index.php and retreive.php index.php <html> <head> <title>Forget Password</title> </head> <body> <h1>Forgot Password using php</h1> <form name="frm" action="" method="post"> <table border="0"> <td>Username</td> <td><input type="text" name="id" /></td> </tr> <tr> <td>Password</td> <td><input type="password" name="password" /></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="btn" value="Login" /></td> </tr> <tr> <td align="right" … | |
hello every body on daniweb i have a problem who i had posted in past but it wasn't solve how can i redirect to another pages after insertind data into data base table, i did it but it work only on wanp in localhost but on web hosting (server) the … | |
hi Friends...! i have add the following to my httpd.conf file as like this LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php #configure the path to php.ini PHPIniDir "C:/php/" even though i got a error message like this...! httpd.exe:syntax error on line 130 of c:Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf : cannot load c:/php/php5apache2_2.dll … | |
<?php $count; session_start(); print_r($_SESSION); $myarray=array(); $myarray=@$_SESSION['myarray']; $myarray=array(); $myarray=@$_SESSION['myarray']; $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="candidates"; // Database name $tbl_name="qbank"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); if($_POST['next']=="next") { if(@$_SESSION['count']<=10) { echo @$_SESSION['count']; … | |
Good Day Guys Im Having a hardtime getting this simple script working, basically im trying to open pop up windows when a link is click(which work fine until i found out that the same data is being fetch over and over again which is the last data inserted in the … | |
Hello everyone, I have a table that i want to limit to 10 results per page and have a simple pagination script to generate the next 10 results. I have tried many different options, but alas it does not work. here is what I have so far. <tbody> <? //specify … | |
Ok, new question... I need to get data from one mysql row, set it as $ad The following code will convert it to readable date format. <?php function adConvert ($ad) { $seconds_ad = $ad / (10000000); //86400 -- seconds in 1 day $unix = ((1970-1601) * 365 - 3 + … | |
This is my php & html code for show numbers in words. this works correctly `<input type="text" value="<?php include("number_words.php"); echo convert_number_to_words(123); ?>" size="70" readonly="readonly" />` this is my final total amount html code `<input type="text" name="totalamount" id="totalamount" size="8" readonly="readonly" />`. here i am doing convert numbers into words. but i … | |
I need to get the name of the table with the biggest number of rows, I can find the biggest number of rows with function count and than function max, but i don't know how to see from which table is that maximum, can anyone help? tnx | |
Hello guys, my turn to ask a very simple question. I already have a Mysql DB with querys working great. I import data from Active Directory server, and one of the values is State, enabled or disabled, etc. But this values came in a form of code: 512 = Enabled … | |
this is my php code,it works properly before inserting,can it be the fact that i have attatched a photo to my form? the other problem is,i dont know what type is photo for my xampp database,i left it a VARCHAR, the error i get is: Parse error: syntax error, unexpected … | |
Hello, My question is a bit theoreric at the moment. I have a XML file that contains some data, i would like to know if it is possible to write a PHP page that reads the XML file, and if he recognizes a spesific string in the XML file, he … | |
I'm new to this website. I have a question about how PHP formats a table but don't know where to post it. I inherited a website that has a database in Google and files written in PHP and HTML. The info from the database is posted into a table but … | |
i need help for my project.. we are tasked to create a website yet i don't have codes for the LOG IN button can please give me ? | |
hlo, i have a code... plz tell through this how to show table data from mysql? tell me the sql query or code and the location where i will insert that customers.php <?php class Customers { private $name; private $id; private $desc; private $con; public function __construct($name,$desc) { $this -> … | |
I wanna get definition and meaning from another website, the website doesn't have an API....when I curl it, I get the whole page instead of just a few lines. This is my code: <TD align=center> <form action="http://www.nigeriandictionary.com/all_word.php?lang_id=68&word=love" method="get"> <input type="hidden" name="word_search" value="true"> <table border="0" align="center" cellpadding="5" cellspacing="0" class="special" bgcolor=#fdfdfd width=100%> … | |
Hello Everyone, I am trying to compute the subscription next due date. For example, these are the subscription dates: 1/28/13 1/29/13 1/30/13 1/31/13 When I used the php function strtotime( "+1 month", <date> ) the next month due date will be: 1/28/13 due date is 2/28/13 1/29/13 due date is … | |
Hello, I am trying to create admin login page. This is what I try so far: controllers/admin/clogin.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Author: Jorge Torres * Description: Login controller class */ class Clogin extends CI_Controller{ function __construct(){ parent::__construct(); } public function index(){ // Load … | |
PHP is one of the open source product. Initially PHP is used for development part like website creation. still PHP Code can be use to create a application also. Lot of companies choose PHP domain because this is easy to handle the code. Regards.. Mathan | |
am trying to export data from mysql db to excel format, but the excel file i get is damaged. i get two varibles by $_GET, and run a search, and then creates the excel file based on the results... `$p_na = $_GET['p_na']; $svreg = $_GET['svreg']; include_once("classes/PHPExcel.php"); $result = mysql_query("SELECT * … | |
can anyone help me in configuring the sqlite with php. I have tried changing the php.ini and enabling the extension from the extensions list. I am using the wamp for development. Please fix my error. Thanks in advance | |
Hi , I am having a list of checkboxes ,each of them having some values in mysql database. If we click on any two or three check boxes,i should get the data from the respective tables. and should be hidden if i uncheck the checkboxes. This is just like searching … | |
Hi everyone, I have an Login page where the Admin enters his username and password and enter his, After he has enter into his page, there is a option for him to change his password.. Enter Current password: Enter new password: Confirm new password: Confirm >> When he clicks the … | |
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL, CreatedOn DATETIME NOT NULL, ModifiedOn DATETIME NOT NULL, `StartD' at line 1 CREATE TABLE `billing`.`ebUsers` ( `UserID` INT NOT NULL AUTO_INCREMENT … | |
Hi, I am using ffmpeg to convert wav audio files to mp3 format but I am getting this error. "cannot execute binary file". I have given 777 rights to my ffmpeg folder and my operating system is ubuntu x86_64. I have uploaded the 64 bit version for ffmpeg but still … | |
Suppose that I have a resumable link to a URI on the web.Is there any method I can setup a streaming script/service that simply redirects the data by downloading it from a source to destination(assume that the destination is the file requestor) ? Like what happens at http://unrestrict.li/home .They say … | |
Hi, I am using ffmpeg conversion from wav format to mp3 format. I want to convert the length of the audio file as well. The length of wav audio file 35 sec and I want to convert it to 15 seconds. Is there any way I can convert the length … | |
Dear sir my html file has following coedes <Html> <head> <title>Add two numbers on same form</title> <body> <center> <h1><font color="blue"> Sum Two Numbers</font></h1> <form name="thisform" method="Get" action="getsum2.php"> <table cellpadding=3 cellspacing=3> <tr> <td>Enter First Number</td><td><input type="Text" name="text1"></td> </tr> <tr> <td>Enter Second Number</td><td><input type="Text" name="text2"></td> </tr> <tr> <td style="color: #ff0000">Result</td><td><input type="Text" name="text2" … | |
Hi, I am trying to recieve an encrypted email attachment and then decrypt the attachment using open ssl. I am successful in decrypting the file. The file that I recieve is in smime.p7m extension. When I decrypt that file the file is decrypted and the file that is decrypted displays … |
The End.