39,393 Topics

Member Avatar for
Member Avatar for nadiam

im trying to get the values of the text field displayed even after inserting the data into the database but im not doing it right because this error "<br /><b>Notice</b>: Undefined index: basic in <b>C:\xampp\htdocs\CashFlow\income.php</b> on line <b>77</b><br />" is shown inside the text field instead. There was one thread …

Member Avatar for nadiam
0
293
Member Avatar for kanoy83

hi guys, i just want to create a javascript confirm script if the file will overwrite the current file with the same filename or with a file already existing. if yes: ask to overwrite if no: back to edit file page function overwrite() { var r=confirm("The same file name existing. …

Member Avatar for kanoy83
0
2K
Member Avatar for dalilice

Hello, I have a little problem. This is what I want to achive: I have 2 mysql tables (categories, channels), the channel table has a cat_id in it. I want to update/edit a product and place it in another category but the code that I've made shows just one catedory …

Member Avatar for LastMitch
0
379
Member Avatar for arifkutty

<?php $dbc=mysqli_connect('localhost','root','','sam_telephone'); $query="SELECT * FROM master_name"; $result= mysqli_query($dbc,$query); $display=mysqli_fetch_array($result); echo $display['f_name']; /// its show me the result which is fine // but when i apply while loop it does not show any thing. while($y = mysqli_fetch_array($result)){ echo $y['f_name']; } // $y['f_name'] should give me a result becuase it showing me …

Member Avatar for arifkutty
0
209
Member Avatar for ebanbury

Hi Via the cpanel that my host provider has I can use PHPMyAdmin. This has the usual admin functions such as the ability to export the data from a specified table into Excel. My client needs to be be able to do this - but from the website. I have …

Member Avatar for ebanbury
0
192
Member Avatar for twmprys

I'm trying to display in a web page all the images stored in a database. THis is my code, but it only displays the first picture: [code=php]<?php include "cysylltiad.php"; $result = mysql_query("SELECT * FROM files ORDER BY fid"); while($row = mysql_fetch_array($result)){ header("Content-Type: {$row['type']}"); echo $row["content"]; } ?>[/code] where content is …

Member Avatar for diafol
0
590
Member Avatar for jahid32
Member Avatar for diafol
0
150
Member Avatar for kyleo92

I am attemping to paginate for a public salaries database I am building for my newspaper. I have the code figuring out that it should only display X rows, however, each page displays the same rows. I also have noticed that clicking the links I've created for Previous/Next Page only …

Member Avatar for kyleo92
0
289
Member Avatar for trektrak

Hello, I need some help on my table report using php.. So this is my coding <?php while($row=mysql_fetch_array($result)) { echo "</td><td>"; echo $row['full_name']; echo "</td><td>"; echo $row['section']; echo "</td><td>"; echo $row['time']; echo "</td><td>"; echo $row['reason']; echo "</td></tr>"; } echo "</table>"; ?> so, this is what i need to do .... …

Member Avatar for trektrak
0
5K
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
314
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
508
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
498
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
306
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
304
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
302
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
229
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
274
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
139
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
374
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
108
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
205
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
176
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
308
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
526
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
279
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
290
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
503
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
301

The End.