mikeandike22 18 Nearly a Posting Virtuoso

yea it had something to do with my php setup so i reinstalled WAMP and just added in my backup files so pretty much i just replaced php and its extensions.

mikeandike22 18 Nearly a Posting Virtuoso

I have seen a couple solutions to this problem but none have worked so far.

here is the error.
Fatal error: Call to undefined function mysql_connect() in C:\wamp\www\login.php on line 12

and the code

<?php
// connect to the mysql server
$link = mysql_connect(localhost, root, admin)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db(members)
or die ("Could not select database because ".mysql_error());

$match = "select id from members where username = '".$_POST['username']."'
and password = '".$_POST['password']."';"; 

$qry = mysql_query($match)
or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry); 

if ($num_rows > 0) {
setcookie("loggedin", "TRUE", time()+(3600 * 24));
setcookie("mysite_username", "$username");
echo "You are now logged in!<br>";
echo "Continue to the <a href=members.php>members</a> section.";
}
else {
echo "Sorry, there is no username: $username with the specified password.<br>";
echo "<a href=login.html>Try again</a>";
exit;
} 
?>

now does it make a difference that I am using WAMP server instead of having just configured the php and mysql by hand. It worked yesterday now today nothing.

mikeandike22 18 Nearly a Posting Virtuoso

thanks I will test it out as soon as i get onto my home comp.

mikeandike22 18 Nearly a Posting Virtuoso

ok it works now, thanks. Now i need help with something else if ne1 knows how you solve a "Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\login.php:10) in C:\wamp\www\login.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\login.php:10) in C:\wamp\www\login.php on line 33
You are now logged in!" error on this code it would be greatly appreciated.

<?php
// connect to the mysql server
$link = mysql_connect(localhost, root, admin)
or die ("Could not connect to mysql because ".mysql_error());

// select the database
mysql_select_db(members)
or die ("Could not select database because ".mysql_error());

$match = "select id from members where username = '".$_POST['username']."'
and password = '".$_POST['password']."';"; 

$qry = mysql_query($match)
or die ("Could not match data because ".mysql_error());
$num_rows = mysql_num_rows($qry); 

if ($num_rows <= 0) { 
echo "Sorry, there is no username: $username with the specified password.<br>";
echo "<a href=login.html>Try again</a>";
exit; 
} else {

setcookie("loggedin", "TRUE", time()+(3600 * 24));
setcookie("mysite_username", "$username");
echo "You are now logged in!<br>"; 
echo "Continue to the <a href=members.php>members</a> section.";
}
?>
mikeandike22 18 Nearly a Posting Virtuoso

Here im working on this code and I cat quite get it to work I want it to take the entries from a form, check to see that they meet the criteria (pass must be 6 chars, must be 13 or older) and then insert them into a table in a database.

here is the php i have

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
//Connnect to database as root user 
$con = mysql_connect("localhost","root","admin");

//select database members
mysql_select_db("members", $con);

//set variables for form entries
$firstname = $_POST['first'];
$lastname = $_POST['last'];
$age = $_POST['age'];
$email = $_POST['email'];

//set password variable and set its length
$password = $_POST['password'];
$length = strlen($password);

if ($length>=6 && $age>=13)
 {
 $sql = "INSERT INTO users
      (firstname, lastname, age, email, password)
       VALUES
      ('$firstname', '$lastname', '$age', '$email', '$password')";
     }  

//conditionals for password criteria
if (mysql_query($sql,$con) && $length >= 6 && $age <= 13)
  {
   echo "Thank You For Registering";
   }
else 
  {
  echo "<font face='Verdana' size='2' color=red>Click here to proceed to login.<br><center>
<input type='button' value='Proceed' onClick='http://localhost/login.html'></center>";
}
?>
</body>
</html>

and the form is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
 body {
  background-color  : #CCC888;
  font-family       : arial, times, sans-serif;
  }
 table {
  border            : 1px solid #000;
  background-color  : #2011A2;
  }
 td.blue {
  color             : #ffffff;
  }
 td.white {
   background-color : #ffffff;
   }
 -->
</style>
</head> …
mikeandike22 18 Nearly a Posting Virtuoso

yea I have a blog about it as well, I was just wondering whether or not you could do it on an actual tivo box because I was gonna get one for free and didnt want to pay a subscription. Im currently running mythTV on an older dell.

mikeandike22 18 Nearly a Posting Virtuoso

everyone has a blog now that you sent that message.

