Search found 1202 matches

by hyper
Sat Apr 10, 2021 8:11 am
Forum: PHP coding => General
Topic: live real time chart
Replies: 4
Views: 148

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: 129

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: 148

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: 101

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: 350

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: 447

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: 187

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: 340

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: 340

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: 231

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: 307

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: 333

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: 358

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: 225

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: 437

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: 312

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: 471

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: 781

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: 492

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: 493

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: 697

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...
by hyper
Sat Jan 09, 2021 1:39 pm
Forum: PHP coding => General
Topic: added php to javas script and now nothing works
Replies: 2
Views: 611

Re: added php to javas script and now nothing works

There could be several things going wrong here, it's down to your version of PHP and your settings.

Do you have error reporting switched on and displaying errors?
by hyper
Sat Jan 09, 2021 1:23 pm
Forum: PHP & MySQL Security
Topic: PHP & Mysql tool for test or upgrade security
Replies: 1
Views: 586

Re: PHP & Mysql tool for test or upgrade security

Try this link for starters
And this one

Never think that you know everything. Read as much as you can about the subject and do what you think is right and makes sense. Understand why you are told to do things a certain way. Continue to read on the subject and learn.