Jump to content

slancasterfreak

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Female

slancasterfreak's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I imported a video into Flash, and used the type of import where Flash creates an .flv file that must be uploaded with the .swf file. The original videos loop, but when flash plays them on my site, they do not loop. www.mommatown.com I searched the web and found this actionscript code that is supposed to make it loop: movie_instance_name_here.onEnterFrame = function(){ if(this.playheadTime>=this.totalTime){ this.play() } } I changed movie_instance_name part of the code to the name of the movie, (I gave it an instance name, and also even tried making it a movie symbol and then giving it an instance name...) But it doesn't seem to work. My Flash publish settings are set on "loop" but those settings obviously do not make the flv movie file loop. Can anyone guide me in the right direction? Thanks!!
  2. This is the email notice I use, it works good: ( I stripslash the variables first) $headers2="Cc: myemail@hearts.org"; $headers3="Bcc: thisperson@hotmail.com"; $headers3.=", thisotherperson@hotmail.com"; $mymessage="Dear Admins, <ul><BR> $fname $lname has just registered<br> From $address $city $state $zip<br> $useremail<BR><BR></ul>"; $from="myemail@hearts.org"; $mysubject="New User added"; $to="webmaster@hearts.org"; $subject = $mysubject; $message=$mymessage; $headers1= 'MIME-Version: 1.0' . "\r\n"; $headers1.= 'Content-type: text/html; charset=iso-8859-1; Content-type: image/jpg' . "\r\n"; $headers='From: ' . $fromemail . "\r\n"; $headers.=$headers1 . $headers2 . "\r\n"; $headers.=$headers3 . "\r\n"; //Mail it mail($to, $subject, $message, $headers);
  3. I am new to functions, and have been doing ok until I tried to return an array. function WalkerArray () { require('connecttodatabasea.inc.php'); // get Walkers names into an array $queryx=("SELECT * FROM walkers ORDER BY id ASC"); $resultx=mysql_query($queryx) or die(mysql_error()); $numx=mysql_numrows($resultx); $k=0; while ($k<$numx) { $id=mysql_result($resultx,$k,"id"); $firstname=mysql_result($resultx,$k,"firstname"); $lastname=mysql_result($resultx,$k,"lastname"); $walkerarray[$id]=$firstname.' '.$lastname; $k++; } print_r($walkerarray); return $walkerarray; } // now try to use function and see if I have the array and can print it out WalkerArray(); print_r($walkerarray); $idnum=50; echo $walkerarray[$idnum]; The print _ r command INSIDE the function outputs the complete array, so I know my Mysql etc. is good. But the second print _ r OUTSIDE the function prints nothing I've searched for answers online and cannot figure it out. Thanks for the help!!!!
  4. you can replace it with anything unique like [code] <?php $stringtostore=str_replace(".","perxx",$string); ?>[/code] and then when you get it back out, replace it back with- [code]<?php $gotstring=str_replace("perxx",".",$storedstring); ?>[/code]
  5. redarrow, I'm sorry but your help was not helpful, I didn't need your commentary on my internal PHP structure, and actually never even described it to you, so it is haughty at best for you to decide that you have some sort of answer for me beyond the confines of my question. You are assuming that you know something about my site that you don't know. I have been helped thank you. goodbye now.
  6. well then just another example of how great gals are! thanks!
  7. AHHH I could KISS you you sweet man!!! (if you're a man) Thanks for your HELP!!!!
  8. Yes sanfly, I have primary auto-incrementing keys on the tables in question, and this field id is the thing I am after. Thanks for your help sanfly, and your good attitude sanfly
  9. I am updating a row in one table using the userid#, but I need to get the rowid# from that same table/record so that I can update a different table which stores it's data based on rowid# It's a very complex mysql structure and I am simplifying the problem to be able to communicate my need.
  10. Hi, I've used this before: [code] $query = "INSERT INTO myusers SET lname='$lname', fname='$fname'"; mysql_query($query)  or die('Query failed: ' . mysql_error()); //GET ID FOR LAST INSERT $id = mysql_insert_id(); [/code] to get a row id so I can use it after an insert, but is there anything similar for easily getting a row id after an update like this? [code] $queryg = "UPDATE study SET answers='$answerarray' WHERE userid='$userid'"; $resultg = mysql_query($queryg) or die('Query failed: ' . mysql_error()); [/code] I need the row # from this Updated record to alter a different table in my database, and wondered if there is an easy way to get it, or do I have to just get it by doing yet another query? Thanks in advance! Sally
  11. Great, I just got Flash the other day so I will dive in and figure it out. Thanks! Sally [!--quoteo(post=363878:date=Apr 11 2006, 07:35 PM:name=DaveLinger)--][div class=\'quotetop\']QUOTE(DaveLinger @ Apr 11 2006, 07:35 PM) [snapback]363878[/snapback][/div][div class=\'quotemain\'][!--quotec--] Yes. With flash you can load and play an MPEG (probably more formats) from a URL, which only the flash file creator would know. [/quote]
  12. I have a client that wants to offer a video on their site for viewing, but they do not want users to be able to get their hands on a copy themselves. Does Flash, PHP programming, (or any other video player -program out there) give the ability to allow a user to VIEW a video without them having it download into a temp folder, or not allow them to download the actual file to their system- so that they cannot get their hands on the file itself to publish, email, or what have you? Thanks you a million for your input! Sally
  13. I have connected to my MySQL database before using: $db_connect=mysql_connect("localhost","dogbones","jdhkjn7676") or die ("Could not connect to database"); mysql_select_db("$db") or die ("Could not select database"); before, but what if I want to connect to it from another website, would I do something like: $db_connect=mysql_connect("http://www.thisother.com","dogbones","jdhkjn7676") or die ("Could not connect to database"); mysql_select_db("$db") or die ("Could not select database"); Would that work, or do I need some "port" or "socket" thing or numerical IP address in there or what? Thanks in advance!!! Sally www.family-gathering.org
×
×
  • 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.