Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. I'm not too sure about your second question but foreach($page_row as $key=>$value) echo $key . " "; should show you all the sections you have in this particular array assuming you used what Barrand gave you
  2. Amazon does offer an API for these kind of things. It's called Amazon WebServices http://www.amazon.com/gp/browse.html?node=3435361
  3. because you need to concat those 'Hello World' . "\n"
  4. yeah the modulus is the same. and to make a percentage just multiply by 100 and use round(), ceil(), or floor() to narrow the number down
  5. you could always put it in bold or do that and change the font color just echo out the HTML like you did for the link itself
  6. at the end the syntax of WHERE in a nutshell WHERE col1 = 'something' AND col2 = 'this' OR blah = 'something else' pretty straight forward
  7. just add AND `active` = 1 to whatever query you want it on. assuming it already has the where clause used once if not then just use WHERE active = 1
  8. Lighten up phpSensei. Go count ten. :^) It'll be OK
  9. I don't see anywhere in this class where it's even meant to access a database at all. what is it you are trying to do
  10. nevermind....I misread the error undefined index access_card medical_check_up safety_briefing safety_google tel_ext uniform tshirt the form you have.. doesn't contain fields with these names anywhere e.g medical_check_up might be medicalcheckup on your form page go back and check all your names and make sure they match
  11. Before you go and set a bunch of post variables like this. You need to make sure that each POST variable is set or else the variable you set for it....ie.....$date = $_POST['date'] will fail to be set $staff_no = $_POST['staff_no']; $position = $_POST['position']; $date = $_POST['date']; $app_letter = $_POST['app_letter']; $info_form = $_POST['info_form']; $handbook = $_POST['handbook']; $access_card = $_POST['access_card']; $vehicle_sticker = $_POST['vehicle_sticker']; $medical_check_up = $_POST['medical_check_up']; $safety_briefing = $_POST['safety_briefing']; $safety_helmet = $_POST['safety_helmet']; $safety_google = $_POST['safety_google']; $safety_boot = $_POST['safety_boot']; $computer = $_POST['computer']; $tel_ext = $_POST['tel_ext']; $room_no = $_POST['room_no']; $email = $_POST['email']; $stationary = $_POST['stationary']; $uniform = $_POST['uniform']; $tshirt = $_POST['tshirt']; $medical_card = $_POST['medical_card']; $induction_program = $_POST['induction_program']; to do this....use isset() an easy way to do these is extract($_POST, EXTR_IF_EXISTS); but it isn't the best of practice to use it all the time. just something to use real fast if you ever need it
  12. Well I'm not up to snuff on the FCKEditor class...never heard of it. how does this all tie together ...information, information, information
  13. well in that case, you need to escape your quotes within your value and then your error is gone. $oFCKeditor->Value = ' if($form->value(\"about\") == \"\") $session->userinfo[\"about\"]; else $form->value(\"about\"); ';
  14. so from my understanding....you're trying to do this $oFCKeditor->Value = 'if($form->value("about") == "") $session->userinfo['about']; }else{ $form->value("about");'; am I right or completely off track
  15. So far, my favorite editor has been Dreamweaver Although it's the only one I've really used.....a lot and I can't get enough of the RegEx find and replace feature.  I don't kow what I'd do without it Anyone of these editors have this feature...I'd like to try something else.  Dreamweaver's annoying to install, even though it's just Next next next but it seems like it installs way too much and takes too long for me to motivate myself to install it again after reformatting which I've done. Can I get this feature from eclipse
  16. the only luck you'll have with transfering/receiving variables to another domain is with cURL
  17. UPDATE tablename SET username = ( SELECT name FROM tablename WHERE id = 2 LIMIT 1) WHERE id = 1; maybe?
  18. Answer: Yes.. Solution: Go back and Indent.
  19. nah...it was definitely Al Gore who invented it. I heard it on TV
  20. I finally got Ubuntu up on my laptop. The latest Gutsy Gibbon version. I seem to have forgotten nearly everything I learned in my classes about Linux..goes to show how much classes really help Now that I've got spare time...I'm just to going to emmerse myself in it until I figure enough of it out, asking whatever questions I have along the way.. so here I go. This probably sounds as basic as it can get to any of you Linux gurus, but I'm trying to play around with some stuff just to figure out what I can do.. Like for instance...I have on my Desktop three tar.gz files Instead of just dragging and dropping them into /usr/local/src like this tutorial tells me to http://www.linuxhelp.net/guides/lamp/ I want to do it in the terminal..I've already discoverd I have to be root to get in there. and I'm already aware that I'll have to use the grep function and the ls function, mv, whatever. I'm not 100% positive but I want to move any tar.gz file on my Desktop to that one folder I said earlier. the most I've found so far is something like this for i in $(seq 1 100); do echo -n "file${i} "; touch file${i} 2>&1; done to play with, but does anyone have something off the top of their head that maybe I could use to excel just a little bit faster in Linux
  21. because borderWidth is inside the array style say you have an array called arr with 4 items you can either use arr.2 = 'whatever'; or arr[2] to edit the value and the same works for associative arrays...like style has style.borderWidth = style['borderWidth'] style.marginLeft = style['marginLeft']
  22. there's htmlspecialchars() htmlentities() little easier than using mutliple str_replaces EDIT yeah and urlencode...I knew I forgot one beat me to the punch
  23. go into your PHP directory..find libmysql.dll libmysqli.dll and copy them to your windows system32 folder restart apache and check your php info page ie <?php echo phpinfo(); ?> Mysql should appear ...hopefully
  24. try using function change(target,property, value) { div = document.getElementById(target) div.style[property] = value; }
  25. Yeah...I doubt I want to try to track down all the packages for LFS. That sounds more like work than learning.. Gentoo seems like it might be a good choice. The way you describe it. I've heard from my professor that slackware is something you don't want to dive right into so I'll pass that as well. As long as Gentoo can handle Crossover Office, I'm alright. I have Ubuntu right here but I've installed it already before and I never learned that much about "Linux" really. Well I didn't keep it that long though, but still. I know .... more......now than I did when I installed it the first time. Meaning I installed it before I took those linux courses
×
×
  • 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.