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
0answers
16 views

Sort populated combo box by name

I have a piece of code I am working with which populates a combobox with a list of folders in a certain directory: <?php echo '<form>'; $path = "images/"; $handle = opendir($path); echo ...
0
votes
0answers
30 views

Displaying data from 3 arrays with correct format

Hello and thanks in advance to anyone that can answer my question. I'm still a bit green in terms of PHP but I will try to explain what I want and what my problem is. I have 3 arrays with MySQL ...
0
votes
0answers
4 views

Joomla 1.5 : index page contents to some menu item links only

Mostly we found in template there is already in index.php which shows in all page for eg. <h1 class="logo-text"> <a href="index.php" title="<?php echo $siteName; ?>"> ...
0
votes
0answers
4 views

how to post tweet using twitter 1.1 api and twitteroauth

I use the below code retrieve my tweets and echo json. This works fine. <?php session_start(); require_once('includes/twitter/twitteroauth.php'); $twitteruser = "xxxxxx"; $notweets = 3; ...
0
votes
0answers
10 views

Running a long conditional on the wordpress loop to display certain posts

I'll try and keep this simple. I need to write a conditional that allows the user to either have 3 posts from one CPT or 1 from each CPT displaying on the homepage. I have 3 CPT's and 1 taxonomy in ...
0
votes
0answers
18 views

Jquery <div> Slider with php generated <divs>

I'm pretty new to programming, and i'm writing a pretty simple website for an outlet, with 4 pages: home, beauty, wellbeing, contacts. This website will be a showroom for this outlet's articles, ...
1
vote
1answer
24 views

insert data from html table to mysql using php

I am making a php application for saving data, it is using table inside form, I want to save data from table to mysql using PHP. Parse html table using file_get_contents to php array I am coming ...
1
vote
2answers
19 views

Unable to process array Passed as post parameter to php via ajax

I am trying to pass an array via ajax to a remote php script for execution. This is a snippet from what i tried $arr=["12","13"]; $.ajax({ url:"script.php", data:{"arr":$arr} success: ...
0
votes
0answers
4 views

CodeIgniter & Twitter API 1.1 - posting status update with access_token and access_token_secret

I am using CodeIgniter and this Twitter API library (https://github.com/epoberezkin/twitter-codeigniter) to post a status update. This works nicely. I now want to post update programmatically, by ...
0
votes
1answer
5 views

Smarty 3 template from outside templates folder

I have had been doing same with previous smarty versions... Like loading a TPL file outside of specified templates folder, like this: $smarty->display("../admin/bin/tpl/default.tpl"); exit(); ...
-4
votes
1answer
28 views

When should i learn a php framework? [closed]

I am working on a project , a mobile hybrid application , that combines native code , html5 - jquery mobile (for the frond end) and php - mysql (for the back end). The server side , is responsible ...
0
votes
1answer
17 views

Search for a term in mssql via php depending on an inconstant variable

Basically, I have a login panel where users can login and what I am trying to do is when they login I want to find out their Authentication ID that has been set in the MSSQL database. The database ...
0
votes
1answer
9 views

UTF-8 encoding for subject in contact form email

On this sites Website Link contact form I need to send the subject for email in UTF-8. Where in the code we need to do declare the UTF-8 encoding? kontakt.php: <? require_once ...
-3
votes
1answer
30 views

How do validate and post data from pop up form?

<div class="navbar-inner"> <div class="container-fluid"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> ...
0
votes
0answers
8 views

Routes not working when uploaded to server (CodeIgniter)

I created a site on CodeIgniter and everything works fine on XAMPP. But when I upload my file to the server the routes stopped working. I'm getting 404 URL not found error on all the page except the ...

1 2 3 4 5 26778
15 30 50 per page