Displaying DB table data on my website using PHP

PHP
I've seen this question asked in many ways but none that address my concerns nor are any of them at a very basic level like this one. How do I displa...
2 years ago

Get list of current page's categories in MediaWiki

PHP
I'm trying to display a page's categories in my MediaWiki skin without resorting to the following default code: <?php if ( $this->data['catlink...
2 years ago

PHP and XML: How to retrieve attributes in XML

PHP
Here is my XML: <?xml version="1.0" encoding="utf-8" ?> <items> <itemgroup name="ATM" column="1" sort="0"> <item formid="A...
2 years ago

Force composer to require PHP Version between Version X and Version Y

PHP
we have a mix of different PHP versions running on your servers (max 5.3.5) and development machines (max 5.5.9). Now we ran into the problem that we...
2 years ago

how to get the last inserted id and how to check in where condition to update query using php

PHP
Hi iam inserting the data into database table and redirecting to another page and need to insert the details into the same table by comparing ids and...
2 years ago

A more efficient way of saving 125 columns in a Laravel controller

PHP
I have a rather large table that has 125 data inputs, each of which has to be saved in a separate column. I have named each HTML input as 1,2,3 etc.....
2 years ago

Best workaround to create a PHP class constant from an expression?

PHP
I'd like to be able to do something like this: class Circle { const RADIUS_TO_CIRCUMFERENCE = M_PI * 2; // Not allowed private $radius; ...
2 years ago

PHP MSSQL Scripting Issue (Warning: Not a MS SQL Link Resource)

PHP
I am getting some strange results when working with a custom script to verify email addresses in a database. I have a php script that is ran via comm...
2 years ago

Convert all HTML Tags to lowercase

PHP
I have this code, but PHP gives me an Unknown modifier '?' error. Anyone knows what I did wrong? (I found the code on the internet, because I'm not f...
2 years ago

Get URL query string

PHP
What is the "less code needed" way to get parameters from a URL query string which is formatted like the following? www.mysite.com/category/subcat...
2 years ago

Validate Registration Form in Modal And Submit data in database

PHP
In my modal I have registration form with fields of name,email,password.While using ajax alone i can add my data.now i tried with bootstrap validator....
2 years ago

Special character PHP HTML

PHP
I have a problem of special character writing on my website coded in PHP (data from database and normal writing html) Code : code in Sublime text R...
2 years ago

PHP, subtract minutes

PHP
I want to send a reminder email and I don't want to use cron on Linux/Unix/BSD boxen nor Scheduled Tasks on Windows. I'm trying to subtract 15 mins f...
2 years ago

Tier Pricing Dropdown for Magento

PHP
I have been working on a site for a number of months, and now am back to a feature that was never implemented. We planned from the beginning to only ...
2 years ago

With this rule , how can I say that the same field is greater than or less than 0?

PHP
Code php: <td><?php echo $prod['gross_total'] >= 0 ?></td> <td><?php echo $prod['gross_total'] <= 0 ?></td>...
2 years ago

PDO disconnect and php variable reference

PHP
I'm new to PHP high level. But not new to programming. We have a software (in dismission but still active) that is killing our DB. Inside is used PD...
2 years ago

Access MAMP's MySQL from Terminal

PHP
I want to practice using SQL instead of phpMyAdmin. How do I log into MAMP's MySQL from the terminal?
2 years ago

Laravel 5 $request->input vs Input::get

PHP
Just wondering what is the difference between: $username = $request->input('username'); and $username = Input::get('username'); ...
2 years ago

Automatically Restart PHP Script on Exit

PHP
Is there a way I can automatically restart a PHP script whenever it exits, regardless of whether it has been exited properly, or has terminated due to...
2 years ago

How to count number of same items in array

PHP
I have array named $result that looks like this Array ( [items_to_give] => Array ( [0] => Array ( ...
2 years ago