Search found 1204 matches

by hyper
Sat Apr 17, 2021 4:50 am
Forum: PHP coding => General
Topic: When do you think PHP 5 will become totally unusable for developers?
Replies: 3
Views: 38

Re: When do you think PHP 5 will become totally unusable for developers?

It's difficult, the main features promoted with PHP 7 are that it is more secure, but the biggest difference in my mind is the speed increase, this has got to be a big plus by reducing the processing required and stop bounces while a user gets bored waiting for a page to load. The way I see it is th...
by hyper
Fri Apr 16, 2021 9:39 am
Forum: PHP coding => General
Topic: Searching multiple criteria PHP and MySQL
Replies: 1
Views: 27

Re: Searching multiple criteria PHP and MySQL

Use the OR operator:

Code: Select all

WHERE
  state = 'QLD' 
OR
  state = 'NSW'
MySQL OR
by hyper
Sat Apr 10, 2021 8:11 am
Forum: PHP coding => General
Topic: live real time chart
Replies: 4
Views: 219

Re: live real time chart

Ok, here's more information on AJAX for you http-equiv works so long as your page is quick at loading.
by hyper
Thu Apr 08, 2021 11:53 am
Forum: Free time
Topic: Easy Ways to Pursue Writing as a Career
Replies: 1
Views: 157

Re: Easy Ways to Pursue Writing as a Career

I want to write a tome about SPAM and its prevention, how do I start?
by hyper
Thu Apr 08, 2021 11:47 am
Forum: PHP coding => General
Topic: live real time chart
Replies: 4
Views: 219

Re: live real time chart

Make pages work without JavaScript first. no need for JavaScript HTML was able to do this before JavaScript was thought of. <meta http-equiv="refresh" content="3;url=https://www.mozilla.org"> Just be sensible in its use. So long as your page doesn't take too long to load, there should be little to n...
by hyper
Thu Apr 08, 2021 11:45 am
Forum: PHP coding => General
Topic: Different languages in subdirectories
Replies: 1
Views: 117

Re: Different languages in subdirectories

The simplest way to do this is to use the HTML lang tag, there is probably little SEO value in doing anything else, search engines use the lang tag in the document header. <!DOCTYPE html> <html lang="en"> It is possible to use directory strucure if you really want to, but, that can be a lot of work ...
by hyper
Sat Mar 20, 2021 8:26 am
Forum: PHP Scripts
Topic: How to shorten a text?
Replies: 2
Views: 397

Re: How to shorten a text?

What have you tried?
by hyper
Mon Mar 15, 2021 12:44 pm
Forum: PHP coding => General
Topic: FontAwesome styling in PHP Value
Replies: 5
Views: 517

Re: FontAwesome styling in PHP Value

Are you loading FontAwesome in your page?
by hyper
Mon Mar 15, 2021 12:34 pm
Forum: PHP coding => General
Topic: Where should I start
Replies: 1
Views: 224

Re: Where should I start

Decide what data you need.

Decide how it is to be presented.

Design the database.

Design the web pages.

Decide on any interactions (adding, editing, deleting, sorting, viewing etc..)
by hyper
Fri Mar 12, 2021 9:39 am
Forum: PHP coding => General
Topic: Memory_Limit?
Replies: 4
Views: 403

Re: Memory_Limit?

Ok, long answer short (please don't take offence at the tone of my answer, I intend only to help you and text doesn't always convey tone very well): It's probably not a good idea to use $_SESSION to store that much data, if you are using it to return pages for verification - what happens to the sess...
by hyper
Thu Mar 11, 2021 11:29 am
Forum: PHP coding => General
Topic: Memory_Limit?
Replies: 4
Views: 403

Re: Memory_Limit?

You've answered your own question: it's not the data in the row itself its the volume To add to what Simon has said, if you are looping through a $_POST that many times, then you are sending too much from your form. Instead of using limit in your query (unless you really need to), improve your query...
by hyper
Wed Mar 10, 2021 5:25 am
Forum: PHP coding => General
Topic: Running a line of code after 10 minutes of running another line of code in PHP
Replies: 1
Views: 273

Re: Running a line of code after 10 minutes of running another line of code in PHP

