39,326 Topics

Member Avatar for
Member Avatar for klemme

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 …

Member Avatar for beweo
0
312
Member Avatar for rajalakshmi2810

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 …

Member Avatar for diafol
0
501
Member Avatar for VNexus

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 …

Member Avatar for Lsmjudoka
1
494
Member Avatar for AARTI SHRIVAS

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

Member Avatar for LastMitch
0
305
Member Avatar for <M/>

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 …

Member Avatar for ashutosh08
0
210
Member Avatar for ebanbury

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

Member Avatar for ebanbury
0
302
Member Avatar for prince.sayeed1381

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 …

Member Avatar for prince.sayeed1381
0
301
Member Avatar for strongard63

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 …

Member Avatar for Tpojka
-1
228
Member Avatar for tqmd1

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 …

Member Avatar for Jamblaster
0
273
Member Avatar for narasimha9

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

Member Avatar for Lsmjudoka
0
138
Member Avatar for chrisschristou

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 …

Member Avatar for chrisschristou
0
1K
Member Avatar for Victorabm

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 …

Member Avatar for Tpojka
0
370
Member Avatar for Prathibha K G

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

Member Avatar for mchourishi
0
106
Member Avatar for ehpratah

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 …

Member Avatar for ehpratah
0
203
Member Avatar for patk570

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 …

Member Avatar for patk570
0
175
Member Avatar for João_5

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

Member Avatar for João_5
0
306
Member Avatar for Indians

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 …

Member Avatar for broj1
0
522
Member Avatar for iv_jo

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

Member Avatar for Tpojka
0
277
Member Avatar for João_5

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 …

Member Avatar for diafol
0
288
Member Avatar for palo.moshoeshoe

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 …

Member Avatar for João_5
0
502
Member Avatar for david.faizulaev

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 …

Member Avatar for diafol
0
299
Member Avatar for pkarovsky

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 …

Member Avatar for diafol
0
247
Member Avatar for liza_1

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 ?

Member Avatar for EvolutionFallen
0
211
Member Avatar for annyangel

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

Member Avatar for Lsmjudoka
0
212
Member Avatar for kindo

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

Member Avatar for pritaeas
0
314
Member Avatar for jamojo

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 …

Member Avatar for jamojo
0
2K
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
334
Member Avatar for mathan.chennai.18

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

Member Avatar for almostbob
-9
158
Member Avatar for accra

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

Member Avatar for furqan219
0
2K
Member Avatar for mathewmoozh

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

Member Avatar for mathewmoozh
0
142

The End.