Jump to content

MrXHellboy

Members
  • Posts

    153
  • Joined

  • Last visited

    Never

Everything posted by MrXHellboy

  1. Could you please ask specific questions as it is quite relative (your questions).
  2. You only want the domain ? echo strstr('something@example.com', '@'); // = @example.com
  3. And what do you want from us ?
  4. Do you have outlook or another MUA (email client) ?
  5. This is impossible: sendmail_from with your @hotmail.com account. You have to install argo mailserver, and create a account from there. Create something like test@locahost and fill the @ sendmail_from
  6. Ok back to the issue... You use html_entity_decode() to translate special chars back to their characters, and with this they lose their special meaning in HTML like <b>Indeed</b> In this case, prevent that the script will put the data into the DB with already html entities. Just like you would write something down, it has to go in the DB. From there you must translate.
  7. Since you are testing on your localhost.... You need a mail server for that. F.i Argo mailserver (freeware) Then alter the following directives @ php.ini http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
  8. I assume filter() is one of your own ? Could you provide the code ?
  9. It shows errors for all sort of kinds. Could you please run your script once more and copy and paste the notices, warning or whatever you get @ the top of your page ?
  10. Remove this: if (!get_magic_quotes_gpc()) { $name = addslashes($name); $comment = addslashes($comment); } replace with $name = mysql_real_escape_string($name); $comment = mysql_real_escape_string($comment); This function will put slashes \ before quotes and other characters which needs to be escaped. This function is also useful against SQL injection attackes. Your insert into query is OK. In which tables will the comments be placed ? Or nothing at all ? Check the name of the table once more, just to be sure.
  11. I dont exactly get what you want but in the sentence "if image title ==": echo ($image_title == 'home') 'IMAGE' : 'NO IMAGE'; something like this ?
  12. It depens on how the data is put into the DB and retrieved from it. Which functions it passes etc etc
  13. First of all, remove the die() function over there. It will scare your visitors away. It makes no sense at all when you halt the execution of the script because one of the fields was empty. Second of all, remove this part if (!get_magic_quotes_gpc()) { $name = addslashes($name); $comment = addslashes($comment); } TThis will mess up your DB fields...... Use mysql_real_escape_string() instead. Please post your whole page and the exact problem once more as i dont get what you want
  14. Long story short: htmlspecialchars_decode will decode HTML special chars which have a meaning in HTML like, &, <div>, " whereas html_entity_decode will translate ALL the special characters
  15. Testing on a webserver @ a hosting company or your local machine ? Second of all, add the following to the top: ini_set('display_errors', 1); error_reporting(E_ALL);
  16. I don't have your txt file but try this: <?php preg_match('/<td\s+width="60%"\s+class="dataRegularUlOff">Price<\/td>\s+<td\s+width="40%"\s+class="dataRegularUlOff">(.*?)<\/td>/si', $work, $matchesarray); print_r($matchesarray[0]); ?>
  17. 1) Check if the name already exists by a select query... 2) Append a string to the username Something like this $ID = mysql_query("SELECT id FROM members WHERE name = '$name' "); if ($ID) { $name = $name.'suffix'; mysql_query("INSERT INTO members (name) values ('$name')"); }
  18. Dont forget the alt="" attribute = required
  19. Create a unique ID in PHP and put it into the DB. You can create a function with only numbers yourself, very simple. or something like a already existing function http://nl3.php.net/manual/en/function.uniqid.php
  20. I see nobody has replied yet, so i will take a shot... Are you using Windows or Unix variants or Linux ? Probably it has to do something with the rights.. Check and alter the permissions
  21. Dont know what you want exactly... but try this. foreach ($timeslotstarts as $timelotstart) { $timeslot_start=$timelotstart->timeslot_start; $dropDownList .= "<option value=".$timeslot_start.">".$timeslot_start."</option>"; }
  22. If you want to extract info from HTML output, stored in a variable, before the headers are sent, you might use PCRE. But i dont get exactly what you want.
  23. I Guess you dont have to search for the problem here...... As far as i can see, nothin could throw this kind of error within this code
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.