Questions tagged as 'php'

2
answers

How to change the name of a radio automatically?

Good evening, I hope you can help me I have this while inside another while and it shows 5 for each row, so I need your name to change in each row, I do not know if I explain <?php include("cabeceras/sesion.php"); ?> <?php if(isset(...
asked by 20.04.2017 / 05:30
3
answers

a href to an identifier with margin

My question is if you can do a href to an id but send you 5px higher or 10px for example: <a href = "#nosotros"></a> <div id = "nosotros"></div> That looks like this and not stuck up like here    ...
asked by 07.03.2017 / 18:45
2
answers

position several floating divs aligned in a container

I am learning and I need to dynamically load several images, it can be 1 or 50, in the example I made a short loop with several floating divs to explain my problem. I need the divs to be aligned with the exact same space each other, the divs hav...
asked by 10.03.2017 / 03:16
1
answer

Problem with ajax, error 403 (Forbidden) when processing queries

I have a textarea to which I write a query like: SELECT* FROM usuarios to process them in a php document and be able to extract the result of this query. Everything goes well in this aspect, but whenever I use clauses, such as: LIMIT o...
asked by 27.02.2017 / 04:12
1
answer

fatal error call to a member function prepare () on boolean in functions.php online 32

I am making a news system that is perfect in apache and in an online server. This error arises when running the site on a local server windows iis can be the php versions? has the 5.6 $bd_config = array( 'basedatos' => 'noticias',...
asked by 13.02.2017 / 15:36
2
answers

add Shortcode plugin custom

everyone! I have this code, <?php add_action('wp_head', 'app_searched_today_visitbh'); function app_searched_today_visitbh(){ <?php global $wpdb; $horas = $wpdb->get_var("SELECT time_format(timediff(now(),date_people),'%...
asked by 13.02.2017 / 23:38
1
answer

Update number every hour with setInterval [closed]

For now I have only been able to do this code var time = 1; var myInterval = setInterval(funtion(){ time += 1; },3600000) }); I need a div, each time the number is increased after one hour, <div id="time">1</div> The pr...
asked by 13.02.2017 / 19:16
1
answer

PHP problem with abstract classes and protected functions

As the title says, I have a problem with the following code. abstract class AClass { abstract protected function a1(); abstract protected function a2(); public function show() { return $this->a1() . "<br>" . $this...
asked by 28.01.2017 / 14:41
2
answers

Sort by custom meta box a custom post type - Wordpress

I have a custom post type called "events". In it, I have a custom meta box called date (which is the day, month and year in which the event will occur). The problem is that I want to create a new obj WP_QUERY, I can order it by the date I ent...
asked by 22.03.2017 / 19:09
2
answers

Error installing php5-pgsql on ubuntu

I have an Ubuntu 14.04.4 LTS server. PHP version: PHP 5.5.9-1ubuntu4.20 (cli) I want to install php5-pgsql, I use the following command: sudo apt-get install php5-pgsql I get the following error    Reading package lists ... Done   Buildi...
asked by 22.03.2017 / 20:00