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

0
votes
0answers
14 views

Regex to get currency and amount from string

I have an Regex with me preg_match('/(?<=\$)\d+(\.\d+)?\b/', $str, $regs which return me the amount in a currency, but what i am trying is to get the symbol associated with the amount too. 1) E.g. ...
0
votes
1answer
10 views

INSERT mySQL record if conditions are met

I'm creating a highscore table for a game using PHP and a MySQL db I've got it so that it inserts your score, and then tells you your position, but to prevent spamming the board with the same person ...
0
votes
0answers
6 views

Insert current page, id, date into mySQL table

In my Joomla 2.5.14 I'm trying to insert the current page_id, user_id and date into a mySQL table (called xmb9d_hist). This is the code I'm using: <?php /* Define $jinput */ $jinput = ...
-1
votes
0answers
11 views

change Status function is not working properly

change Status function is not working properly. there is an ajax problem <script type="text/javascript"> $(function() { $(".datepicker").datepicker({ ...
0
votes
0answers
3 views

App access token is not working with FQL

Requirement: Search a facebook friend by name Solution: We are already using graph API to fetch all friends of a facebook user with following URL call $url = 'https://graph.facebook.com/' . ...
0
votes
0answers
9 views

How add resume ability to force file download

I have a simple word press plugin which have just 2 php files: payline_file_download.php http://pastebin.com/29vGyw5h payline.class.php http://pastebin.com/ENJcUM5z this plugin is used for selling ...
0
votes
1answer
22 views

redirect of url to “HOME” Page

When i type anything beyond my url path Eg: http://example.com/doctorlist/ngffghf5235235 , I want it to get redirected to my home page i,e.. http://example.com . How can I do it . I have my .htacess ...
0
votes
1answer
15 views

Admin log in not working properly

Why is this not working properly? $sql = "SELECT * FROM $tbl_name WHERE Brugernavn = '$amyusername' AND Password = '$amypassword' "; $result = mysql_query($sql); $count = ...
1
vote
2answers
43 views

How to write this query with two joins

I have 3 table type +----+-------+ | id | type | +----+-------+ | 1 | typeA | | 2 | typeB | | 3 | typeC | +----+-------+ brand (contains brands and sub brands ...
0
votes
1answer
18 views

Add content to PHP WP excerpt

I'm a complete PHP newbie and I need a solution to this stupid problem. I have a custom Wordpress theme and I'm trying to get the most out of it. I found the part where excerpts to on index page are ...
0
votes
0answers
18 views

PHP xml array parsing data [duplicate]

Hey all i have this type of XML i am trying to get data from. This is just a snip of the large XML code: [published] => 2013-03-31T20:27:04.000Z [updated] => 2013-03-31T20:27:04.000Z [link] ...
0
votes
0answers
11 views

ffmpeg for x264 core 136 lib in iOS

I want to develop a service (written in php) to provide mobile platforms(iOS/android/..etc) or desktop PCs to stream videos. I have tried a lot and found. My iPhone4 didn't support core 136 lib ...
0
votes
0answers
2 views

How do i inject/assign a Drupal tpl file into the content value of a block?

My goal is to create a html snippet that will have links and a JavaScript slideshow. I've searched thoroughly elsewhere but cannot come up with a resolution close to my objective. How would i assign ...
-2
votes
0answers
33 views

text box with in_array

i am trying to make it so that the text box i have will work with the in_array function so that a user can only enter something thats in the array and then will echo- Your Favourite Car is (option) ...
0
votes
0answers
4 views

Generating a grouped categories in Highcharts dynamically using php mysql

I m really stuck with this from 1 week, can anyone please help me in creating an array for creating an grouped categories in Highcharts from a database dynamically using php.Here is an example of a ...

1 2 3 4 5 28580
15 30 50 per page