Questions tagged as 'php'

0
answers

Contact form and php attachment

I have a contact form that should send an attachment, the problem is that it does not send the mail or the file, I have already looked at spam and others and I have no idea why it is not sent, try it with emails from Gmail and Hotmail and just d...
asked by 16.05.2017 / 16:20
0
answers

Display variable name woocommerce in product pre-visualization

happy day. It happens that I would like to show the name of the variations in the product range imposed by woo comerce: Then in the image above I have two variations, the one on the left called x and right and . Searching for the...
asked by 08.03.2017 / 18:06
2
answers

Create user levels in login system using sessions

I would like to be able to establish user levels (administrator and normal user) using the sessions, I already have in my user table the level of the account now I would like to validate your entry but I do not know how to get the level of the t...
asked by 02.03.2017 / 13:51
0
answers

Fatal error: Call to a member function query () on null

I am programming the Log In of a page in PHP within WordPress and I get this error:    Fatal error: Call to a member function query () on null in /home3/georgerojas/public_html/contablesjm.com/wordpress/conexiondb.php on line 35 I know so...
asked by 01.03.2017 / 17:54
1
answer

Save custom field woocommerce with php

I'm working with woocommerce in wordpress, developing a php function that uses a hook to store some extra information about the generated order. The question is: how can I save this extra information (related to an order id) in the database?...
asked by 01.03.2017 / 15:42
2
answers

problem with header location in two different urls

I have the following code require('db.php'); if($_POST['id']); { for($i=0; $i<count($_POST['id']); $i++) { $msjn=$_POST['mensaje']; $idfoto=$_POST['id']; $nomb=$_POST['nombre']; $r1=$_POST...
asked by 01.03.2017 / 15:18
0
answers

Phpmailer Fatal error: Class 'SMTP' not found in

I am trying to send an email using the phpmailer class, however I have not managed it so far. I have tried several options and combinations within the code and even see if the problem is not found in the php.ini file but I have only achieved the...
asked by 20.03.2017 / 17:22
1
answer

I would like to have the file created with the data that is in the form

The form is something simple like <head> </head> <body> <form action="creador.php" method="post"> <input type="text" name="datos" id="datos" /> <input type="submit" name="formSubmit" value="...
asked by 21.03.2017 / 08:14
3
answers

XML Web Services with HTML deployment

$url = 'http://www.webservicex.net//country.asmx/GetCountries?'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);...
asked by 22.03.2017 / 06:01
2
answers

Problem with objects and functions - PHP

I have a class Matriz with 10 rows and 10 columns with several functions. When I create an object of that kind in another class and try to use its methods, I have no problem, but when I try to create a function to use that object, it...
asked by 11.03.2017 / 22:46