PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.

learn more… | top users | synonyms (8) | php jobs

0
votes
0answers
3 views

Programatically build full page cache for webshop

I run a webshop and my catalog is updated every few hours automatically. I also make use of full page caching. The thing is, after every catalog update I need to refresh the full page cache. My ...
0
votes
0answers
7 views

var_dump return bool(false) and @mysql_ping() return true, why ?

Problem with mysql connection via php. I have simple database as follows: CREATE TABLE test ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, val INT ); And when I do select in ...
0
votes
1answer
11 views

how to retrieve mysql database information

i want the user to be able to view the reservation details after entering an email address the code below shows all data in the database, what do i add to make only the user's reservation details ...
-1
votes
1answer
16 views

Notice: Undefined property:

I am getting Notice: Undefined property: Page::$vars in C:\xampp\htdocs\mysite.local\ww.php_classes\Page.php on line 41. Then it is showing "404 thing goes here". I am getting this notice whenever I ...
0
votes
0answers
6 views

Can't figure out why json response is empty by Android App

I have this class in Android but it does not return any of my content from the json website and i can't figure it out why.. public class MainActivity extends Activity { ...
0
votes
1answer
16 views

How to properly “delete” a Cookie in PHP

I have created a PHP and Cookie-based Login and Logout system for the admin page of a WebApp I am working on. Issue is when I refresh the page more than 2 or 3 times when I am Logged In, the Log Out ...
0
votes
2answers
16 views

PHP Save Background Color

I have a jQuery script that shows the BackGround Color when you enter text on it. How can I use PHP to make it save background till session ends? So when a user selects a color, the background color ...
0
votes
0answers
11 views

Sending an array to the databae

Hiii... I can get an array from $_POST['C'] to my PHP file. I need to send it to the database. Here I have posted what I tried. <? if(!empty($_POST['G'])){ ...
0
votes
3answers
11 views

Insert (join of two tables) into a different table

I have two tables with a bunch of stuff I don't need in them. One has info about a user and the other their password. I have a new table that will store both their info and password together. ...
0
votes
1answer
15 views

Results not correctly being entered into SQL DB

I have this form that is asking for a security question and answer and upon submit the data is entered into my SQL DB but for some reason when I run the form and try to print the displayed data to ...
0
votes
0answers
8 views

XML formatting result return error

I am trying to return a XML structure format from a PHP file...I should get an expected result like: <points srv="2381" id="1233"><point id="1233" value1="46" value2="11" value3="231" ...
-1
votes
2answers
30 views

If … do this if statement?

I am stuck on some php coding, that seemed initially easy to accomplish. Here is what i would like to do : <?php $amountOfDigits = 1; $numbers = range(1,3); shuffle($numbers); for($i = 0;$i < ...
0
votes
1answer
16 views

How can I make an interactive image for the user in javascript or in PHP

I have tried how to make an image interactive in an html file, I need to move the image and make sure that the user can interact with it, so far I could just make it move from one side to another ...
-3
votes
1answer
15 views

Parse error: syntax error, unexpected $end in /home/u824730104/public_html/include/config.php on line 57

I need help i keep getting: Parse error: syntax error, unexpected $end in /home/u824730104/public_html/include/config.php on line 57. any help is much thankful. here my code: <?php // ...
-2
votes
0answers
10 views

need help to fetch some data

I have this website www.lolnexus.com and I'm trying to make a PHP script to fetch data like on png that picture: https://dl.dropboxusercontent.com/u/4765898/Sem%20T%C3%ADtulo.png When you go to ...

15 30 50 per page