93 Answered Questions for the topic PHP

Php Sql Mysql

03/25/19

Error updating record: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax t

<?phpsession_start();require('connect.php');if(isset($_POST['submit'])){$id = $_POST['id'];$username = $_POST['username'];$name = $_POST['name'];$email = $_POST['email'];$password =... more

Should a CMS be used for a photographer portfolio web site?

My friend photographer asked me to develop a portfolio web site, and I'm wondering if a content management system (CMS) should be used for this purpose? The website contains a minimum of dynamic... more

03/19/19

Showing Featured Item From the Database?

I have database table as below. id, bungalow_name, type, address, featured A bungalow can be featured in the home page. If a bungalow is featured, `featured` column has the value `1`. I have 50... more
Php

03/18/19

How do I convert a string to a number in PHP?

I want to convert these types of values, `'3'`, `'2.34'`, `'0.234343'`, etc. to a number. In JavaScript we can use `Number()`, but is there any similar method available in PHP? Input ... more
Php

03/18/19

Formatting a number with leading zeros in PHP?

I have a variable which contains the value `1234567`. I would like it to contain exactly 8 digits, i.e. `01234567`. Is there a PHP function for that?
Php

03/18/19

PHP mail function doesn't complete sending of e-mail?

I've tried creating a simple mail form. The form itself is on my `index.html` page, but submits to a separate "thank you for your submission" page, `thankyou.php`, where the above php code is... more
Php

03/18/19

How to find the last day of the month from date?

How can I get the last day of the month in PHP? Given: $a_date = "2009-11-23" I want 2009-11-30; and given $a_date = "2009-12-23" I want 2009-12-31.

What is the Real Quickbooks Online API?

I've been researching this for a while, and I really can't find the right solution. I found this PHP API that is supposed to help solve all these issues, but it doesn't work - or it's not clear how... more

Is PHP front end or back end?

Php Sql Mysql

01/10/19

How do I get the size of a particular table in MySQL database?

Php

01/10/18

how to create random numbers from 1 to 5 without repeats in php . the code of it i know the fundamental but it keeps on repeating . Badly need help

how to create random numbers from 1 to 5 without repeats in php . the code of it i know the fundamental but it keeps on repeating . Badly need help
Php

08/16/16

sir,can i stop the backtrash in php after login the php page?

sir,this question is related to the computer science student .php 
Php Gzip Apache

12/26/15

Simultaneously enable gzip and $STR_REPLACE in CGI in apache

I have a code in my CGI script for text replacement (for example replace 'red' with 'blue')$STR_SEARCH='red'$STR_REPLACE='blue'I am using the below code in .htaccess for enable replace function:... more

08/07/15

PHP Loop Help

Write a small program (Code) in PHP language using for loop which prints from 1 to 100.

08/07/15

PHP Array Help

The associative Array in PHP language can be define/declare through Array() function and can take any number of key-value pairs. The indices/keys of an associative array can be numeric or... more

08/07/15

PHP Basic Help

Write a small program (Code) in PHP language which declares a variable that stores some amount and calculate the “Zakat” on this amount.Note: The “Zakat” can be calculated through formula “(Amount... more

03/24/15

visual basic: get php Query from text box

How can I get url Query from text box and put it line by line in richtextbox. exemple:I want to get query from textbox1.text :http://www.mywebsite.com/test.php?id=4&url=3&bakgroundid=951and... more

01/02/15

eCommerce with Dreamweaver, Please help

I have a question , Currently i Have a store Locally. However i want to put them online and sell through my website. I created a site with Dreamweaver. Basically i dont want to write code for each... more

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.