39,326 Topics
| |
Hi, I am able to post from my CMS and share the post directly on the fan page wall. **BUT** only when I have signed in to facebook, and have copied the access token from my admin profile, and directy inserted it into the php script that sends the post … | |
i got following error in my php program error: Parse error: syntax error, unexpected $end in D:\xampp\htdocs\php\project\sample\upload.php on line 85 <?php /** * Upload an image to mysql database. * * * * @author Mr. Vivek Chaurasia * @copyright www.techshri.com * @license LGPL */ // Check for post data. if … | |
Hi Everyone, I'm not sure if I may be in the wrong venue to post as this would have to do with PHP, CURL and SSL, so I've decided to place the question here. Please feel free to let me know if the question should be dropped in some other … | |
<?xml version="1.0" encoding="utf-8"?> <extension version="2.5" type="plugin" group="system"> <name>plg_system_log_teacher</name> <author>arti shrivas</author> <creationDate>nov 8 2013</creationDate> <license>GNU General Public License</license> <authorEmail>bradm@inmotionhosting.com</authorEmail> <authorUrl>http://www.inmotionhosting.com</authorUrl> <version>1.0</version> <description>simple system plugin.</description> <files> <filename plugin="log_teacher">log_teacher.php</filename> <filename>index.html</filename> </files> </extension> this is my plugin xml file <?php // no direct access defined('_JEXEC') or die; class plgSystemLog_Teacher extends JPlugin { public function … | |
So, i am going to be using a php framework to create a blog and i am curious to know what you guys think is the best framework. I, so far, am most satisfied with codeigniter (mostly) and zend. What do you guys think is the best and tell me … | |
Hi I have a website which is ready to launch apart from one of the key request forms which is not working properly and I just can't understand why. I click 'submit' and the form stays on the screen. I get the following message: ***Warning: Invalid argument supplied for foreach() … | |
This is my html. When I put name and press ENTER , browser opening download box for report.php . I don't know how to fix that. I have Apache MySQL started. Windows 8. <form action="report.php" method="post"> <label for="Your Name">Your Name</label> <input type="text" id="firstname" name="firstname"><br> </form> this is report.php <?php $first_name … | |
this is an url example : http://search.yahoo.com/bin/search?p=computers (it is only an example for specification and clarification) in this url , the **method** used to submit data is **get** . After the question mark , there is one parameter . In this parameter , there is a variable called "p" and … | |
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 |
The End.