Questions tagged as 'php'

1
answer

Add video in Moodle

I'm trying to find out how I add my video in Moodle using the SRC directory. I have my own theme, and it will contain a fixed box with a video. I would like to implement this video in my normal HTML5 code with the tag video . I'm get...
asked by 10.07.2014 / 16:55
1
answer

Create a search within a select

I wanted to know some method to incorporate a search for, to facilitate the use of select in a system with many categories, looking for the internet, I found a paid script that has a solution, let's say better. I will leave an image below that s...
asked by 30.05.2014 / 23:39
3
answers

Embed YouTube via post using the API

I could not find what I wanted, just things like that, I even made a video and posted it on Youtube so you can understand what I want to do, if anyone can help me, I thank you, follow the video below: link I want to put a link in the tex...
asked by 09.05.2014 / 00:12
1
answer

How to change URL value, with the information retained in the Select / Option

I use this because I'm developing an E-Commercer system, but the client wants the products to be in ComboBox with Select. Until then everything is correct, my difficulty is to make the change to the URL, according to the 'product' selected in...
asked by 12.05.2014 / 15:29
3
answers

What is the best way to create PHP Related Posts?

I have a system that I use, but I wanted to have a system to make the search for related posts more filtered, I currently use REGEXP SQL to do, I already used LIKE and the results did not please me, Anyone have any new ideas on...
asked by 07.03.2014 / 18:03
2
answers

Error in using glob function with wordpress

I am trying to recover images from a folder with the native function of php glob , but it is returning an empty array . I'm passing the complete path of the folder to the function. Follow the code below: $pasta = get_template_directo...
asked by 18.03.2014 / 05:06
3
answers

Overwrite file snippet with php?

I do not know how to explain my problem, so I'll exemplify: I am using PHP and would like to manipulate a .txt file of n lines. Each line has a default length of 20 characters. For example ... the first 8 characters refer to a sendin...
asked by 07.03.2014 / 13:35
1
answer

array in javascript that communicates in php

I need to create a array in javascript tag that is submitted your information to a page php . How can I do this? Next, I had a php that I uploaded, repeated data from the bank. So to improve her performance, I've created a scri...
asked by 05.03.2014 / 15:12
1
answer

Receiving Json array in PHP [duplicate]

I have the following code on the application side: function enviaMensagem() { var send = "http://appchat.host56.com/mensagem.php?jsoncallback=?"; $.post( send, {"table": [{"d":1, "p":1, "m": "1"},{"d":2, "p":2, "m": "2"},{"d":3, "p":3,...
asked by 14.11.2014 / 16:25
1
answer

How to list a query without knowing what will be returned?

In this example I defined some attributes to be shown, but in the game I do not know which ones to show because the user is the one who is going to ask the query. <?php while ($row = mysql_fetch_array($qry_result)){?> <tr>...
asked by 21.11.2014 / 00:56