-
Posts
1,041 -
Joined
-
Last visited
-
Days Won
17
Everything posted by gw1500se
-
email address is domain account user name @ the server name
gw1500se replied to Chrisj's topic in PHP Coding Help
Use the correct directory. -
email address is domain account user name @ the server name
gw1500se replied to Chrisj's topic in PHP Coding Help
The error message seems clear to me. The path you specified in the require statement is not correct. -
email address is domain account user name @ the server name
gw1500se replied to Chrisj's topic in PHP Coding Help
It seems to be pretty straight forward. You replace your mail code with this and use the same $_POST values to set the respective values as shown in the example. The only difference is you set the from address to whatever you want. That being said your ISP may munge it as it passes through the mail server. Nothing you can do about that. -
email address is domain account user name @ the server name
gw1500se replied to Chrisj's topic in PHP Coding Help
Because you are not setting the from parameter. You should be using PHPMailer which is simpler and gives you much better control. -
Having trouble with simple update to database
gw1500se replied to jakeburg's topic in PHP Coding Help
Very bad practice. You need to use prepared statements as suggested by Barand. In the mean time what is the error you are getting or what do you get that you don't expect. I notice that you are not doing any error checking after the query. -
The most common way to accomplish this is with sessions and post/redirect/get.
-
It is not clear what you are asking. Keep in mind that javascript is client side and php is server side. The two do not know about each other. Your code will produce 5 buttons on the displayed page. Each one will execute the javascript function 'test' when clicked by the user.
-
You did not read the documentation. The variable $html is not an HTML string which is what loadHTML expects. You want 'loadHTMLFile' instead.
-
You need to understand the difference between accessing an object via pointer (->) and an array element [...] or '=>'.
-
["parent"]["_"][1][4] I think. You may need to parse each element to drill down to what you want.
-
$str1 is not a string so you can't treat it that way. It is an array. You can see that $str1[0] is the element you are looking for.
-
You need to look at the httpd log to see exactly what the error is.
-
You need to learn some debugging techniques so you can help yourself. First use: echo "<pre>"; var_dump($html->find('li')); echo "</pre>"; to see exactly what you are retrieving. From there you should be able to figure out what to use to parse that result or if you are not getting what you expect.
-
Hint: Get the array of children first.
-
Yes, you always should validate any data coming back from a form. However, if the objective is to obscure the data from the user as well, then use some form of encryption for those fields.
-
It is not clear what you mean. Your code certainly will not do what you ask. You don't save the text from the <li> that follows the first <ul>. It sounds like you want an associative array where the key is 'text1' and the value is an array of 'text2', 'text3', etc.
-
W3school is the last resource you should try. In any case the code you omitted is the code we need to see, particularly the headers you are setting to send. Yo don't send post data in the UR per se. Are you using curl or pecl?
-
First using 777 is very dangerous so you really don't want those permissions. Second, just because the directory 'db' has those permissions, it does not mean the upper level directories have the correct ownership or permissions. You have to look at each level.
-
So what have you tried and what is not working as expected?
-
mysqli affected rows not working with INSERT
gw1500se replied to pcborges's topic in PHP Coding Help
You are missing the point. The PHP script is working with respect to MySQL. But it is not outputting a valid HTML page that the C++ code can interpret. I highly suspect that is what the -11 is trying to tell you. -
mysqli affected rows not working with INSERT
gw1500se replied to pcborges's topic in PHP Coding Help
You need to look at the HTML source being returned by the PHP script to the C++ code. If it is blank or just -1 or 0 then the headers are not being output and that is why the C++ code cannot interpret it. Thus, perhaps, the -11.