Jump to content

182x

Members
  • Posts

    179
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

182x's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Ah i see, thanks and sorry for the newbie question
  2. Hey guys, I am just wondering why the following code works.. shouldn't it be an mysql_fetch_assoc instead as its not using the index but a name instead? Thanks. <?php while($var=mysql_fetch_array($queryResult)) { echo "<tr><td>".$var['name']."</td></td><td>".$var['job']."</td></tr>"; } ?>
  3. 182x

    php order

    Hey guys, is it normal practice to place the php tags and code before the doctype of th html? Thanks.
  4. How do you do that? Any idea why its just effecting one table and not them all?
  5. Hey guys, I have put data into the database wchich contains the word "can't" I have escaped this so it displayed normally in most tables but in one case it is displayed "can<?>t" I was just wondering why the question mark has appeared? Thanks.
  6. Thanks sorry for the newbie quesion but how does an assoc differ from an index/assoc array? Thanks.
  7. Hey guys, Just wondering what the differences between mysql_fetch_assoc() and mysql_fetch_array() and when should one be used over the other? Thanks.
  8. After more testing I am still having this problem. Could it simply be an issue with the server settings?
  9. Its just a simple text area its getting the characters from, I checked with MS word to endure the word count was correct and the error trap is being called/
  10. Hey guys I am using the following code in order to ensure that a user does not exceed the limit of 2000 characters when processing a form. I also have some javascript which informs the user how many characters they have left and the php code is just a fail safe incase javascript is not enabled. However when using the code below if I have 2001 charaters it is still accepted it goes to around 2300 before it works I was just wondering why this is the case? Thanks if(strlen($_POST['text']) > 2000) { //error } else{ //ok }
  11. hey guys I am using the following syntax to insert records into my database however if one of the records contains an apostrophe the sql statement will not work I was just wondering why and how to fix it? Thanks. $test="INSERT INTO test VALUES ('','{$testing['cId']}','{$testing['user']}')";
  12. In xampp that seems to be htdocs is that just the same thing?
  13. hey guys, I was just wondering does apache have to make use of a WWW or a WWROOT directory or is that just an IIS thing?
×
×
  • 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.