Jump to content

132591

Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About 132591

  • Rank
    Newbie
  1. A java tutorial would be really awesome! And it is not completely not web-related.
  2. 132591

    php forum

    yeah, that would make sense.
  3. 132591

    php forum

    Never mind I found the problem. The function "mysql_fetch_assoc()" will return false if now rows exist in the $result variable, and so my code was dying.
  4. 132591

    php forum

    It dies at the point where it does: $sql = "SELECT * FROM topic WHERE name = 'Rants'"; if(!($result = mysql_query($sql, $con))) die("<br />" . mysql_error($con) . "<br />"); if (!($row = mysql_fetch_assoc($result))) die("<br />" . mysql_error($con) . "<br />"); if($row['name'] != "Rants"){ $sql = "INSERT INTO topic(parent_forum, name, description) VALUES(1, 'Rants', 'Things you don't like about our site.')"; mysql_query($sql, $con); }
  5. 132591

    php forum

    Why is this code not working? It should display the forums and their topics, but instead one of the "die()" functions executes, and I do not know why. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><style type="text/css"> body{ background: #3399FF; font-family: Arial; } td.center{ text-align: center; } a{ text-decoration: none; color: black; font-family: Arial; } a:hover{ color: white; text-decoration: underline; } a:visited{ color: purple
  6. 132591

    PHP vs. ASP.NET

    ASP.NET is microsoft, and that should be enough for you not to learn it.
  7. It would be really cool if you were to give tutorials on things like C++!
  8. 132591

    pointers

    Are there pointers in php? and if so, how do I use them?
  9. Thanks, I would not have thought of that!
  10. Is it possible to use a php form to edit xml? I was thinking something like this. <html><head><title>xml editor</title></head><body><form method="post"><input type="text" name="xml_code" /><input type="submit" value="change xml file" /></form><?php$fp = fopen("edited.xml", "w");fwrite($fp, $_POST['xml_code']);?></body></html>
  11. a bit too much blue, that is all. Other than that I like it very mcuuh
  12. you can just do it by embedding it in html <embed src="foo.mp3" />
  13. I also got Javascript for Dummies, and Javascript - the difinitive guide. They are each great.
  14. I have Javascript-The difinitive Guide, and I htink it is great. I would go with that.
  15. <form name="myform" id="myform"><input type="text" name="mytext" id="mytext" /><input type="submit" value="enter text" /></form><script type="text/javascript"><!--var text = document.myform.mytext.value;document.write(text);--></script> Why does this not work?
×
×
  • Create New...