Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
4
Posts with Upvotes
2
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #1K
~31.3K People Reached
About Me

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.
Favorite Tags

64 Posted Topics

Member Avatar for AntonyRayan
Member Avatar for Joseph_20
Member Avatar for dinhunzvi

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 …

Member Avatar for Mahesh_12
0
681
Member Avatar for infoitmanoj

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 …

Member Avatar for dinhunzvi
0
4K
Member Avatar for showman13

try jasper reports. no need for you to learn jQuery or Javascript. https://www.jaspersoft.com/reporting

Member Avatar for showman13
0
672
Member Avatar for dinhunzvi

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

Member Avatar for pritaeas
0
373
Member Avatar for dinhunzvi
Member Avatar for cereal
0
102
Member Avatar for Mike Bishop

use str_replace like this $urlkey = str_replace( ",", "", $str ); this code removes all commas from the variable

Member Avatar for diafol
0
160
Member Avatar for dinhunzvi

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 …

Member Avatar for urtrivedi
0
142
Member Avatar for dinhunzvi

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 …

Member Avatar for dinhunzvi
0
348
Member Avatar for sathyagovin
Member Avatar for dinhunzvi

is there an open source GPS solution that i can integrate into a php website for a car rental firm

Member Avatar for diafol
0
179
Member Avatar for dinhunzvi

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

Member Avatar for diafol
0
698
Member Avatar for dinhunzvi

i currently have PHP 5.2.7 on my laptop and i would like to upgrade my php version. how do i do that?

Member Avatar for diafol
0
111
Member Avatar for dinhunzvi

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 …

Member Avatar for pritaeas
0
230
Member Avatar for dinhunzvi

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.

Member Avatar for pritaeas
0
156
Member Avatar for dinhunzvi
Member Avatar for Michael_19
0
389
Member Avatar for official.DJ.cabo
Member Avatar for official.DJ.cabo
Member Avatar for dinhunzvi

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

Member Avatar for dinhunzvi
0
274
Member Avatar for code_rum
Member Avatar for lilwizz770
Member Avatar for Rahul47

try this $name = array( 'ch' => 'Chester', 'mk' => 'Mike', 'jo' => 'Joe' );

Member Avatar for diafol
0
145
Member Avatar for bfitzgerald
Member Avatar for dinhunzvi

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?

Member Avatar for dinhunzvi
0
134
Member Avatar for dinhunzvi

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

Member Avatar for diafol
0
821
Member Avatar for dinhunzvi

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

Member Avatar for dinhunzvi
0
201
Member Avatar for ismael ahm@d

on which line? better yet include the code for the file providinf values for the $_POST variables

Member Avatar for broj1
0
653
Member Avatar for GlenRogers
Member Avatar for dinhunzvi

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

Member Avatar for pritaeas
0
2K
Member Avatar for thrillride01

@ diafol are there any php books that you can recommend to someone who wants to go the OOP route?

Member Avatar for pritaeas
0
271
Member Avatar for dinhunzvi

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

Member Avatar for dinhunzvi
0
310
Member Avatar for dinhunzvi

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 …

Member Avatar for broj1
0
1K
Member Avatar for rubai

try checking if the radio button has been selected before assigning it to a variable

Member Avatar for dinhunzvi
0
523
Member Avatar for dinhunzvi

i have a php associate array and i want to convert it to a javascript array. how best do i do this

Member Avatar for code739
0
163
Member Avatar for dinhunzvi

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

Member Avatar for radhakrishna.p
0
169
Member Avatar for venkyb47
Member Avatar for drjohn
0
3K
Member Avatar for dinhunzvi

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?

Member Avatar for dinhunzvi
0
165
Member Avatar for dinhunzvi

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

Member Avatar for dinhunzvi
0
193
Member Avatar for dinhunzvi

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 …

Member Avatar for dinhunzvi
0
231
Member Avatar for cdays
Member Avatar for dinhunzvi

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 …

Member Avatar for adam.adamski.96155
0
346
Member Avatar for dinhunzvi
Member Avatar for diafol
0
86
Member Avatar for bandurao

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.

Member Avatar for dinhunzvi
0
292
Member Avatar for dinhunzvi

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 …

Member Avatar for dinhunzvi
0
269
Member Avatar for dinhunzvi

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

Member Avatar for Icone
0
1K
Member Avatar for dinhunzvi

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 …

Member Avatar for ChrisHunter
0
197
Member Avatar for dinhunzvi

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 …

Member Avatar for poojavb
0
240
Member Avatar for dinhunzvi

is it possible to etract palin text from a pdf file? if possible, can i please have the code

Member Avatar for mike_2000_17
0
212
Member Avatar for dinhunzvi

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 …

Member Avatar for BitBlt
0
208

The End.