irkevin
-
Posts
295 -
Joined
-
Last visited
Posts posted by irkevin
-
-
bump no one?
-
ok in the folder there is 'first_directory', 'second_directory'
what if i want to choose the second one?
-
im testing this locally.. :S
Well, if i change this :
$chapter = $your_file; to $chapter = "./manga/first_directory/";
then it works.. but i have other folders in the folder manga ...
-
huh? what do you mean?
-
i tried your code and it says unable to open
Unable to open ./manga/first_directory/
but the dropdown to list the current existing folders works fine..
-
in the first dropdown yes, it's listing all the folders, but im getting a hard time to list files in selected folders .....
-
I tried this but i doesn't even list something..
<?php // define the path as relative $path = "./manga/"; // using the opendir function $dir_handle = @opendir($path) or die("Unable to open $path"); echo "<select id='choose' onchange='selectManga()'>"; echo "<option>Choose a manga</option>"; // running the while loop while ($file = readdir($dir_handle)) { if($file == '.' || $file == '..') { // } else { echo '<option value="'.$path.$file.'" name="'.$file.'">'.$file.'</option>'; $your_file .= $path.$file.'/'; } } echo "</select>"; closedir($dir_handle); $chapter = $your_file; $chapter_handle = @opendir($chapter) or die("Unable to open $chapter"); //echo "<select id='choose_chap' onchange='selectChap()'>"; //echo "<option>Choose a Chapter</option>"; while ($chapter_file = readdir($chapter_handle)) { echo $chapter_file; } //echo "</select>"; closedir($chapter_handle); ?>
Any ideas guys?
-
Ok correct for javascript.. but how do i list all files in the selected folder in the dropdown then?
-
Hi,
basically I have one folder[A] with several folders in it.. and in those several folders i have some files..
So what i want is, have a drop down which list all folders in folder[A].... Luckily for me I've been able to do this..
Now, once i select a folder in the dropdown, i want another dropdown to appear with the files in this folder.. Hope that makes sense.. Ask me, i'll elaborate.. here is the code i have so far
<?php // define the path as relative $path = "./manga/"; // using the opendir function $dir_handle = @opendir($path) or die("Unable to open $path"); echo "<select id='choose' onchange='selectManga()'>"; echo "<option>Choose a manga</option>"; // running the while loop while ($file = readdir($dir_handle)) { if($file == '.' || $file == '..') { // } else { echo '<option value="'.$path.$file.'" name="'.$file.'">'.$file.'</option>'; $your_file = 'manga/'.$file; } } echo "</select>"; closedir($dir_handle); ?>
Well now i need some help guys
-
echo $row['sub_class'];
echo '<input type="text" value="'.$row['sub_class'].'">';
it should be the value.. not the name, try it
-
did you try something?
you can use LIMIT in your query to get a certain number of row..
post the code you have...
-
oops. there no header errors on my website :s... can you check again plz and confirm?
-
it keeps running :s
-
function getB() { if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { //test for MSIE x.x; var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number if (ieversion>=8 || ieversion>=7 || ieversion>=6 || ieversion>=5) { t1 = new Tween(document.getElementById('showIT').style,'height',Tween.strongEaseOut,0,300,2); t2 = new ColorTween(document.getElementById('showIT').style,'backgroundColor',Tween.strongEaseIn,'E8E8E8','000000',1) t1.start(); t2.start(); t1.onMotionFinished = function() { var show = document.getElementById('showText'); show.innerHTML = "<b>MESSAGE FROM MU-ANIME STAFF</b><br /><br /><b>We've noticed that you're using Internet Explorer to surf the website. Well, Internet Explorer is not good. Believe us.<br /><br /> We recommend you using the great Mozilla Firefox to surf Mu-anime. With Mozilla you can surf peacefully and<br /> experience the website at 100%... also your life won't be a mess with IE. Trust Us.</b><br /><br /><img src='images/ff.png' /><br /><br /><a href='http://www.mozilla.com/firefox/' target='_blank' class='moz'>GET MOZILLA FIREFOX</a> <a href='#' onclick='goOut()' class='moz'>NO I'M FINE THANKS</a><br /><br /><a href='#' onclick='goOut()' class='moz'>Close this notice</a><br /><br />"; } } } else document.write("n/a") } <body onload="getB();">
basically, it checks to see if the user is using IE, if so, it display a message.. is there something else to use instead of 'onload'?
-
Well, since im clicking on lets say 'HOme' , the page would refresh .. isnt it?
-
Is this possible..
i have a function which is in the head section,, then i call it with
<body onload="myFunc();">
the problem is, i want this function to run only once.. sadly, when the user click a link, the function keeps running on and on. how to prevent this?
-
this is not the css section my friend..
-
i gave you a link..
it has loads of flash tutorial to get you started.. also tutorial on AMFPHP & FLASH.. here is the site
http://www.gotoandlearn.com
-
recording voice with amfphp?
Never heard of amfphp able to do that.. i might be wrong.. I've been using amfphp with flash since it helps to output data from Mysql to Flash...
Are you going to use flash to do the voice recording? If so. visit gotoandlearn.com
This is not a section for flash
-
$query = "SELECT job_table.skill,person_table.skill,person_table.p_name FROM job_table,person_table WHERE job_table.skill = person_table.skill";
try this.. i just wrote this quickly..
-
WolfRage is 100% correct... give a good description of your problem.. we'll be glad to help
-
Hi,
if you have ideas, let me know
http://www.mu-anime.com/
-
RewriteRule ^page/([0-9_-]+)-([0-9_-]+)-([0-9_-]+)-([0-9_-]+)\.html$ page/index.php?id=$1&menusOpen=$2-$3&menuId=$4 [L]
try this, i added a slash .. dont garantee anything
-
well. i dont see
mysql_select_db() in your code. do you have it or not?
help with listing folders and files
in PHP Coding Help
Posted
I noticed that, when i removed the '.' here
and change it to
...
it works. but i read only one folder :S.... how can i switch to the other one :S