Jump to content

TheHeretic

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Posts posted by TheHeretic

  1. sample ? or explain a bit more

     

    Not sure what you mean by a sample there teng. A bit of research elicits I can sneak in arrays against the field and checkbox names, just having a play with that at the moment as it looks like the answer if I can work ouit the post form syntax :)

     

    Unfort am at work and they quite unreasonably expect me to code in mircosoft technologies, what's that about :o Actually php leads to shorter code than this .net malarky and I haven't even got around to harnassing functions yet. Considering we habe unix servers galore why we don't use non M$ technologies is beyond me.....

  2. Okay have a mysql file which is basically key, description, and four boolean fields.

     

    When i read through this file I want to display

     

    Descriptio    chkbox1    chkbox2    chkbox3    chkbox4

     

    repeating the line for each record in the table.

     

    How do I name the grouped text boxes and pass their values to a post display php script?

     

    Hope that makes some sort of sense.

  3. Someone had posted up a handy little tutorial on calling and using functions, where's that got to?

     

    After spending quite sometime this morning putting database updates, and checks etc into five pages figure I would be better off writing some functions for db handling, naturally have no idea how to do that in php.

     

    Had a look through the tutorial section but couldn't locate it there. Was a pretty simple, here's how to call a function, this is what a function looks like sort of thing.

  4. Thanks dude that's fixed it.  :)

     

    Okay since the page is working, thanks to the fine folks at php freaks, I'm pulling up stumps grabbing a beer and getting ready for the World Cup.

     

    Really glad I've found this site, will post up a few links at other places.

     

    BTW will be hitting the forums with lots of questions as am working on movie review software, which of course will be freely available to anyone who wants it. First version might be a bit rough as haven't even gone near php functions as yet.  Big learning curve, but must say php is a whole lot of fun to work with.

  5. ROR is a fairly robust scripting language featuring a 4GL framework. Ruby is the language Rails is the framework. Some Japanese bloke invented ruby as an alternative scripting language. Fairly easy to pick up, but at the moment not a lot of hosting companies with ROR options. If you google there's a number of ROR forums out there, and yes a number of free applications.

     

    Fairly amazing things can be achieved with a minimum number of lines of code, there's a forum product available coded at under a 100 lines for example  :o

     

    Played around with it a bit in order to write a few tutorials for another place, but prefer php as a learning exercise seems a lot more robust. There's a few security holes in ROR at present, though they may have fixed them by now.

     

    ROR is of course a free product and is pretty much a no brainer to install. Not aware of any IDEs for it.

     

    Hope that helps.

  6. Yves the problem is a lot of us new members will go elsewhere if we get flamed, found this site after having an altercation at another site with one of their "gurus" who simply put answers as links to the php manual quite often not even bothering to read what the actual question was.  When I pointed out to him this wasn't overly helpful to us new folk, believe it not we do check the manual but often don't know what we are looking for, it was on for young and old.

     

    I help out at an IPB support forum, and our policy is there are no stupid questions, stupid is not asking if you don't know something.

     

    Thus far really impressed with this site :)

     

    Could I ask for an intros forum? Would help newbies like myself to meet and grate the crew here.

  7. Calling page builds this link

     

    printf("<td align=center><font size=2 face='Arial, Helvetica, sans-serif'><a href=ad_editmgroup.php?grp_id=%s>Edit</a></font></td>", $myrow["grp_id"]);
    

     

    In the receiving page am using

     

    $grp_id = $_POST['grp_id'];
    

     

    $grp_id is not being loaded from the calling page url, probably cause I have the wrong function or something?..... ?grp_id=%s resolves to ?grp_id=2 on the record I am testing against.  ???

  8. Im pretty sure you can do the second thing you asked, but you need to give more detail for your first question. such as some more coding, etc.

     

    Regards ACE

     

    Jeez that was quick. Here's some more code on the first question.'

     

    Using php 5 btw, not sure which release, installed via WAMP to an XP Pro SP2 box.

     

      		$sql = "select * from sbyd_member_group where grp_id = $grp_id";
    
      		$result = mysql_query($sql ,$db);
    
      		if ($myrow = mysql_fetch_array($result)) {
                             $error = false;
          	do {
       	     	$name = $myrow["name"];
           	 	$description = $myrow["description"];
           } while ($myrow = mysql_fetch_array($result));
       	} else {
        	$error = true;
        	$errormessage = "<li><b>Member Group not found in Database!</b><br>\n";
    		printf("<font face=arial size=-1>There was a problem editing the Group.  Please click on back in your browser to fix the problems listed below.<br><br>");
    	   	printf($errormessage);
       	}
    
       }
       
    If not($error) {  <----- the browser doesn't seem to like this statement
    ?>
    

     

    Yes I know I should be using CSS but currently just getting it to work before tarting it up. CSS questions will come later  ;)

  9. No offense, but IPB already has this ability out of the box. If you got this code from ize be careful as a number of posted modifications simply duplicate existing functionality. Be equally careful of installing mods from ize to a production site, a lot of them simply don't work and the authors know about as much php as I do, i.e newbie level. Been waiting over a month on ize for an answer to what is a major issue with an add on module.

     

    Which version of IPB are you using?

  10. Am trying to get an "if" statement working and figure I have it completely wrong, fairly new to php so these is probably not going to be too taxing

     

    Am trying to test for a variable not being true

     

    if not($error) {
    

     

    Getting the following error

     

    Parse error: syntax error, unexpected T_STRING, expecting '(' in C:\webpages\scaryminds\siteadmin\ad_editmgroup.php on line 51

     

    The second question is more can I do something like this

     

    <?php if Isset($mem_id) { ?>
    
    html
    html
    html
    
    <?php } ?>
    

     

    Trying to get the html to parse if the variable has a value.

     

    TIA

×
×
  • 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.