Search:

Type: Posts; User: JShor; Keyword(s):

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    6,361

    Well, what I've done personally in the past is...

    Well, what I've done personally in the past is run a regular expressions cleanup of the CSV sheet (surround strings with double quotes, strip hanging commas, etc). It really depends on the...
  2. Replies
    5
    Views
    6,361

    Make sure the CSV is formatted correctly. If you...

    Make sure the CSV is formatted correctly. If you made the CSV sheet in Excel (or even modified it in Excel, for that matter), chances are it's screwed up.
  3. Replies
    2
    Views
    1,416

    I would keep a record in the database of every...

    I would keep a record in the database of every file, and keep a record of which user ID(s) have access to the file.
  4. Thread: Json Problem

    by JShor
    Replies
    1
    Views
    1,430

    Which parameter isn't working? I don't...

    Which parameter isn't working? I don't understand what you're trying to accomplish here.



    <?php
    include("include/db_conn.php");
    $appid=$_REQUEST['appid'];
    ...
  5. Replies
    13
    Views
    2,774

    There are databases available which have nearly...

    There are databases available which have nearly every ISP IP stored and which country they're in, and they have API's. So you can predict and store what country they're in for most places with these...
  6. Thread: UTF-8 error

    by JShor
    Replies
    8
    Views
    2,501

    It's much simpler than you think. Sending mail...

    It's much simpler than you think. Sending mail in UTF-8 just requires modification of the headers. This should work for you:




    $headers = "From: $from_user <$from_email>\r\n".
    ...
  7. Replies
    6
    Views
    6,689

    The semicolon at the end does not belong there,...

    The semicolon at the end does not belong there, and neither does the &lt; (that's the HTML entity for a less-than sign.



    for($i=0;$i>$count;$i++) {
  8. Replies
    6
    Views
    6,689

    I see. This should work: if($delete){ ...

    I see.

    This should work:


    if($delete){
    for($i=0;$i&lt;$count;$i++){
    $del_id = $checkbox[$i];

    // Get the image path.
  9. Thread: UTF-8 error

    by JShor
    Replies
    8
    Views
    2,501

    It's not the script that needs to be encoded...

    It's not the script that needs to be encoded differently, it's your email.

    You need to send a MIME header to tell the email to be encoded in UTF-8.
  10. Replies
    6
    Views
    6,689

    Then how do you display the uploaded image to...

    Then how do you display the uploaded image to your users?

    With that said, there is no way to delete the image from a folder without knowing where it is first. Therefore, you need its exact path....
  11. Replies
    1
    Views
    1,048

    I don't get it, the code is working just fine. I...

    I don't get it, the code is working just fine. I tested it like so:


    $dateFormat = str_split("15072012", 1);
    echo $dateFormat[0]; echo $dateFormat[1]; echo "/"; echo $dateFormat[2];...
  12. Ok, well the problem here is that all of the...

    Ok, well the problem here is that all of the related form fields with an array in the name must match their respective checkbox. In lamens terms, everything related to a set checkbox must be set,...
  13. Replies
    4
    Views
    3,740

    Resolved The solution is as simple as changing the file...

    The solution is as simple as changing the file name parameter in the imagejpeg() function to whatever the desired file name is.

    It was:


    imagejpeg($new, NULL, 90);


    When it should be:
  14. No matter what you do, the user will be able to...

    No matter what you do, the user will be able to download the video somehow. You can make the system very complicated, to the point where users would be discouraged from doing so, but you cannot make...
  15. Replies
    4
    Views
    2,029

    Be more specific. What do you mean by 'E-mail...

    Be more specific. What do you mean by 'E-mail box'? The form field for email is the one where you would enter the 1000 email addresses.



    The modified script I made sends the email to all of...
  16. Replies
    4
    Views
    2,029

    You can write it so that the user separates the...

    You can write it so that the user separates the emails by a comma (e.g., "you@yourdomain.com, me@mydomain.com, joe@doe.com" would send to all three of those addresses).

    Accept the string, split it...
  17. Resolved Update: Well, I figured out a solution. Since...

    Update: Well, I figured out a solution. Since table cells are the grandchildren of the <table> tag in the DOM tree, it can be accessed by calling parent() twice. From there I can have the script...
  18. Resolved HTML DOM: retrieve only direct children cells within table.

    I'm using this parser:
    http://simplehtmldom.sourceforge.net/

    I want to get all of the cells that are direct children of the parent table, not all of the cells within the table. This is because I...
  19. Replies
    8
    Views
    2,467

    Resolved phpDesigner. ...

    phpDesigner.

    http://www.mpsoftware.dk/phpdesigner.php
  20. Replies
    18
    Views
    3,470

    Whoops. I meant to change this line: ...

    Whoops. I meant to change this line:


    $_SESSION['username'] = $_POST['username'];


    ...to this:


    $_SESSION['username'] = $r["username"];
  21. Replies
    3
    Views
    1,554

    Resolved Ah, I've solved the problem. xval was actually...

    Ah, I've solved the problem. xval was actually containing window.innerWidth + 200, but in IE, window.innerWidth was returning as undefined, resulting in the whole equation becoming NaN. I ended up...
  22. Replies
    3
    Views
    1,554

    Resolved Concatenation failure in IE!

    Works fine in Firefox, Chrome, Opera and Safari. However, in IE, I get the warning "Invalid argument" for these two lines.



    elem.style.left = (xval + 'px');
    elem.style.top = (yval +...
  23. Replies
    18
    Views
    3,470

    View Post

    <?php
    session_start();
    mysql_connect("localhost","root","") or die(mysql_error());
    mysql_select_db("shopping") or die(mysql_error());
    $result = mysql_query("SELECT * FROM login WHERE...
  24. Replies
    18
    Views
    3,470

    Your code is valid, but it seems like setting the...

    Your code is valid, but it seems like setting the username as a POST variable is a huge security issue. You should check whether the username:
    1. Exists.
    2. Matches a POSTed password.

    You...
  25. Replies
    1
    Views
    2,154

    You're running a MySQL query on a MySQL query. ...

    You're running a MySQL query on a MySQL query.

    It's the equivalent of doing this:


    $bobby =
    if( mysql_num_rows( mysql_query( mysql_query("SELECT userid FROM online WHERE username =...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4