Jump to content

twm

Members
  • Posts

    39
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

twm's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well, where should I start. As you will/can tell, my first language isn't English, so I apologize for grammar and spelling. Been a sort of programmer for a while. Started in '83 then went to play soldier for a few years (in '88). Once I learned English (had no choice, ended up in Canada), I started up with programming again, and been doing it on and off for a few years now. Even got a diploma in Internet and E-Commerce Application Development. Woohoo! An other one for the office wall! Everybody has to make a living, right? Currently working as a sub contractor for a video conferencing company / network provider. Don't do much programming anymore, so it became a sort of a hobby, doing projects for companies (name dropping spot here: Intel, Orange Julius, Peek Freans and a few more smaller - bigger projects for companies (internal applications) Telemerge, IPV Gateways...etc The fave is PHP/MySQL stuff but sometimes still code .NET (but we don't talk about that). Most of my time is spent front of the computer, but it has it's upside as well. Don't have to leave the house if I don't feel up to it. Grab a beer and a smoke and have fun with some code. What do I do for fun? Write PHP scripts. J/K. I play pool in a few leagues, and get together with a few buddies for a poker game or two. (or maybe that is in the drinking beer category) Oh well, next I will learn some social skills, so I can actually talk to people about something (or at least myself). :-D
  2. try and see if anything different happens. <?php session_start(); if(isset($_SESSION['otherusername'])){ $db=mysql_connect('localhost', 'root', ''); $res=mysql_select_db('textgame',$db) or die(mysql_error()); $otherusername = $_SESSION['otherusername']; //"SELECT item FROM users_items WHERE username='".$Username."'"; $res=mysql_query($otherusername)or die(mysql_error()); while($row = mysql_fetch_assoc($res)){ echo $otherusername; echo $row['item'] . "<BR />"; } }else{ echo "Sorry your not a member please join us!"; } } ?>
  3. I don't see $Username set anywhere. is it supposed to be the $_SESSION['otherusername'] in place of $Username ?
  4. And how exactly does that work better? There was nothing wrong with the way it was before. Variables are parsed when they are put inside double quotes. they are also in single quotes inside the doubble quotes...don't know, old habbits are hard to get rid of
  5. meaning echo to screen, copy and paste on the forum
  6. I find that this works better for me: $otherusername = "SELECT item FROM users_items WHERE username='".$Username."'"; Make sure that you check your spelling (field name, table name ... etc) and the variable $Username exists (it isn't actually $username) and it isn't empty or NULL.
  7. the way you are using strtotime it works fine if your date is in a format mm/dd/yyyy
  8. http://www.phpriot.com/articles/multi-step-wizards
  9. $_POST is all caps , you have $_Post
  10. what is the date field name?
  11. on the second page change $artid=$r["artid"]; to $artid=$_GET["artid"];
  12. <?php $sql='SELECT * FROM horsedata WHERE id='.$thehorse.' AND DOB BETWEEN 3 AND 36'; ?>
  13. <?php $query = "SELECT * FROM modlpae WHERE userid = '$user'"; $result = mysql_query($query) or die('Error : ' . mysql_error()); $total_questions = 15; $qcounter = 1; $filled = 0; while ($row = mysql_fetch_assoc($result)) { if(!is_null($row["q".$qcounter]) || $row["q".$qcounter] != '') { $filled++; } $qcounter++; } $percentage = ($filled/$total_questions)*100; echo $percentage; ?>
×
×
  • 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.