Search found 568 matches

by chorn
Mon Jan 14, 2019 11:26 pm
Forum: PHP coding => General
Topic: date_diff
Replies: 3
Views: 35

Re: date_diff

Use the DateTime class, it has a diff-function.
by chorn
Sun Dec 30, 2018 5:56 am
Forum: PHP coding => General
Topic: A Laravel app that implements a JSON API
Replies: 1
Views: 84

Re: A Laravel app that implements a JSON API

Step 1: Download Laravel.
by chorn
Sun Dec 16, 2018 11:56 pm
Forum: PHP coding => General
Topic: How to install PHP Open Source like Wordpress
Replies: 1
Views: 115

Re: How to install PHP Open Source like Wordpress

do it as the documentation says.
by chorn
Sun Dec 16, 2018 11:55 pm
Forum: PHP coding => General
Topic: WP Job Manager Snippet do not work: “Make custom meta field searchable”
Replies: 2
Views: 185

Re: WP Job Manager Snippet do not work: “Make custom meta field searchable”

but it is not searchable
what should that mean for anyone not familar with your task? what`s the technical specification of "searchable" in this context?
by chorn
Wed Dec 12, 2018 12:14 am
Forum: PHP coding => General
Topic: Rolling 6 different dice...
Replies: 7
Views: 302

Re: Rolling 6 different dice...

just have a look if array_unique changes your data.
by chorn
Wed Nov 28, 2018 2:35 am
Forum: PHP General
Topic: mobile device detect
Replies: 2
Views: 187

Re: mobile device detect

what for.
by chorn
Fri Oct 19, 2018 9:00 am
Forum: PHP General
Topic: Open PDF on page nr 13
Replies: 4
Views: 322

Re: Open PDF on page nr 13

and you are sure it's the adobe reader that opens, and not the viewer of the browser (firefox and chrome have their own, no need to install adobe reader)?
by chorn
Fri Oct 19, 2018 2:19 am
Forum: PHP General
Topic: Open PDF on page nr 13
Replies: 4
Views: 322

Re: Open PDF on page nr 13

who said this could work this way?
by chorn
Sun Sep 30, 2018 11:27 pm
Forum: PHP coding => General
Topic: Simple Form Post with PHP to another Server
Replies: 3
Views: 448

Re: Simple Form Post with PHP to another Server

Have a look in your servers logfiles, there must be a more specific error message.
by chorn
Tue Aug 14, 2018 5:03 am
Forum: mySQL & php coding
Topic: Upgrading from mysql_ to mysqli_
Replies: 4
Views: 664

Re: Upgrading from mysql_ to mysqli_

I think you can. But the class you provided doesn't seem to make use of Prepared Statements (seperating the statement from the variables to prevent SQL Injection) [just lookup those terms] - that's the major problem and implies much refactoring.
by chorn
Tue Aug 14, 2018 3:25 am
Forum: mySQL & php coding
Topic: Upgrading from mysql_ to mysqli_
Replies: 4
Views: 664

Re: Upgrading from mysql_ to mysqli_

Lookup every use of any mysql_* function, read the documentation at php.net to the according mysqli_* function, replace the old ones with the new ones, run your tests.
by chorn
Thu Aug 09, 2018 10:40 pm
Forum: PHP General
Topic: What would be the best way to encrypt and decrypt to and from a database please?
Replies: 1
Views: 375

Re: What would be the best way to encrypt and decrypt to and from a database please?

the term "best" implies at least one property on which the rating could be applied.
by chorn
Sun Aug 05, 2018 10:24 pm
Forum: mySQL & php coding
Topic: How to order a database table using Order By command
Replies: 4
Views: 480

Re: How to order a database table using Order By command

"order by" works per query, the order is not stored. So you have to apply "order by" in the query for your form.
by chorn
Sun Jul 22, 2018 9:44 pm
Forum: PHP coding => General
Topic: Sending Email problem in PHP
Replies: 1
Views: 259

Re: Sending Email problem in PHP

try a wrapper like PHPMailer that shows detailed errors.
by chorn
Sun Jul 22, 2018 9:43 pm
Forum: PHP coding => General
Topic: Passing variable value from one if statement to another
Replies: 1
Views: 224

Re: Passing variable value from one if statement to another

why do you think $var is not available later?
by chorn
Sat Jul 21, 2018 12:33 pm
Forum: PHP coding => General
Topic: sending data from one page to other
Replies: 3
Views: 334

Re: sending data from one page to other

Use a form, like <form>, set method-attribute, like method="post".
by chorn
Thu Jun 28, 2018 4:57 am
Forum: PHP coding => General
Topic: which one is better, PHP or Nodejs
Replies: 2
Views: 286

Re: which one is better, PHP or Nodejs

for what.
by chorn
Sun Jun 24, 2018 9:47 pm
Forum: PHP coding => General
Topic: Multidimensional array
Replies: 3
Views: 459

Re: Multidimensional array

The first one is just the text representation from print_r(). The second is the php-source-code equivalent to get there.
by chorn
Thu Jun 21, 2018 9:16 pm
Forum: mySQL & php coding
Topic: Breif query about reading from PDO
Replies: 3
Views: 538

Re: Breif query about reading from PDO

what function.

use $conn->fetchAll().
by chorn
Thu Jun 21, 2018 9:13 pm
Forum: PHP coding => General
Topic: Code Editor
Replies: 2
Views: 328

Re: Code Editor

Just try out some editors (notepad++, phpstorm), at least it's your preference, and even notepad (on windows) can be a 'good' [enough] editor if it's the only one you are allowed to use, but other tools will give you way more help and faster results.
by chorn
Tue Jun 19, 2018 12:02 am
Forum: PHP General
Topic: How to build a simple calendar, timetable.
Replies: 1
Views: 316

Re: How to build a simple calendar, timetable.

If you want the calendar to be clickable, use some javascript, have a look at "jquery ui datepicker" for some input. You can also just build a list of dates with the DateInterval and DatePeriod classes from within PHP and provide clickable links in plain HTML.
by chorn
Mon Jun 18, 2018 9:37 pm
Forum: PHP coding => General
Topic: RewriteRule
Replies: 4
Views: 422

Re: RewriteRule

your rewrite rule is missing the terminator at the end.
by chorn
Mon Jun 18, 2018 9:29 pm
Forum: PHP coding => General
Topic: append every n lines in a file PHP
Replies: 1
Views: 288

Re: append every n lines in a file PHP

while walking over the data you can check every key with the modulo operator.