Jump to content
xisto Community

oxida

Members
  • Content Count

    52
  • Joined

  • Last visited

Posts 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. If you mind some software that would do the work for you, then I would recommend Renamer. I have used this utility in many similar situtations as yours. And this software is very useful to rename files in large quantities. Also it offers a variety of features like regular expressions and so on. Just check it to be sure if it works for you. Believe me, I myself didn't get the time to completely explore its features.

    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. HAAH!!111!!!oneone!!!! THIS IS EVEN BETTER!!!!
    Alright... this is even more amazing than the first, but its incredibly malicious an even more evil :) (in fact, I don't think you can even turn it off with CTRL + ALT + DELETE :( ). What it does in shut off their computer after a said amount of time :D

    1. Create a new .bat file (batch file) with notepad

    2. Input the following code and save it:

    @echoshutdown.exe -s -t 120 -c "Input your message here"
    (120= 120 seconds, change to last longer or shorter)

    3. Again, hide the file somewhere on the victims computer and create multiple shortcuts to it and change the icon so they look like normal programs.

    4. Sit back and enjoy the pain and suffering MHahahaha..... :(

    This batch file could also be placed in the startup * :)

  5. 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);?>


  6. 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);?>


  7. @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.


  8. 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


  9. 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.


  10. 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.


  11. 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.

×
×
  • 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.