Jump to content
xisto Community

oxida

Members
  • Content Count

    52
  • Joined

  • Last visited

Everything posted by oxida

  1. Well I found something simmiliar.It makes a file with a temp name then it changes the .temp extension to .txt.This will be repeated 100 times. Set objFSO = CreateObject("Makefile.FileSystemObject")For i = 1 to 100 ' For Next loop that runs from 1 to 100 strFileName = objFSO.GetTempName 'generates random files names strFileName = Replace(strFileName, ".tmp", ".txt") 'changes .temp to .text strPath = "c:\script\temp\" & strFileName 'path to the location where the files needed to be placed. 'if this script is placed in a folder like: c:\script 'and your strPath is c:\script\temp it 'wil not work it needs a "\" at the end. objFSO.CreateTextFile(strPath) 'creates the fileNext
  2. Travstatesmen, that's exactly what I want to do.Thank you for the info you gave me, the language i wan't it to be written in is: VBscript.I have some really basic knowlage about VBscript and I can simply copy files/folders to the place I want and rename it.But that's where I got stuck.So if someone could help me then I would be so happy.When I'm home I will post the VBscript I have for copy and rename.Thanks again.
  3. Thanks for your reply, but its not what i am looking for. I just want a vbscript wich does only kopie a specified file xx times and name it to: [any name]1, [any name]2, [any name]3 etc etc. I already know how to copy a file one time but thats it.
  4. This batch file could also be placed in the startup *
  5. Hi all.I want to make a VBScript wich does the following:Copy a file like test.txtif test.txt already exists then name it test1.txt and so on until i have xxx number of files.If someone could help me or post a script I would be happy xDThanks,
  6. while everything works ok, another problem occurred.When i add another band like: VNV Nation.And when i click on grendel to see the details page, it displays also the band VNV Nation.piece of code for the link, this should send the bandname to the detail page where it selects it from the database. <td colspan="2"><a href="details.php?recordID=<?php echo $row_bands['bandname']; ?>"><?php echo $row_bands['bandname']; ?></a></td> Wholde code of the details.php page. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://forums.xisto.com/no_longer_exists/ xmlns="http://forums.xisto.com/no_longer_exists/ http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Detailed band info</title><link rel="stylesheet" href="style/style.css" type="text/css" /><?php require_once('inc/dbconnection.php'); ?> <?phpif (!function_exists("GetSQLValueString")) {function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue;}}$colname_details = "-1";if (isset($_GET['recordID'])) { $colname_details = $_GET['recordID'];}mysql_select_db($database_dbconnection, $dbconnection);$query_details = sprintf("SELECT * FROM bands WHERE bandname = %s ", GetSQLValueString($colname_details, "int"));$details = mysql_query($query_details, $dbconnection) or die(mysql_error());$row_details = mysql_fetch_assoc($details);$totalRows_details = mysql_num_rows($details);$colname_albums = "-1";if (isset($_GET['recordID'])) { $colname_albums = $_GET['recordID'];}mysql_select_db($database_dbconnection, $dbconnection);$query_albums = sprintf("SELECT albumname FROM albums WHERE bandname = %s ", GetSQLValueString($colname_albums, "int"));$albums = mysql_query($query_albums, $dbconnection) or die(mysql_error());//$row_albums = mysql_fetch_assoc($albums);$totalRows_albums = mysql_num_rows($albums);?></head><body><?php do { ?> <fieldset name="Bandinfo" style="width: 600px;"><legend><span style="font-size: 15px; color: #99FF00;"><b>Band info</b></span></legend><table> <tr> <td rowspan="4" style="width: 150px; vertical-align: top;"> <div id="menu-header"> //Options</div> > <a href="add-album.php?recordID=<?php echo $row_details['bandname']; ?>">Add more albums</a> </td> <td><fieldset name="Bandname" style="width: 200px;"> <legend><b>Band Name</b></legend> <?php echo $row_details['bandname']; ?> </fieldset> </td> <td><fieldset name="Bandgenre" style="width: 200px;"> <legend><b>Band Genre</b></legend> <?php echo $row_details['genre']; ?> </fieldset></td> </tr> <tr> <td><fieldset name="Bandmembers" style="width: 200px; height: 200px;"> <legend><b>Band Members</b></legend> <?php echo $row_details['bandmembers']; ?> </fieldset></td> <td><fieldset name="Albums" style="width: 200px; height: 200px;"> <legend><b>Albums</b></legend> <?php while ($r = mysql_fetch_assoc($albums)){$row_albums[] = $r;} foreach ($row_albums as $key => $val){echo $row_albums[$key]['albumname']."<br/>\n";}?> </fieldset></td> </tr> <tr> <td colspan="2"> <fieldset name="Bio" style="width: 427px; height: 200px;"> <legend><b>Biography</b></legend> <?php echo $row_details['bio']; ?> </fieldset></td> </tr> <tr> <td style="text-align: right" colspan="2">[<a href="bands.php">Terug</a>]</td> </tr></table></fieldset> <?php } while ($row_details = mysql_fetch_assoc($details)); ?></body></html><?phpmysql_free_result($details);?>
  7. truefusion thanks for your help, it worked well although I don't understand why //$row_albums = mysql_fetch_assoc($albums); displays only a cyou can see the result to klick on the link in one of my posts but i don't think it is necessary .thanks for your time and effort
  8. Ok i have pasted the code, It shows this: Array( [albumname] => cool album [0] => Array ( [albumname] => cool album 2 )) To see it in action: Link to bands.php
  9. thanks for your fast respond, it seems to work but it mixes up 2 albums because grendel has 2 albums: cool album 1 and cool album 2 when i apply your code it displays: ccool album 2 note: notice the: double c, whish is the first cool album 1 i think. here is the link to see the page in action link to the bands page Klik on grendel to go to the detailed page. here is the code for the page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://forums.xisto.com/no_longer_exists/ xmlns="http://forums.xisto.com/no_longer_exists/ http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Detailed band info</title><link rel="stylesheet" href="style/style.css" type="text/css" /><?php require_once('inc/dbconnection.php'); ?> <?phpif (!function_exists("GetSQLValueString")) {function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue;}}$colname_details = "-1";if (isset($_GET['recordID'])) { $colname_details = $_GET['recordID'];}mysql_select_db($database_dbconnection, $dbconnection);$query_details = sprintf("SELECT * FROM bands WHERE bandname = %s ", GetSQLValueString($colname_details, "int"));$details = mysql_query($query_details, $dbconnection) or die(mysql_error());$row_details = mysql_fetch_assoc($details);$totalRows_details = mysql_num_rows($details);$colname_albums = "-1";if (isset($_GET['recordID'])) { $colname_albums = $_GET['recordID'];}mysql_select_db($database_dbconnection, $dbconnection);$query_albums = sprintf("SELECT albumname FROM albums WHERE bandname = %s ", GetSQLValueString($colname_albums, "int"));$albums = mysql_query($query_albums, $dbconnection) or die(mysql_error());$row_albums = mysql_fetch_assoc($albums);$totalRows_albums = mysql_num_rows($albums);?></head><body><?php do { ?> <fieldset name="Bandinfo" style="width: 600px;"><legend><span style="font-size: 15px; color: #99FF00;"><b>Band info</b></span></legend><table> <tr> <td rowspan="4" style="width: 150px; vertical-align: top;"> <div id="menu-header"> //Options</div> > <a href="add-album.php?recordID=<?php echo $row_details['bandname']; ?>">Add more albums</a> </td> <td><fieldset name="Bandname" style="width: 200px;"> <legend><b>Band Name</b></legend> <?php echo $row_details['bandname']; ?> </fieldset> </td> <td><fieldset name="Bandgenre" style="width: 200px;"> <legend><b>Band Genre</b></legend> <?php echo $row_details['genre']; ?> </fieldset></td> </tr> <tr> <td><fieldset name="Bandmembers" style="width: 200px; height: 200px;"> <legend><b>Band Members</b></legend> <?php echo $row_details['bandmembers']; ?> </fieldset></td> <td><fieldset name="Albums" style="width: 200px; height: 200px;"> <legend><b>Albums</b></legend> <?php while ($r = mysql_fetch_assoc($albums)){$row_albums[] = $r;}foreach ($row_albums as $key => $val){echo $row_albums[$key]['albumname'];} ?> </fieldset></td> </tr> <tr> <td colspan="2"> <fieldset name="Bio" style="width: 427px; height: 200px;"> <legend><b>Biography</b></legend> <?php echo $row_details['bio']; ?> </fieldset></td> </tr> <tr> <td style="text-align: right" colspan="2">[<a href="bands.php">Terug</a>]</td> </tr></table></fieldset> <?php } while ($row_details = mysql_fetch_assoc($details)); ?></body></html><?phpmysql_free_result($details);mysql_free_result($albums);?>
  10. I have a table called albums it contains the following: the following data is in it albumid bandname albumname0 Grendel test album 11 Grendel test album 22 VNV test album 13 VNV test album 2Now I want to display the albumname from only grendel or vnv or anyother band who comes in the table. How can I do this ??? thanks in advance
  11. Thank you jlhaslipthis has brought me to use master/detail pages which will do the trick.If i have the page finished i will try to make a tutorial.Because I think it would help a lot of people.*Problem solved*
  12. @jlhaslipi have the following tables:bands with the following rowsbandid, int(10), NOT NULL, AUTO_INCREMENT, PRIMARY KEYbandname, VARCHAR(30), NOT NULLbandsinfo with the following rows:infoid, int(10), NOT NULL, AUTO_INCREMENT, PRIMARY KEYbandinfo, VARCHAR(30), NOT NULLgenre, VARCHAR(30), NOT NULLbio, VARCHAR(30), NOT NULLGenre which is a dropdown box this isnt relevant.@AsgluThx I will try this.
  13. This is the situation: I have a database where you can add bands ( theire albums, genre other info) For the album part they can add for each album the songs. So what do i want: When i show the results there only shoul display the bandname which should be a link to the more detailed info like albums biography etc. How do I do that. Is there a name for this and are there any tutorials. thx in advance
  14. Some things have to get approved first, untill they become visible.So don't worry if it gets approved you/members will see it.greetz,
  15. Here at Xisto.com My weblink is: http://forums.xisto.com/no_longer_exists/
  16. It is idd hard to believe, but I think why does the links on some webpages link to another website with those articles if you go trough all of them it becomes a whole.And yes, some stuff can't be real, but it is interesting to read.
  17. Many people would like theire website in the center of the screen.This is how to do that.1. make a new css document.2. Then place the following code in it. #main-div { position: absolute; top: 50%; left: 50%; width: 70em; height: 50em; margin-top: -25em; /*always take 1/2 from the size of the height, they have to be negative*/; margin-left: -35em; /*always take 1/2 from the size of the width, they have to be negative*/} Then place in your html: the following code. <div id="main-div">content</div> This wil place the div box in the center of the screen, works mostly for any resolution depends on the size of your div box.Hope this helped some people.
  18. I still can't get to my website and cpanel,Tings I did:requested xisto to unblock my ipcleaned my cache/cookiesDid this with both IE and FFWhen I am @ my dads house he can acces my website. So I guess it is still an ip problem.I did read some posts but couldn't find a solution.Thx in advance,
  19. @ bishoujo, in that case XD, could you check if you see my site:http://forums.xisto.com/no_longer_exists/ in advance.
  20. please reset my password Notice from BuffaloHELP: PM'ed new password.
  21. Well here is a tip:You should think when it comes to webdesign, all people who are gonna visit your website are dumb (ofcourse this isn't true).So you should make it easy to navigate true the website, make understandable links, not to much links.Also don't make it to graphical, people need to see the content.Your design is for making the content to pop out so it is easy to read etc.Also NO POP UP'S people hate them and also not to much add's.
  22. Well, in the music stores here in the netherlands they put alot of stickers on it like, off sale 50%, warining cointains explicit content, etc etc.Once I had a CD with at least 5 stickers on it.And the reason I complain about i,t are those cd covers, the images they put on there are mostley reflection of the music they made. An I just like the album art and the music.But yeah it is just my personal opinion. Every-one things different about that.
  23. You Could use pinnacle studio, its powerfull software for video editing, it has a ton of features. - realtime editing on multiple tracks - automatic sync the music to the timeline - also perfect for hd movie editing http://www.pinnaclesys.com/publicsite/us/home/
  24. http://www.dynamicdrive.com/dynamicindex1/staticmenu.htm look at this site, there is an easy code that whill do the trick i think.
  25. hmm thats weard, because I used the same way you are yousing it,But give me some time and i will look for a fix
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.