dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Alan P

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    851

    Thanks. I'll check them out.

    Thanks. I'll check them out.
  2. Replies
    6
    Views
    851

    Can you recommend a good book? I've looked at OOP...

    Can you recommend a good book? I've looked at OOP but not PDO. But it's confusing. I read this:


    If a variable is called an attribute then why call it a variable or why call a variable an...
  3. Replies
    11
    Views
    1,234

    No, there has to be a way of using mysqli...

    No, there has to be a way of using mysqli procedural style to insert safe mysqli_real_escape_string data from a Tinymce textarea into a database and display that information formatted properly onto a...
  4. Replies
    6
    Views
    851

    Prepared Statements

    Every tutorial I have seen on prepared statements uses examples where the variables are INSERTed into every table row at the same time. That isn't real world. I have database tables that require some...
  5. Replies
    11
    Views
    1,234

    Originally I was just using this: On the form...

    Originally I was just using this:

    On the form page:

    $field_content = ""; //default as blank
    if (isset($_SESSION['content'])) $field_content = $_SESSION['content'];
    And this on the review...
  6. Replies
    11
    Views
    1,234

    Sorry, I am using mysqli and...

    Sorry, I am using mysqli and mysqli_real_escape_string. I left the "i" out in my post.

    The database connection script:

    <?php
    Define ('DB_USER', 'user');
    Define ('DB_PASSWORD', 'password');...
  7. Replies
    11
    Views
    1,234

    Unfortunately, I'm still learning about prepared...

    Unfortunately, I'm still learning about prepared statements so I can't use that right now, and I usually use mysql_real_escape_string() but with Tinymce being a WYSIWYG editor...
  8. Replies
    11
    Views
    1,234

    Tinymce and strip_tags

    I have a form that uses Tinymce and strip_tags:


    $allowed = "<div><p><span><br><ul><li><strong><em>";
    $content = $_POST['content'];
    $_SESSION['content'] = strip_tags($content, $allowed);

    The...
  9. Replies
    3
    Views
    751

    :o Yes, they were set in my real script but I...

    :o Yes, they were set in my real script but I failed to set them in my test script.
  10. Replies
    3
    Views
    751

    The problem doesn't seem to have anything to do...

    The problem doesn't seem to have anything to do with the \n's. When I remove them the name variables still do not display. ?? Something is bad wrong here.
  11. Replies
    3
    Views
    751

    I am getting many Parse and String errors

    I am using PHP 5.4 on an Apache / Linux server

    One error:

    $text = "Mr. $first_name $last_name,\n\n$userfn $userln is responding to your ad titled: $ad_title. Please find $userfn $userln's quote...
  12. I downloaded and installed phpmailer and tested...

    I downloaded and installed phpmailer and tested their send_file_upload.php script, which worked. But I am experiencing many errors in the script that I included the guts of that file...
  13. Sending email with a .doc, docx, pdf, .txt, .text file as an attachment using php mai

    I need to be able to send an email with an attachment - not images but rather .doc, docx, pdf, .txt, .text files (as an attachment). I have a job board and in the ad will be a "Submit Resume" button...
  14. Thread: Dates

    by Alan P
    Replies
    3
    Views
    760

    I think the best thing for me to do here is to...

    I think the best thing for me to do here is to get another hosting account and ask them to install PHP 5.3 or greater. I have several websites on my current hosting account and many of those use...
  15. Thread: Dates

    by Alan P
    Replies
    3
    Views
    760

    Dates

    I use Xampp to write/test codes before uploading to hosted server. Unfortunately my hosted server uses an older version of PHP (5.2.17) than Xampp (PHP Version 5.4.7).

    I need to accomplish the...
  16. Replies
    2
    Views
    611

    Yes it does. I thought perhaps that might be the...

    Yes it does. I thought perhaps that might be the case.
    Thank you.
  17. Replies
    2
    Views
    611

    $_SESSIONS['question'];

    Hello,

    I have an if, elseif, else statement and each one has a formula that calculates a different price and late fee. Also, in each one is a link to the payment processing page, which has a form...
  18. Replies
    6
    Views
    1,019

    I've installed PHPmailer on my server and I have...

    I've installed PHPmailer on my server and I have an email form with a file upload for the user to upload a resume file. Most of the tutorials I've found deals with sending images, but I only want a...
  19. Replies
    6
    Views
    1,019

    While I'm here though, I need a secure way to...

    While I'm here though, I need a secure way to send an email with an attachment (.txt, .doc, docx files - no images). I'm using PHP 5.2.17. Any ideas?

    Thanks
  20. Replies
    6
    Views
    1,019

    :o oops. Sorry, should have caught that. Thanks

    :o oops. Sorry, should have caught that. Thanks
  21. Replies
    6
    Views
    1,019

    Undefined index: $eemail

    I keep getting the Undefined index error and can't figure out why.


    if (isset($_POST['eemail']) && !empty($_POST['eemail']))
    {
    if...
  22. Thanks to both of you for the information. It was...

    Thanks to both of you for the information. It was a great help! I'll study up on the sprintf function, sounds interesting.
    Thanks again.
  23. [RESOLVED] Mixing array elements with a variable string

    $lang = array(
    'city' => 'Dallas',
    'stateabb' => 'TX'
    );

    $title = "About {$lang['city']}, {$lang['stateabb']} USA";
    $title = "About " . {$lang['city']} . ", " . {$lang['stateabb']} . " USA";...
  24. I'll look into it. Thanks for the tip and the...

    I'll look into it. Thanks for the tip and the help.
  25. Yes, I believe the page you linked to said that...

    Yes, I believe the page you linked to said that the second parameter was the array to be searched, which would be $losers.

    I used "if (!in_array($user_agents, $losers, true))" which I took to mean...
Results 1 to 25 of 121
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles