Jump to content

jhecht

Members
  • Posts

    608
  • Joined

  • Last visited

Posts posted by jhecht

  1. Nice forum. I would recommend using a different color scheme than W3forums, and I agree, Ninjas DO pwn Pirates.
    I don't use the same color as he w3forums... that is the prosilver design that comes with phpBB3... which really doesn't look like this one at all.
  2. Site Name: Jhecht's PHPBB3 test forumSite Description: A test forum that i set up when phpBB 3 was still in beta stages. It has since gotten out of the beta stages, but i keep the site around because i use it as a mod-development board. Site Owner/Developer: MeSite Address: http://jhecht.xtreemhost.com/ Extra Comments: It's really nothing fancy, but I do plan on integrating a CMS(Content-Management-System, for the newer people) into phpBB3. Feel free to sign up, it helps me test user permission sets and other things(since when i login im a moderator/admin, some of the mod pages i make require a non-admin user to double check that people can't get access to admin/moderator only pages) I'll post up my personal site when I set up my server again(I had to move it from the garage, just too much of a pain to try and manage it from over my room).

  3. Not to be mean, but if you know javascript at all, in any way, then you should know how to use this; If you don't, then whats the point in you reading and/or replying? If you don't know javascript, then don't complain to us that you can't figure out how to use it. Figure out basic javascript syntax(because this is quite honestly a very BASIC example), and THEN complain that something doesn't work.

  4. you also dont need .db in the table name. MySQL databases are not stored in [server] directories. Mind you they are stored in a directory somewhere, just not one that someone can access. So you dont need a .db.

  5. Or you could use mysql_result... but i would advise staying away from that.the syntax however, would be something like :

    $sql = "SELECT * FROM table";$ans= mysql_query($sql) or die(mysql_error());$res= mysql_result($ans,0,'column') or die(mysql_error());

    help!

    I dont think anyone understands what you need. If i had to guess then this would be what im guessing you wantSELECT * FROM table WHERE websiteID=1Replace 1 with whatever number you need.

  6. <?php$objData = new PReport($db);$id =(int)$_GET['id'];$sWhere = "WHERE id = $id";//integers dont need quotes around them$objData->load(false, false, $sWhere);//Im assuming objDataload was meant to be objData->loadwhile ($res = $objData->fetch()){$app=$res->getStatus();if($app =='pending' || $app=='cancelled'){echo '';}else{ ?><tr><td class="txtRegular" style="border-bottom:#999999 solid 1px"><?php echo " ". $res->getID(); ?></td><td height="36" class="txtRegular" style="border-bottom:#999999 solid 1px"><?php echo " ". $res->getDate(); ?></td><td style="border-bottom:#999999 solid 1px" class="txtRegular"><?php echo " ". $res->getCity();?></td><td style="border-bottom:#999999 solid 1px" class="txtRegular"><?php echo " ". $res->getState();?></td><td style="border-bottom:#999999 solid 1px" class="txtRegular"><?php echo " ". $res->getDetails();?> </td></tr><?php }}?>

    for the love of god look up hereDoc syntax. I hate it when while's have code split between 2 sections of php code. Its just ugly to have to read and go through. look up here doc, please.If that doesnt work then you may need to post up the code for the definitions of PReport

  7. Just dont learn VB.net, seriously. dont. i advise 100% against it.And i dont see how the fact that there are different branches of XML makes it the future. Once you learn basic syntax of RSS its pretty easy to figure out from there. once you get RDF and ATOM, again pretty easy. XSL is self explaintory in my book. I dont read tutorials, i read basic syntax and from there i figure it out myself. Do's and donts are easier to find when your browser is yelling at you becuase you messed up in the XSL somewhere rather than being babied by a book. I hate that, when people get books to try and learn something and then in real life when they try it they say "well this wasnt in my book so i dont know what to do" its to me like "if you need your book, you shouldnt be programming" And as for the W3C, they will try to fade out XML, but it wont work. I am not the only one who sees XML as pointless, im sure a very large population of the web programmers and developers agree with me(maybe not on this sight, but they are out there) and if W3C tries it, there will be an uproar in protest sites, mean things done to w3c's server, and so on and so on. They can try, but it wont happen. Possibly stricter XHTML, but XML will not completely absorb (X)HTML So restating what i told you earlier Tns, dotnlearn Vb.net. Its a waste of time and typing.

  8. XML is massive, there is plenty to learn. You only covered one part of the syntax rules but XML is so much more. I just started it in the summer and i'm still overwhelmed by how much there is (XSL, Schema, XPath, XQuery etc).If you have the time i would advise you learned it, it's the future :)
    No offense to you dude, but what is taking you so long? That stuff is not that hard. make sure every opening tag and every closing tag are the same exact spelling. Not hard. Xpath is just how XML organizes things.... not hard, schema.... anyway.I completely disagree with you about that future thing. XML isnt the future. more complex SQL, PHP, ASP, and more of the server languages, those are the futures. the day i see an entire website driven TOTALLY(as in every aspect is run by XML) by XML, is the day i quit programming. Agreed, XML is powerful, but XML has nothing on PHP, ASP, JAVA, or C++.
  9. pointer... why does that sound like a c++ thing.... oh wait are you talking about C++ pointers where you use a .... crap what is it, some character in front of the variable name and then when you use that it makes a reference point to the variable where its stored in the computers memory?I dont really think theres something like that?Why, what would you need a pointer for?

  10. <?phpinclude("mysql_connect.php");//Im assuming in mysql_connect.php there is a line that says $myConnect = mysql_connect()$username = $_POST['username'];$password = $_POST['password'];$pass_md5 = md5($password);$query = mysql_query("SELECT * FROM usersWHERE user='$username' AND pass = '$pass_md5'",$myConnect) or die(mysql_error());if(mysql_num_rows($query) != 0)	{	echo "That password is correct.";	}else{echo "That username or password is wrong.";}?>

  11. you mean a website where you host forums for other ppl?evrytime you install in a database just put the users name and an underscore before the table names

  12. once you get it to the point where you have mysite.com/xxxxx you can use apache's mod_rewrite and have it send every thing after the mysite.com to a PHP page which would redirect through MySQL from there.

  13. XSLT is more XML, and honestly i would try to stay away from it, XML is good for RSS, other than that almost anything you do with XML can be done alot faster in PHP and MySQL. As for the XML thing, if you really want i believe there is a function called simple_xml_loadfile, and once that is loaded you can pretty easily get values set from the XML file and display them however you want.And boen_bot, how are databases less secure than xml? XML can be viewed by anyone with a browser, databases can be only used and viewed by one who can connect to the server with the right permissions.

  14. Along with what Justsomeguy said, this is not good

    $link = mysql_connect (localhost, root, "" );

    You need quotes around localhost, and root. They are strings, not constants, so they must be enclosed in quotes so PHP knows to defferentiate the 2.another way you could do it would be something like:

    <input type="checkbox" name="delArray[]" value="1"/><input type="checkbox" name="delArray[]" value="4"/>

    where the value="" is the ID of the entry in MySQL. in order to check this it would be like

    foreach($_POST['delArray'] as $value){//delete code using $value }

  15. ... Dont learn Vb.Net... Sorry but thats just what i think, Vb.net is just basic bull and there is abolsutely nothing you can really use it with other than a server that supports the .NET framework(which would be a windows server, and that would not be fun). If you want to learn languages, learn PHP, or the server side java if you really want. And as for XML, there really isnt anything to learn.... just make sure every opening tag has a closing tag or that the tags that dont need a closing tag have "/" at the end before the >. Other than that you make up what is inside a javascript, and thusly how it is parsed and used with your server.Have fun on the SQL exam, and by the way, wtf is MCAD?

  16. You would use an Include, and in order to call the functions you would go like this$name = new db('localhost','user','pass','db');while($jim = $name->mysqllist2('tableName')){ print_r($jim);}

×
×
  • Create New...