- Upvotes Received
- 4
- Posts with Upvotes
- 2
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
i'm a student but love and wish to have a career in Web Development.
- Interests
- gaming reading novels watching movies
- PC Specs
- used to love Windows but now slowly making the move to Linux.
64 Posted Topics
i have the following code <?php require_once 'includes/initialize.php'; set_include_path( get_include_path() . PATH_SEPARATOR . CHARTS_PATH); require_once "class/pDraw.class.php"; require_once "class/pImage.class.php"; require_once "class/pData.class.php"; // create data set $myDataset = array(0, 1, 1, 2, 3, 5, 8, 13); $myData = new pData(); $myData->addPoints( $myDataset ); $myData->setAxisName( 0, "Numbers" ); // define image object $myImage … | |
Re: i'm assuming you want to the PHPExcel. you need to create to download the PHPExcel classes and include them in your script like this. require_once 'path_to_PHPExcel_classes/Classes/PHPExcel.php'; after this create an object of that class like this. $objPHPExcel = new PHPExcel(); $objPHPExcel->setActiveSheetIndex( 0 ); // set the first sheet as the … | |
Re: try jasper reports. no need for you to learn jQuery or Javascript. https://www.jaspersoft.com/reporting | |
i have created this smarty plugin but i'm getting an error message whenever i try to use it. <?php function smarty_modifier_prepare_link( $string, $link_type = 'http' ) { // use SSL if ( $link_type == 'http' && USE_SSL = 'no' ) $link_type = 'http'; switch( $link_type ) { case 'http' : … | |
Re: use str_replace like this $urlkey = str_replace( ",", "", $str ); this code removes all commas from the variable ![]() | |
i have two classes Session and SupplierSession. SupplierSession is supposed to inherit from Session. how do i ensure that the session_start() in the __construct() method of Session does not get called in SupplierSession. here are the class definitions. session.php <?php class Session { private $loggedIn = false; public $userID; public … | |
i have the following php. the script gives me an error telling me that i have not selected a file to upload even when i have done so. if i try to access the $_FILES['minuteFile']['tmp_name'] i don't get anything but the $_FILES['minuteFile']['name'] would be having some. what could be the … | |
Re: show the HTML code as well | |
is there an open source GPS solution that i can integrate into a php website for a car rental firm ![]() | |
i have PHP code that creates a text file. after the file has been created i want it to be opened in another tab. how do i modify the code below. <?php session_start(); require_once 'includes/config.php'; require_once 'includes/functions.php'; set_time_limit(0); // override the maximum execution time in php.ini file if ( isset( … ![]() | |
i currently have PHP 5.2.7 on my laptop and i would like to upgrade my php version. how do i do that? ![]() | |
i have a function which is supposed to check if a number is a floating-point number. this is the structure of the function function isValidFloat( $string ){ if( !preg_match( "/^[0-9]+(.[0-9]+)?$/", $string ) ){ return false; } } for numbers such as 1 or 8 it's correctly validating but not for … | |
how do i write a regular expression to validate user input to ensure that the user input contains 1 digit, a space and any number of letters. | |
what commands do i have to run on the terminal to install ubuntu-one in linux mint 13? | |
Re: what's on line 368? | |
Re: on which line | |
i have a php script that generates a text file. the code is as follows. the text file is being is being created. <?php session_start(); /** * @author FreeUser * @copyright 2013 */ set_time_limit(0); // override the maximum execution time in php.ini file require_once 'includes/mysql_connect.php'; require_once 'includes/functions.php'; if ( isset( … | |
Re: what did you import the csv file to? | |
![]() | Re: try this $name = array( 'ch' => 'Chester', 'mk' => 'Mike', 'jo' => 'Joe' ); ![]() |
| |
i am working on web application and i'm looking for a way to create and display reports. tried Crystal Reports but the reports are not being displayed. what other options do i have? | |
i have the following code in my php script. it's for displaying a Crystal Report file. $cr = new COM( "crystalruntime.application" ); if ( $cr ) { $cr->OpenReport( "SelectExpert1.rpt", 1 ); } if i try to access the file with this code on my browser i get the following error. … ![]() | |
i have the following php files. <?php require_once '../moonlight/includes/mysql_connect.php'; require_once '../moonlight/includes/functions.php'; require_once 'includes/reader.php'; /** * @author FreeUser * @copyright 2013 */ if ( isset( $_POST['submitted'] ) ) { $errors = array(); if ( $_POST['authorityID'] == "" ) { $errors[] = 'Select the paying authority.'; } else { $authorityID = (int)$_POST['authorityID']; … | |
Re: on which line? better yet include the code for the file providinf values for the $_POST variables | |
| |
i have the following tables in my database: CREATE TABLE `tblbrands` ( `brandid` tinyint(2) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, PRIMARY KEY (`brandid`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; CREATE TABLE `tblcars` ( `carid` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `brandid` tinyint(2) unsigned NOT NULL, `typeid` … | |
Re: @ diafol are there any php books that you can recommend to someone who wants to go the OOP route? | |
i have php and apache running in windows. my problem is i get an error when sending emails using the php mail function. how do i get rid of the error | |
i have a table with the following structure CREATE TABLE IF NOT EXISTS `test_check` ( `id` int(4) NOT NULL AUTO_INCREMENT, `name` varchar(65) NOT NULL DEFAULT '', `lastname` varchar(65) NOT NULL DEFAULT '', `email` varchar(65) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; i have a … | |
Re: try checking if the radio button has been selected before assigning it to a variable | |
i have a php associate array and i want to convert it to a javascript array. how best do i do this | |
i have an html form with two text boxes. one is for the product name and the other is for the price. i want the text boxes for price to allow numeric values only. is there a way of limiting user input for this text box using javascript | |
Re: the best solution would be to create a separate table for the status | |
i'm developing an app that i intend to run on a client's intranet. i want to ensure that only email addresses with the client's domain should be registered. how do i achieve this using regular expressions? | |
i have two tables the following structures. CREATE TABLE `tblbranches` ( `branchID` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, `branchCode` varchar(30) NOT NULL, `branchName` varchar(30) NOT NULL, `regionID` tinyint(3) unsigned NOT NULL, `branchAddress` varchar(400) NOT NULL, `cityID` smallint(5) unsigned NOT NULL, `countryID` smallint(3) unsigned NOT NULL, `branchContact` varchar(50) NOT NULL, `branchFax` varchar(20) … | |
i have the following php script. the databtase table i'm saving the data to allows NULL values for the email. this is the table structure. ` CREATE TABLE tblcontacts ( contactID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, contactName VARCHAR( 50 ) NOT NULL, phoneNumber VARCHAR( 20 ) UNIQUE NOT … | |
i have a form with a text box and a drop-down list. the form submits to itself. when the user submits the form for processing the form must be able to retain the selected value from the drop list if there is an error. here is the code for the … | |
is it possible to load the data contained in an Excel file into a MySQL table using PHP? ![]() | |
Re: crystal reports is the easiest option for reporting in VB.NET. if you are using Visual Studio 2010, it doesn't come as part of the package so you need to download it from this page: http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_4.exe. you need to choose the data source for your report. | |
i have two MySQL tables with the following structures CREATE TABLE tbldepartments ( departmentID TINYINT( 2 ) UNSIGNED NOT NULL AUTO_INCREMENT, department VARCHAR( 20 ) UNIQUE NOT NULL, PRIMARY KEY ( departmentID ) ) and CREATE TABLE tblemployees ( employeeID SMALLINT( 5 ) UNSIGNED NOT NULL AUTO_INCREMENT, departmentID TINYINT( 2 … | |
i have a MySQL table with the following columns: employeeID, firstName, lastName, gender, salary. whenever i insert a new record for this table i want to be able to retrieve the employeeID of that record. how should i write the commands in VB.Net | |
i have two tables with the following columns: departments: departmentID tinyint not null department varchar( 30 ) not null employees: employeeID SMALLINT(5) not null departmentID tinyint not null firstName varchar(30) not null lastName varchar(30) not null how do i create the two tables using SQL with a foreign key linking … | |
i'm new to VB.Net programming but i want help. i have two MySQL tables created using the following SQL statements: create table tbldepartments ( departmentID TINYINT( 2 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, department VARCHAR( 25 ) NOT NULL UNIQUE ) AUTO_INCREMENT = 50; create table tblemployees ( employeeID … | |
is it possible to etract palin text from a pdf file? if possible, can i please have the code | |
i have a problem. i have a table that has one column that should accept one of a set of defined values. i know in MySQL i use the following command to create the table: CREATE TABLE tblstudents ( studentID int( 8 ) UNSIGNED NOT NULL AUTO_INCREMENT, lastName VARCHAR( 20 … |
The End.