39,316 Topics

Member Avatar for
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
174
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
516
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
276
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
285
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
501
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
298
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
240
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
313
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
328
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
141
Member Avatar for muktapuram

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 …

Member Avatar for muktapuram
0
1K
Member Avatar for tryphy

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 …

Member Avatar for liza_1
0
2K
Member Avatar for Indians

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 …

Member Avatar for urtrivedi
0
222
Member Avatar for saadi06

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 …

Member Avatar for saadi06
0
754
Member Avatar for delta_frost

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 …

Member Avatar for flashhtml5
0
163
Member Avatar for saadi06

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 …

Member Avatar for saadi06
0
150
Member Avatar for tqmd1

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

Member Avatar for diafol
0
154
Member Avatar for saadi06

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 …

Member Avatar for cereal
0
350
Member Avatar for mmcdonald

Hi all, This is so simple and it's driving me mad. I've done it many of time before but at this moment in time - blank! How does one display the text: &copy; and stop it from changing to a copyright symbol? Thanks, M

Member Avatar for mmcdonald
0
146
Member Avatar for mattster

Hi guys, Am working on a mini project and my question to you is: What would be your top 5 to 10 important tips for security while working with PHP? Thanks for any help recieved!!

Member Avatar for GliderPilot
0
112
Member Avatar for t_thakar

Hi currently trying to fighure out how i would need to solve this task... I have a database table which has lots of records and each record will have a parent id attached... e.g. Table_1 ----------------------------------- id name parent 1 test1 4 2 test2 3 3 test3 4 test4 2 …

Member Avatar for t_thakar
0
186
Member Avatar for dany12

Can somebody explain to me how can I create a one page for all crud and my edit for to be the same with my create form? I don't know how to use if(iseet($_POST['action=create']) if(iseet($_POST['action=edit']) if(iseet($_POST['action=delete']) Oh and if someone is intrested in accepting an apprentice to teach and review …

Member Avatar for dany12
0
240

The End.