Jump to content

TheHeretic

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

TheHeretic's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Not sure how to construct this, will basically have a column with values such as "300","Somtimes,"700", "whatever" Need to somehow select only those rows where the first character in the row is numeric ???
  2. 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 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.....
  3. 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.
  4. 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.
  5. Thanks ViN our web designer pointed that out as well, apparently TEXTAREA doesn't have a value tag/property/thingie.
  6. Okay it all worked except for this one <TEXTAREA NAME="description" COLS="40" ROWS="6" value="<?php echo $desc; ?>"> Not sure what's going down there, $desc does have a value = "Alone in the world was a little catdog"
  7. Quite aware, was using ASP to illustrate what I'm trying to achieve as clearly the wordage I'm using in google isn't php speak or something. As in, this is how I would do it in that language, what is the equivalent in php. Off to try out the answers
  8. For no apparent reason couldn't find the answer via googling around Okay in ASP I would simply do this, maybe a slight syntax error there. <input type="text" name="groupname" size="50" value="<%=my_var%>"> What the heck is equiv in php. Have tried settihg value equal my_var and printing the gosh darn thing as well
  9. Like your button roll overs, easy site to navigate. Maybe a tad too many different fonts on the home page and you need an eye catching banner imho.
  10. 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.
  11. 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 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.
  12. 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.
  13. 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. ???
  14. Sorry posting while you answered dude. Awesome, that fixed it Which is going to lead me to another question directly :-\
  15. 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
×
×
  • 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.