Search found 53 matches

by pbs
Mon Dec 26, 2016 10:10 pm
Forum: PHP coding => General
Topic: Image Upload failure since website migrated
Replies: 9
Views: 1033

Re: Image Upload failure since website migrated

Check the folder permissions for apache user.
by pbs
Mon Dec 26, 2016 10:07 pm
Forum: PHP General
Topic: Formatting JSON Request in PHP
Replies: 2
Views: 384

Re: Formatting JSON Request in PHP

Use second parameter as TRUE in json_decode() function, it will give output in array format

Code: Select all

$input = json_decode($json, TRUE);
by pbs
Thu Nov 03, 2016 3:04 am
Forum: mySQL & php coding
Topic: php.ini for mysqli_connect
Replies: 0
Views: 690

Re: php.ini for mysqli_connect

have you restarted the apache server?
by pbs
Thu Oct 06, 2016 9:34 pm
Forum: PHP coding => General
Topic: Cannot Get Error Information
Replies: 1
Views: 371

Re: Cannot Get Error Information

Add proper directory path for error log file in PHP.INI

Code: Select all

error_log = php_errors.log
by pbs
Sun Oct 02, 2016 9:03 pm
Forum: PHP coding => General
Topic: database query OR
Replies: 5
Views: 451

Re: database query OR

Your query should be like

Code: Select all

$sql = "SELECT user_id, user_name, user_password, user_email FROM users
        WHERE (user_name = ? OR user_email = ?) AND user_password = ?";
by pbs
Wed Sep 21, 2016 11:38 pm
Forum: PHP coding => General
Topic: check valid country or state
Replies: 2
Views: 360

Re: check valid country or state

Rather than giving text box input field to enter Country and State, use drop down input field. And you can store countries and states in database.
by pbs
Thu Sep 01, 2016 12:51 am
Forum: PHP General
Topic: Tamil text input using php
Replies: 0
Views: 309

Re: Tamil text input using php

To store data in unicode form in MySQL database change the column COLLATION as utf8_general_ci and store data directly in table.

And to display in HTML use meta tag as

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
hope you find it useful
by pbs
Tue Aug 30, 2016 1:31 am
Forum: PHP General
Topic: Why did <? stop working?
Replies: 1
Views: 364

Re: Why did <? stop working?

Set

short_open_tag=On
in php.ini

And restart your Apache server.
by pbs
Thu Aug 11, 2016 9:02 pm
Forum: PHP coding => General
Topic: Extracting URL from string
Replies: 1
Views: 410

Re: Extracting URL from string

Try using PHP function parse_url()
by pbs
Thu Aug 11, 2016 5:15 am
Forum: PHP coding => General
Topic: issue with session
Replies: 0
Views: 299

Re: issue with session

First you need to add session_start() at top of every page or can have common page and include it. In check_login.php you have not added session_start() Second session_register() works in below PHP 5.4.0 version, so verify your PHP version. Instead you can use $_SESSION['VARIABLE_NAME'] ; Hope this ...
by pbs
Mon Aug 08, 2016 11:15 pm
Forum: PHP coding => Images
Topic: help please, profile photo
Replies: 0
Views: 678

Re: help please, profile photo

Just google it, you will get number of scripts to how to upload images using PHP
Refer: http://www.codingcage.com/2014/12/file- ... mysql.html
by pbs
Mon Jun 27, 2016 5:33 am
Forum: PHP coding => General
Topic: can anyone help me where is the mistake?
Replies: 3
Views: 507

Re: can anyone help me where is the mistake?

Are you getting any errors?

Also there are number of things which I noticed.

1) You have used small letters for $_POST, use capital letters
2) Missing FORM(</form>) end tag.
3) Missing space between form ACTION and METHOD
by pbs
Tue Sep 10, 2013 9:30 pm
Forum: phpMyAdmin
Topic: This table does not contain a unique column. Eh?
Replies: 1
Views: 4876

Re: This table does not contain a unique column. Eh?

set primary key for auto increment field
by pbs
Tue Sep 10, 2013 9:28 pm
Forum: mySQL & php coding
Topic: Chain PHP commands anyone?
Replies: 1
Views: 998

Re: Chain PHP commands anyone?

by pbs
Thu Sep 05, 2013 10:31 pm
Forum: mySQL & php coding
Topic: DELETE Query MySQL
Replies: 5
Views: 1719

Re: DELETE Query MySQL

first check this SELECT query SELECT MAX(VERSION) FROM version GROUP BY ETAT_FONCT if above SELECT query return desired output which you don't want to delete then use this SELECT query as sub query in DELETE query as DELETE FROM version WHERE version NOT IN (SELECT MAX(VERSION) FROM version GROUP BY...
by pbs
Mon Aug 26, 2013 7:54 pm
Forum: PHP coding => Mail
Topic: how to write Auto Mail script in php
Replies: 3
Views: 1291

Re: how to write Auto Mail script in php

you need to set CRON Job for it.
by pbs
Fri Aug 23, 2013 8:16 pm
Forum: PHP coding => General
Topic: How to get the delimiter count in a For Loop in PHP
Replies: 5
Views: 1340

Re: How to get the delimiter count in a For Loop in PHP

try this

Code: Select all

$str = "2,7,10";
$delimiter = ",";
$str_arr = explode($delimiter, $str);
$cnt = count($str_arr) - 1;
may this work for you
by pbs
Wed Aug 21, 2013 2:51 am
Forum: PHP General
Topic: Useful PHP Articles, Sites
Replies: 42
Views: 25270

Re: Useful PHP Articles, Sites

PHP, MySQL, JavaScript Blog
http://www.php-guru.in/
by pbs
Mon Jul 29, 2013 12:56 am
Forum: HTML Basics
Topic: show/hide advanced search form
Replies: 2
Views: 1251

Re: show/hide advanced search form

rather than giving id="pr1" to table tag, add one span or div tag and copy your search table in that and assign "pr1" id to it, also remove id="pr1", style="display:none;" from table tag and apply it to span or div tag or else replace your search table code by this <span id="pr1" style="display:none...
by pbs
Fri Jul 26, 2013 10:30 pm
Forum: mySQL & php coding
Topic: Add a Export button / Function
Replies: 1
Views: 1353

Re: Add a Export button / Function

yes you need to add CSV export code
by pbs
Mon Jul 22, 2013 9:53 pm
Forum: mySQL & php coding
Topic: parse error
Replies: 1
Views: 667

Re: parse error

give quotes around email addresses too

mail("abcd@yahoo.com","aa","bb","From:xyz@yahoo.com");