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 (6) | php jobs

0
votes
1answer
12 views

MySQLi Connection Issue

I am having some trouble getting MySQLi to connect and respond properly. It should be relaying a connection error any time it is unable to connect to the database, but it doesn't, even when enter ...
0
votes
0answers
16 views

SUM all points for each team player in different category

I need to do a SUM of all points (hiscore) for each player. For now I'm able to sum either player1 or player 2. So for example in category 7, player 1 is Tom, and in category 5 player 2 is also Tom. ...
0
votes
1answer
14 views

Else If block and curly brackets

Knowing that in PHP we could ignore curly brackets in conditional blocks with only one function / line after the "if", "else if" or "else" tag, like this : if (myVal == "1") doThis(); else if ...
0
votes
0answers
2 views

lighttpd, php, SoapClient not found

I am trying to install this on a switch using buildroot, I added php and lighttpd to the build. I start the server and the webpage gives this error: Fatal error Class 'SoapClient' not found I went ...
0
votes
0answers
6 views

Calling shell script from PHP is not working as expected

I am trying to open remote machine browser from my machine. I have setup password less connection ( considering the fact that both systems are in same n/w and are trusted). I am able to run below ...
0
votes
0answers
7 views

How to order by a segment of preg_match_all results?

I'm using PHP to generate a list of references to a text by doing a preg_match_all search on a database table. Here is the PHP code: $query = "SELECT primary_tag,display_short_title,content FROM ...
0
votes
0answers
5 views

Google Search Engine Effect and auto complete

I am working in my company website which it has a front o index page like Google with a search form. I would like to create the same effect as Google, once someone start looking for any product, it ...
0
votes
0answers
12 views

PHP MySQL connection (mountain lion)

beginner over here. Im trying to connect to a MySQL database with PHP. Im running MYSQL 5.6.11, PHP 5 and Apache on Mac OSX (mountain lion). This is my php code for the connection. When I try opening ...
0
votes
2answers
28 views

PHP interaction with AJAX

So I have this function in my javascript file: function UpdateThisCourseHistory(){ var ajax= new Ajax.Request("runNeededQueries.php", { method: "POST", ...
-2
votes
0answers
9 views

How do we integrate Amazon MWS with magento go?

Does any one have step by step procedure of bringing up the amazons mws with the magento go ?
1
vote
1answer
26 views

PHP - Compare arrays and search for matching values

I have 2 arrays, $arr1 and $arr2. The 1st is a list of columns that I expect to read from an excel file and $arr2 is the array of columns that were actually found. Sometimes the uploaded file contains ...
0
votes
0answers
5 views

Image upload and delete to Amazon S3

I have uploaded image to amazon s3 using the site below : http://www.flynsarmy.com/2011/03/upload-to-amazon-s3-with-uploadify/ Now i need to do Delete (already uploaded) Image from s3 Convert ...
0
votes
0answers
3 views

Drupal deployment - blog content separation from node table

I have 3 environments : dev, staging and live . I use drupal and all content pages need to be synchronized when I deploy from dev-> staging -> live . I use a python deployment script (migraine) to ...
0
votes
1answer
28 views

wrong output in mysql_fetch_array

Here is a snippet of my code : require_once('functions.php'); include('dbinfo.php'); connectdb(); $querys= "SELECT 'score' FROM solve WHERE (problem_id='".$_GET['id']."' AND ...
1
vote
3answers
36 views

Better MVC approach is to prepare html output in Controller or in a View?

The question is which one of the methods is considered as best practice for use in MVC? I wish to hear from developers who worked in a team, so they can tell from their own view. I need to generate a ...

1 2 3 4 5 25734
15 30 50 per page