Jump to content

vanyok

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by vanyok

  1. Hi everyone,I have a problem with flash showing up as a black screen on some computers. I cannot figure out whats causing that. Same file, same code... I have a feeling that it has something to do with Flash 9 update. Could anyone tell me how to resolve this ?Code that I use to plug the flash into the browser:<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="766" height="154"> <param name="movie" value="/images/top.swf"> <param name="quality" value="high"> <embed src="/images/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="766" height="154"></embed> </object>Actual flash ( top banner )http://www.funtasiaflowers.com/edit: Wait, just got an idea... could it have something to do with "codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"Should I change that version ? Whats that exact version would I change it to ?
  2. vanyok

    N00b Stuck

    <html><head>Registration</head><title>Registration Page</title><body><?phpini_set("display_errors", "1");//declaring registration fields$tfname=$_POST['TeacherFName'];$tlname=$_POST['TeacherLName'];$subject=$_POST['Subject'];//connecting to the database$db=mysql_connect("server","id","pw");mysql_select_db("dbname",$db);//Verifying there are no duplicate names in the DB$result=mysql_query("SELECT * FROM teachers_info WHERE fname='". mysql_real_escape_string($tfname)."'",$db); $num=mysql_num_rows($result) or die(mysql_error());echo $num;if ($num!=0){echo"<p> Sorry, this first name already exist in the database</p>";}else// Inputing registration info into the DB, in teachers_info table{$sql="INSERT INTO $teachers VALUES('$tfname','$tlname','','','$subject')";$result=mysql_query($sql,$db);echo "Thank you $tfname";}?></body></html>If you want to check out HTML code of the actaul page with forms.. here
  3. vanyok

    N00b Stuck

    Hmmmm.. the good part is that I'm learning a lot of new stuff :)The bad part is that it's still doesnt work and I can't figure out why.. they code seems to be correct. Shoulnt this be outputting the amount of rows in that table ?Also, It's not adding any info to the database. I really appreciate your time looking at this Justsomeguy and others :)ps:echo ini_get("display_errors"); - returned 1ini_set("display_errors", "1"); - returned nothing
  4. vanyok

    N00b Stuck

    Thank you very much for your response ( changed it to : $result=mysql_query("SELECT * FROM teachers_info WHERE fname='". mysql_real_escape_string($tfname)."'",$db); ) Hmmm.. well the error message is gone but now I get just a blank screen What could be causing that ? I suppose to get the ammount of rows and then the info suppose to be added to the SQL DB. hmmm
  5. vanyok

    N00b Stuck

    Hey everyone !I've just started learning PhP. Opened the book a few days ago for teh first time I gotta tell you, I love this language !!I need some help please.. I have a simple DATA input and verification script that I cannot get to work. Everythign seems right but when I run it I get: " Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource "Basiacally what I'm trying to do in this statement is to have the user enter the name and then verify that the info doesnt exist in the Database already.Thank you <?php//declaring registration fields$tfname=$_POST['TeacherFName'];$tlname=$_POST['TeacherLName'];$subject=$_POST['Subject'];//connecting to the database$db=mysql_connect("server","id","password");mysql_select_db("dbname",$db);//Verifying there are no duplicate names in the DB$result=mysql_query("SELECT * FROM teachers_info WHERE fname={$fname}",$db); $num=mysql_num_rows($result) or die(mysql_error());echo $num;if ($num!=0){echo"<p> Sorry, this first name already exist in the database</p>";}else// Inputing registration into into the DB, in teachers_info table{$sql="INSERT INTO $teachers VALUES('$tfname','$tlname','','','$subject')";$result=mysql_query($sql,$db);}?>Thank you in advance !
×
×
  • Create New...