mikeandike22 18 Nearly a Posting Virtuoso

I fixed the problem here is the updated code if you would like to compare

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?php
//Print a greeting if the form was submitted
if ($_POST['user']) {
  print 'Hello, ';
//Print what was submitted in the form parameter called user
print $_POST['user'];
print "!";
}
else {
//otherwise, print the form
print <<<_HTML_
<form method="post" action="$SERVER[PHP_SELF]">
Your Name: <input type="text" name="user">
<br/>
<input type="submit" value="Say Hello">
</form>
_HTML_;
}
?>
</body>
</html>

i think it was the double quotes instead of the single in 'hello, '

mikeandike22 18 Nearly a Posting Virtuoso

ok im new to PHP and sortof need to learn the basics for my job and i got the oreily PHP 5 book and in some of the examples i keep getting a parse error. here is an example

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?php
//Print a greeting if the form was submitted
if ($_POST['user']) {
  print "Hello, ";
//Print what was submitted in the form parameter called user
print $_POST['user'];
print "!";
 }
else {
 //otherwise, print the form
 print <<<_HTML_
 <form method="post" action="$SERVER[PHP_SELF]">
 Your Name: <input type="text" name="user">
 <br/>
 <input type="submit" value="Say Hello">
 </form>
 _HTML_;
 }
 ?>
</body>
</html>

and it says there is a parse error on the line with the </html>. I cant seem to figure what is wrong it is exactly like the book's example.

mikeandike22 18 Nearly a Posting Virtuoso

well your site is ok i dont have that many suggestions because i dont see many other ways to deliver the content your site is trying to give. However I would say that you should put the login form in the userpanel along with the register link that way you can remove them from your main content and allow more space for actual type.

mikeandike22 18 Nearly a Posting Virtuoso

yea this is a great community that has a lot of things that you could learn from no one is gonna bash your posts but try to get to a solution for problems. If your looking something interesting to try I suggest trying out the Ubuntu 6.06 Dapper Drake linux distro its filling up most of my freetime.

mikeandike22 18 Nearly a Posting Virtuoso

http://www.daniweb.com/blogs/entry592.html

and for people to answer quicker it is usually better to put your question in the header rather than just question. This should probably be moved to the marketing and promotion forum under the site management section.

mikeandike22 18 Nearly a Posting Virtuoso

you dont have permission to copy them most likely. you can change the permission of your windows files by typing "chmod ugo+rwx <file or directory name(s)>" in your shell terminal.

mikeandike22 18 Nearly a Posting Virtuoso

oh I found out the problem wasnt with the code but most likely with my php and apache set up. I just need to configure it right and it should work

mikeandike22 18 Nearly a Posting Virtuoso

im trying to creat an email form with php here is wat I have and it isnt working

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Jacob Sherman</title>
<link rel="stylesheet" href="content.css" type="text/css" />
</head>
<body>
<form action="" method="post" enctype="text/plain">
    <table border="0" cellspacing="0" cellpadding="4" width="90%">
        <tr>
            <td width="30%"><div align="right"><b>Name:</b></div></td>
            <td width="70%"><input type="text" name="name" size="20" /></td>
        </tr>

        <tr>
            <td><div align="right"><b>Email:</b></div></td>
            <td><input type="text" name="email" size="20" /></td>
        </tr>

        <tr>
            <td><div align="right"><b>Subject:</b></div></td>
            <td><input type="text" name="subject" /></td>
        </tr>

        <tr>
            <td><div align="right"><b>Comment:</b></div></td>
            <td><textarea name="comment" cols="30" rows="4"></textarea></td>
        </tr>

        <tr>
            <td>&nbsp;</td>
            <td>
                <input type="submit" name="submit" value="Submit" />
                <input type="reset" name="reset" value="Reset" />
            </td>
        </tr>
    </table>