You'll need to set up a cron job , your host may provide access to this through cPanel etc.. PHP does not stay resident, it executes your script and then closes, so it will not be looking for when you want your next email to be sent. A cron job (in short) is a program that is executed at a set time ...
by hyper
Sat Mar 06, 2021 3:29 pm
Forum: PHP coding => General
Topic: Hex Offset to Php
Replies: 1
Views: 354

Re: Hex Offset to Php

PHP variables are of the type 'variable'. PHP only concerns itself with what type the data is, when it does something with it, e.g. when it multiplies 2 numbers together. You can force a data type if you need to which is usually called casting - Type Juggling / Type Casting , there is no INT16. You ...
by hyper
Thu Feb 25, 2021 7:53 am
Forum: PHP coding => General
Topic: Help could not find driver in PDO PHP in ububtu
Replies: 1
Views: 369

Re: Help could not find driver in PDO PHP in ububtu

What errors are you getting and what database are you using?
by hyper
Thu Feb 25, 2021 7:50 am
Forum: PHP coding => General
Topic: Extremely sporadic lost sessions. What to look for?
Replies: 1
Views: 405

Re: Extremely sporadic lost sessions. What to look for?

Check what is in the session:

Code: Select all

session_start();
var_dump ($SESSION)
Then you will be able to see if you have the correct session.

If the session variables are being set correctly, then it is a problem with your code, otherwise it is likely to be a problem with the browser.
by hyper
Thu Feb 25, 2021 7:24 am
Forum: JavaScript
Topic: add button click when enter key on input text
Replies: 1
Views: 242

Re: add button click when enter key on input text

There's no need to do this using JavaScript, much less JQuery.

Just use normal HTML and CSS to do it.
by hyper
Thu Feb 25, 2021 7:20 am
Forum: PHP coding => General
Topic: Accessing a Multidimensional Array
Replies: 3
Views: 482

Re: Accessing a Multidimensional Array

Fatal error: Uncaught Error: Call to undefined function arra_keys() in C:\xampp\htdocs\xml.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\xml.php on line 5
You need to fix the typo on line 5:

Code: Select all

array_keys()
by hyper
Tue Feb 16, 2021 10:46 am
Forum: mySQL & php coding
Topic: Table mysqli
Replies: 1
Views: 333

Re: Table mysqli

Use PDO: Something like this (not tested)- <?php $servername = "localhost"; $username = "username"; $password = "password"; try { $conn = new PDO("mysql:host=$servername", $username, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "CREATE DATABASE IF NOT EXISTS dbp...
by hyper
Tue Feb 16, 2021 10:29 am
Forum: PHP coding => General
Topic: Check specific MySQL value and print/delete recursively
Replies: 2
Views: 512

Re: Check specific MySQL value and print/delete recursively

<http-equiv="refresh" content="1800"> What follows now is a boiler plate: Learn PDO. You need to make your site as secure as possible and doing from the start will not hurt as much. Is your data really tabular? Learn to use HTML to format your output and CSS to style it. HTML tables used to format ...
by hyper
Mon Feb 01, 2021 11:56 am
Forum: PHP coding => General
Topic: Exception problem
Replies: 5
Views: 844

Re: Exception problem

Exception is another way of saying error.

It's a poorly written function and I wouldn't use it because, after you call the function you still have to do some testing to see if it's returned what you want.
by hyper
Tue Jan 19, 2021 2:16 pm
Forum: PHP coding => General
Topic: sales pct gain formula
Replies: 1
Views: 518

Re: sales pct gain formula

Your maths is wrong, the number of products that you have purchased has nothing to do with an individual sale. If you just want profit made in currency on an individual sale, you need purchase price , quantity sold and sale price , if you want to know the percentage then all you need is the purchase...
by hyper
Mon Jan 11, 2021 12:19 pm
Forum: PHP General
Topic: Edit php file
Replies: 1
Views: 514

Re: Edit php file

You'll need to use an ftp program to look at what files are there first, but it will be very difficult for us to help as there could be a lot of files.

It all depends on how he went about doing it?
by hyper
Mon Jan 11, 2021 12:15 pm
Forum: PHP coding => General
Topic: Unable to process CSS user input in my HTML/PHP code
Replies: 3
Views: 710

Re: Unable to process CSS user input in my HTML/PHP code

You have errors in your code, so it fails and does not execute. Enable errors and display errors. I don't know where you got that code from but it's seriously out of date and prone to all sorts of abuse. Don't put CSS in html elements. Verify user input. Include a <title> in your <head> as well as y...