Search found 8 matches

by jevin94
Fri Apr 12, 2013 8:53 am
Forum: PHP coding => General
Topic: php problem
Replies: 5
Views: 1587

Re: php problem

seandisanti wrote:alternatively you could do it like:

Code: Select all

$variable = array('this is some arbitar','y text for an',' example.');
$output = '';
foreach ($variable as $fragment){
$output.=$fragment;
}
echo $output;
What is the value of $fragment?
by jevin94
Fri Apr 12, 2013 8:51 am
Forum: PHP coding => General
Topic: php problem
Replies: 5
Views: 1587

Re: php problem

johnj wrote:Please read about array_pop() from the php manual
http://php.net/manual/en/function.array-pop.php

I dont want to remove the element of the array, i want to remove just text "Array" as mentioned in my problem.
by jevin94
Tue Apr 09, 2013 6:02 am
Forum: PHP coding => General
Topic: php problem
Replies: 5
Views: 1587

php problem

Array ( [0] => hello every one this is my ne [1] => w post )

this is one of the output of print_r(str_split($f)))

so how can i remove Array "( [0] =>" and "[1] =>" and all this type of words...
by jevin94
Fri Mar 29, 2013 10:36 am
Forum: PHP coding => General
Topic: Beginner's question - GET parameter mode
Replies: 1
Views: 1331

Re: Beginner's question - GET parameter mode

use the link such as controller.php?mode=abc and in other link use controller.php?mode=def

then fetch the value of mode in other page via get[''];

e.g. $mode=$_GET['mode'];
by jevin94
Fri Mar 29, 2013 10:30 am
Forum: PHP coding => General
Topic: how to store logout time in mysql database
Replies: 2
Views: 1162

Re: how to store logout time in mysql database

create a function named logout and in which set sql query to insert username and time in table.
and then destroy the session.
by jevin94
Fri Mar 29, 2013 10:27 am
Forum: PHP coding => General
Topic: Some errors
Replies: 6
Views: 1928

Re: Some errors

it will better to use include function in

require "config.php";
require "functions.php";

include("config.php");
include ("functions.php)";
by jevin94
Fri Mar 29, 2013 10:14 am
Forum: mySQL & php coding
Topic: How to download a pdf and mp3 file stored in mysql
Replies: 1
Views: 1165

Re: How to download a pdf and mp3 file stored in mysql

It will better if you will store any content in folder and store its path only in database.

that will easy to share between 2 user and easy to download

for example visit www.codebook.co.in
by jevin94
Fri Mar 29, 2013 10:08 am
Forum: PHP coding => General
Topic: Best editor for PHP
Replies: 213
Views: 188965

Re: Best editor for PHP

For the windows based OS, Dreamviewer is the best for any type of script.