</form>
<?php
    if($_POST['submit']){
        //retrieve all the information from the form
        $name = $_POST['name'];
        $email = $_POST['email'];
        $subject = $_POST['subject'];
        $comment = $_POST['comment'];
        
        //check to see if the data has been entered correctly
        if($name != "" && $email != "" && $subject != "" && $comment != ""){
            $email_pieces = explode("@", $email);
            $num_of_peices = sizeof($email_pieces);
            if($num_of_pieces != 2){
                echo "Please enter a correct email address and resubmit, thank you. </br>";
            }
            else{
                $filename = $subject . ".txt"; //should put together <subject>.txt
                
                $filelocation = "/localhost/" . $filename;//sets the filelocation
                
                $fp = fopen($filelocation, "w");//file location with the name of the file, which will be created if it isn't there
                //write all the data to a text file
                fwrite($fp, $name . "\n");
                fwrite($fp, $email . "\n");
                fwrite($fp, $subject . "\n");
                fwrite($fp, $comment);
                fclose($fp);//closes the file and saves
        
                echo "Your message has been successfully sent: " . $_POST['name'] . …
mikeandike22 18 Nearly a Posting Virtuoso

You need to purchase hosting as well the domain name is sortof just setting a new name for your server ip that can be read over internet protocols. However to actually have a website you need to have some sort of hosting where you can upload html files and what not.

mikeandike22 18 Nearly a Posting Virtuoso

I went on a blogging spree before I even noticed this competition I think I can keep it up for a whole month.

mikeandike22 18 Nearly a Posting Virtuoso

you can change the admin password with a bootable cd or find the old admin password with a linux livecd check out this video http://www.youtube.com/watch?v=vZDgRx0ypGA&search=hacking%20windows

mikeandike22 18 Nearly a Posting Virtuoso

Did you install the device firmware on your system?

mikeandike22 18 Nearly a Posting Virtuoso

You probably can with some google searching, but im not so sure this is a very good idea to modify your bios, if you mess it up somehow it could turn out very bad.

Edit: Google is your friend this was like the third entry for custom BIOS http://www.thinkwiki.org/wiki/How_to_change_the_BIOS_bootsplash_screen

mikeandike22 18 Nearly a Posting Virtuoso

Its malware I havent heard any specific relation to video problems, but your video problems are probably just overall windows problems. To fix it first install ad-aware Se and do a scan, then scan with Spybot S&D, then download hijackthis and do a scan and check the box that has the ISTsvc in it.

mikeandike22 18 Nearly a Posting Virtuoso

the search function I guess im not actually sure what your asking.

mikeandike22 18 Nearly a Posting Virtuoso

Your new Hard drive might be in front of your old hard drive in the boot sequence. What you are saying is kind of vague and not well worded

mikeandike22 18 Nearly a Posting Virtuoso

I would suggest Audacity it is an open source audio recorder with post production abilities. If you want to go all out than you will want adobe audition.

mikeandike22 18 Nearly a Posting Virtuoso

I had the same problem it has something to do with the desktop properties color although I never found out how to fix it I just ended up reformatting at a later date for some other reason.

mikeandike22 18 Nearly a Posting Virtuoso

this place seems like it has some promising info http://www.pro-networks.org/forum/post-576331.html&sid=9f93849fb3dad5edd85df3d19778e44f

mikeandike22 18 Nearly a Posting Virtuoso

yea you should never be paying for an RSS reader if you are than you bought a load of bull. Umm most web browsers have them built in I believe Firefox, IE 7, and Opera 9 all have RSS readers. here are some stand alone ones I found.

http://www.feedreader.com/
http://www.lights.com/weblogs/rss.html (massive list)

mikeandike22 18 Nearly a Posting Virtuoso

http://mail.google.com/mail/a-ec08bd2035-efeed7bd02-b8f31c118b

didnt even think you still needed these for gmail i have hundreds just post your email address if you ne1 else needs one

mikeandike22 18 Nearly a Posting Virtuoso

did you trying booting up your xp cd and then running the repair/restore on it.

if you need to get the data off your computer and you or someone you know has a linux live cd boot up the live cd and then back up all the data from your windows partition.

mikeandike22 18 Nearly a Posting Virtuoso

yea just gonna have to do some hardcore google searching

mikeandike22 18 Nearly a Posting Virtuoso

no sorry i looked but i couldnt even find a site for a company that manufactures that card.

mikeandike22 18 Nearly a Posting Virtuoso

first you might need to a rescan where you shut off firefox and if you could tell us what more specifically your problem is that could help.

For now this is wat i found:

O2 - BHO: (no name) - {FDD3B846-8D59-4ffb-8758-209B6AD74ACC} - (no file)
O3 - Toolbar: (no name) - {ACB1E670-3217-45C4-A021-6B829A8A27CB} - (no file)

O16 - DPF: {74CD40EA-EF77-4BAD-808A-B5982DA73F20} - http://yax-download.yazzle.net/Yazzl...cab?refid=1123

O17 - HKLM\System\CCS\Services\Tcpip\..\{D7E35DDB-B98C-4916-9943-220CC429AE4D}: NameServer = 151.164.1.8,206.13.28.12 (WAT IS THIS?)

O20 - Winlogon Notify: WgaLogon - C:\WINDOWS\SYSTEM32\WgaLogon.dll
O20 - Winlogon Notify: winvdj32 - C:\WINDOWS\SYSTEM32\winvdj32.dll

O23 - Service: WLTRYSVC - Unknown owner - C:\WINDOWS\System32\wltrysvc.exe

make you do a system restore before you modify any of these items

mikeandike22 18 Nearly a Posting Virtuoso

ok first to access your system restore goto start-->all programs-->accessories-->system tools and it should be there.

Now for the sound card issue wat card is it because if a driver doesnt work you most likeley have the wrong one.

mikeandike22 18 Nearly a Posting Virtuoso

if you havent used linux then first of all i suggest you try it. If you have been a user of linux u know there is a terminal/console that has many different names, which can perform many tasks. Sometimes you might want to do these commands on windows and save you some time well i found this story on digg which lets you install a shell terminal and explains a lot of commands its really cool and i suggest you check it out if you want to expand ur windows options or learn some stuff about linux before installing it (although i suggest a livecd to do some experimenting for linux)

http://gd.tuwien.ac.at/linuxcommand.org/learning_the_shell.php

also just for your information you can also get live cd's of other OS's and many flavors of linux like openBSD, freeBSD, the many linux flavors(SUSE, Fedora, Knoppix, etc..), anonym.OS (a live cd based on BSD that makes u anonymous on the internet. I suggest you download some of these you can find a lot of them at http://linuxiso.org
Just thought id throw that in there for some strictly windows ppl to try out some new stuff.

mikeandike22 18 Nearly a Posting Virtuoso

hey I was wondering if it was possible to get mythtv to run on an actual tivo box. In case you dont know mythtv is a open source answer to tivo and the only reason im asking this is i might be getting a tivo series 2 for free and wanted to see if this is possible so i could bypass the subscription.

mikeandike22 18 Nearly a Posting Virtuoso

or you could go all out and use linux which would be the ultimate choice in trying to do anything.

mikeandike22 18 Nearly a Posting Virtuoso

i just play cs and shit but i know some ppl who play bf2.

mikeandike22 18 Nearly a Posting Virtuoso

yea now it does. pretty nice setup

mikeandike22 18 Nearly a Posting Virtuoso

sounds cool...site doesnt seem to be working

mikeandike22 18 Nearly a Posting Virtuoso

i am a user of registry mechanic and i actually like their product most likely the pop-ups dont even lead to the reg mech site. You should get microsoft anti-spyware, firefox, ad-aware, and hijackthis.

mikeandike22 18 Nearly a Posting Virtuoso

hey I just created my own podcast it is a little rough around the edges now but im working out the format for the episodes and getting a new mic. I was wondering where some good places would be to promote my podcast like any good sites that would feature new podcasts or anything. Also i listened to a podcast that tells you how to get to the top 10 of google and then they said they would tell how to get to the top10 of itunes but they ran out of time or something and never covered it. So if someone knows where to find this info that would be cool (please dont be an ass and tell me im a noob and i need to look it up on google)....THX

mikeandike22 18 Nearly a Posting Virtuoso

i have a logitech premium stereo headset and i can hear out of the right side of it but the mic on that side works. Also there is no loss of sound on the left just all the sound is coming out of it. my sound card is a creative sb audigy 2 and i updated all the drivers but i cant find anywhere to download the surround mixer which could probably help calibrate the speakers. If you know where i could download it send me a link.

mikeandike22 18 Nearly a Posting Virtuoso

thanks man this looks good

mikeandike22 18 Nearly a Posting Virtuoso

nice hope it works out for u it sounds good. although i dont see it on the page ur link brings me too.

mikeandike22 18 Nearly a Posting Virtuoso

ok so i had to reformat my windows a couple of days ago because svchost.exe got infecte and there was really no way out of it i couldnt really get onto any programs for a significant enough ammount of time. But now i have all my songs on my itunes and ipod but i want to either switch back to my old library or get the songs off my ipod back onto my computer or else ill never be able to add new stuff.

mikeandike22 18 Nearly a Posting Virtuoso

http://www.razespyware.net/ is a program that offers anti-spyware protection but my friend has said that it added spyware and hijacked his computer. I thought maybe it was worth sharing for other ppl to check out and warn ppl.

mikeandike22 18 Nearly a Posting Virtuoso

i need someone to check out this log
Logfile of HijackThis v1.99.1
Scan saved at 3:13:27 PM, on 1/10/2006
Platform: Windows XP SP1 (WinNT 5.01.2600)
MSIE: Internet Explorer v6.00 SP1 (6.00.2800.1106)

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\WINDOWS\System32\svchost.exe
C:\WINDOWS\Explorer.EXE
c:\Program Files\Common Files\Symantec Shared\ccSetMgr.exe
c:\Program Files\Common Files\Symantec Shared\ccEvtMgr.exe
C:\WINDOWS\system32\spoolsv.exe
C:\windows\system\hpsysdrv.exe
C:\HP\KBD\KBD.EXE
C:\WINDOWS\System32\VTTimer.exe
C:\Program Files\Common Files\Symantec Shared\ccApp.exe
C:\WINDOWS\AGRSMMSG.exe
C:\WINDOWS\ALCXMNTR.EXE
C:\Program Files\Java\j2re1.4.2_03\bin\jusched.exe
C:\Program Files\iTunes\iTunesHelper.exe
C:\Program Files\ISTsvc\istsvc.exe
C:\WINDOWS\dfyuur.exe
C:\program files\online services\valve\steam\steam.exe
C:\Program Files\AIM\aim.exe
C:\WINDOWS\System32\svchost.exe
C:\Program Files\iPod\bin\iPodService.exe
C:\WINDOWS\System32\shell386.exe
C:\Program Files\LimeWire\LimeWire.exe
C:\Program Files\iTunes\iTunes.exe
C:\Documents and Settings\Owner\Desktop\hijackthis\HijackThis.exe

R1 - HKCU\Software\Microsoft\Internet Explorer\Main,Default_Page_URL = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iehome&locale=EN_US&c=Q304&bd=pavilion&pf=desktop
R1 - HKCU\Software\Microsoft\Internet Explorer\Main,Default_Search_URL = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iesearch&locale=EN_US&c=Q304&bd=pavilion&pf=desktop
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Page_URL = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iehome&locale=EN_US&c=Q304&bd=pavilion&pf=desktop
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Search_URL = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iesearch&locale=EN_US&c=Q304&bd=pavilion&pf=desktop
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Search Bar = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iesearch&locale=EN_US&c=Q304&bd=pavilion&pf=desktop
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Search Page = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iesearch&locale=EN_US&c=Q304&bd=pavilion&pf=desktop
R0 - HKLM\Software\Microsoft\Internet Explorer\Main,Start Page = http://ie.redirect.hp.com/svs/rdr?TYPE=3&tp=iehome&locale=EN_US&c=Q304&bd=pavilion&pf=desktop
R1 - HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyOverride = localhost
O1 - Hosts: auto.search.msn.com 127.0.0.1
O2 - BHO: (no name) - {7A1693A1-AFAF-4F1E-9B05-EEC38A85FBF3} - C:\WINDOWS\system32\nmcj8o.dll
O2 - BHO: winapi32.MyBHO - {7A533235-A128-434B-9F8A-9300A544D191} - C:\WINDOWS\System32\winapi32.dll
O2 - BHO: BAHelper Class - {A3FDD654-A057-4971-9844-4ED8E67DBBB8} - C:\Program Files\SideFind\sfbho.dll
O3 - Toolbar: &Radio - {8E718888-423F-11D2-876E-00A0C9082467} - C:\WINDOWS\System32\msdxm.ocx
O4 - HKLM\..\Run: [hpsysdrv] c:\windows\system\hpsysdrv.exe
O4 - HKLM\..\Run: [KBD] C:\HP\KBD\KBD.EXE
O4 …

mikeandike22 18 Nearly a Posting Virtuoso

most linux distros are really just a pick of what you want out of linux...some are more barebone and require a lil more knowledge of coding...others are rather simple to pick up and are similiar to the way windows is layed out (linspire, suse...etc) i personally use fedora core 3 it is a good mix, but the choice is really up to you and there are tons of them.

mikeandike22 18 Nearly a Posting Virtuoso

ok im setting up a menu for a movie file i have...it was all one avi file that i got off my friends camera. so i broke it up into chapters and made all the menus, but i want to play a movie before the main menu comes up. how do i make that happen...do i have to put it into a menu using photoshop and then put it in or is there something easier i can do.

mikeandike22 18 Nearly a Posting Virtuoso

this just seems like an odd problem...on the original page is there like a form being filled out or something...what kind of information are you trying to store.