Jump to content

leokwan1982

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

About leokwan1982

  • Birthday 01/01/1982

Contact Methods

  • Website URL
    http://

Profile Information

  • Gender
    Not Telling
  • Location
    Hong Kong

leokwan1982's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The info is not enought, can you show the code of ConnectDatabase? Moreover, try to echo the sql into screen and run it in MySQL client or phpMyAdmin. See is the sql run smoothly? if yes, the problem is raised by ConnectDatabase.
  2. Your SQL is correct in code level, so can you post the code there. Btw, did you check the connection to the database? do you set auto commit = false? The record is exist or not? did you try to pinrt the sql in the screen and check is it what you expect? [!--quoteo(post=327327:date=Dec 14 2005, 02:57 AM:name=angel_cowgirl)--][div class=\'quotetop\']QUOTE(angel_cowgirl @ Dec 14 2005, 02:57 AM) 327327[/snapback][/div][div class=\'quotemain\'][!--quotec--] *sigh* seems like I can't find answers to anything on my own...sorry for asking so many questions.. I'm not getting any errors but its not updating the datbase either. //Create an update query string with the updated horse data $strUpdateQuery = "UPDATE horses SET horse_name = '".$strHorseName."', horse_dob = '".$intHorseDOB."', horse_sex = '".$strHorseSex."', horse_height = '".$intHorseHeight."', horse_color = '".$strHorseColor."', horse_sire = '".$strHorseSire."', horse_dam = '".$strHorseDam."' WHERE pk_horse_id = ".$intHorseID; The variables are being passed from a form on the previous page, and I have checked the spelling and I've tried using only ' instead of " and ive tried using the query with out . around the variables but nothing. Sometimes its actually not fun not getting errors...
  3. How about this? (MySQL 4.1 or Later) [!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--][span style=\'color:blue;font-weight:bold\']SELECT[/span] s.survey_id, ([span style=\'color:blue;font-weight:bold\']select[/span] count(DISTINCT sess_id) FROM thistable t where t.survey_id = s.survey_id) as 'occurs' FROM thistable s GROUP BY survey_id [!--sql2--][/div][!--sql3--]
  4. it's not difficult to debug in php, just follow the error message and line number, you can debug it easily. so let's focus on line 28 <? ..... $MM_redirectLoginSuccess = "Index2.php?IcNo=<?php echo $row_Student['ICNo']; ?>"; ?> you type '<?' twice, so the error message is prompted. it should be ... $MM_redirectLoginSuccess = "Index2.php?IcNo=".$row_Student['ICNo']; ...
  5. ok never mind. I found that I can't ping www.betaalpharho.org, Ping Procedure in Windows 1. Press "Start" 2. Choose "Run" 3. Type "cmd", a command prompt will be displayed. 4. Type " ping www.yahoo.com" , you will see some message which is normal. 5. Type " ping www.betaalpharho.org", you will see some error message. I think there are some problems with your DNS setting ( i'm not too familiar with it sorry, ). I suggest you ask your Network Administrator or your hosting company to solve it. Btw, can you tell us your web server ip? If I can access your web server via ip , then it will proves that the problem is caused by DNS setting. Cheers.
  6. Are you sure your web server is running? For example, is Appache / IIS running? Can you access the homepage by 'localhost' in the web server? Other reasons may be your firewall block it, networks cable problem....... there are thousand of possibilities why you can't access your web server. so you need to test it one by one. May be you should provide more info so that we can help you.
×
×
  • 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.