Jump to content

businessman332211@hotmail.com

Members
  • Posts

    304
  • Joined

  • Last visited

Everything posted by businessman332211@hotmail.com

  1. Yes all over google, I just wanted to get a good list, of atleast some of the stuff supported, I couldn't even get .wma to work, I watned to set up as many as possible, I am using a php variable, from a database, I hve the url's recorded, so I am using a variable, but it should be the same thing. Ijust have to figure out what file types it supported, I have been scouring google/yahoo for hours, I still am. I am trying to work that out right now, I am searching everything I can think of for it.
  2. I regularly use Xhtml transitional. The other question I had is there a place I can find a list of the types of files supported by basic object tags.What filetypes are supported with just<object src="" height="" width=""></object>
  3. First time ever having to ask an xhtml related question.What is deprecated and what is not.<object></object><embed></embed>I saw that when I am coding in dreamweaver it tells me object is outdated, change to embed. When I see www.w3schools.com it tells me object is not deprecated, which is it?
  4. while($row = mysql_fetch_assoc($section2right)) { extract($row); $rate = number_format($rate, 3, '.', ','); $points = number_format($points, 3, '.', ','); $apr = number_format($apr, 3, '.', ','); echo "<TR style=\"background-color:#999999;\"><TD>$rate</TD><TD>$points</TD><TD>$apr</TD></TR>"; I just did that with each and every entry, it fixed all the problems.
  5. Sorry for the caps, I am about to disown php, I am trying to get something to go up decimal places, but nothing is working, I asked here in a seperate post, because my other post I had a more important question.I have numbers coming in the db as 2.140 sometimes or 3.300or 4.000 I need them to ALWAYS be 3 decimal places like add zero's to pop int he other decimals I tried everything, I tried str_pad, round(), number_format and nothing is seeming to work, I even played with sprintf, and printr but nothing is working, can someone please help with this.The entries are put into a mysql database, and they are suppose to disply with 3 decimals when the database calls them. But even when there recorded in the database, they pull off the zero's
  6. Sorry for the caps, I am about to disown php, I am trying to get something to go up decimal places, but nothing is working, I asked here in a seperate post, because my other post I had a more important question.I have numbers coming in the db as 2.140 sometimes or 3.300or 4.000 I need them to ALWAYS be 3 decimal places like add zero's to pop int he other decimals I tried everything, I tried str_pad, round(), number_format and nothing is seeming to work, I even played with sprintf, and printr but nothing is working, can someone please help with this.The entries are put into a mysql database, and they are suppose to disply with 3 decimals when the database calls them. But even when there recorded in the database, they pull off the zero's
  7. Ok here is specifically what I Don't understand about 2 things.The first is when you speak about imbed, I think I can figure out how to imbed, but I don't understand the concept I don't think. When someone uploads a file my script moves it to a directory, I can even understand having the file named as something specific, like whatever the person put the name as. BUT what I do not understand currently, is when the person comes back to the site to view a funny. There are multiple ways one can be seen, for one an email is sent out to everyone on the list, also there are new links added to the homepage everytime that someone adds a new entry and it is approved. THe thing I don't understand is, how to make specific files embed specifically. How do I make an image file appear as an image in another page, I can get into that other page, and make changes. Because the person isn't accessing the page. Crap this is hard to explain, for instance, a php script on a specific page DOES NOT start working until someone visits the site. If I have a script to display the time, the time is not displayed until someone visits the site, then the script runs at that time and displays the time. The same with my script, not only does it not run if noone visits but they have to actually submit a form to start the process. They fill out the fields on the form, then they upload the file, then they click submit, then the script starts to run, it runs through all validation, and then moves the file. I understand all of that, it can move the file from that script, because the person is on that script, but once the script moves the file to another page, how can that script that ran that specific file, still run when noone visited it. I am expecting I would guess for each music video, or song, or video when someone goes to view it, it's going to be embedded, but how did it get imbedded, this is really hard to explain. Like the script doesn't run unless someone visits it, so if I have a page I Create with the imbed tags and everything, and set it up to recieve the file, I can only set it to recieve one file, that means I have to create each one by hand right, if that is so it requires constant monitering, I think I am explaining it well enough to get across the points I do not fully understand. About the str_pad I think that will help I really appreciate the advice on that, I am doing that today. Thanks.
  8. So how do I create a new file name for each file, I need to get htem accessible to urls so if they are in a directory then they will be accessible through the url. Let me know, I was wondering about that. What about embedding, do I jsut use object embed and put them in there.
  9. Bump again can anyone help with these 2 issues, it's very important to me, I stopped on this on Friday, and I have to start back on Monday, I am trying to learn everything I can until then, so on monday I can just pick up where I left off, any advice on either one of these 2 issues??
  10. I would like to be treated with a little bit of respect, thanks to the people who help, but the kind of comments as the last one are rude, I know what I am doing, I am still learning, everyone starts someone, a plumber, doesn't plumb for 2 years, before becoming a plumber, he learns the basics, and builds on the rest from experience. Can anyone help with this I am still stuck and I have tried everything.
  11. I found out the problem I just need help figuring out what it is I don't understand this, if you see the stuff up there you can see how I have ti connected, w hen I test it in the other page, then the connections connect properly and select the database, but it gives me this error on the other page, I tried pulling that script in the subpage, on to the main page, and it still gives me the same problems, I don't understand this, when I do that, the script doesn't even work, can someone PLEASE help me with this, I have to get this stuff done soon, any advice please
  12. Can someone see a problem with this I tried some debugging and found one of the problems, here is one. if(isset($_POST['submit'])) { $sql = "select id_administrator,superuser from administrators where username = '".$_POST['username']."' and password = '".$_POST['password']."'"; $rez = mysql_query($sql) or die("The mysql_query is not working"); I tried that, and I got that die message, now I need to ask something does anyone see anything wrong with that query, I checked there are 2 areas in my table called that, the table is called that, and those fields look like they exist, I saw them in there, any advice?
  13. Ok There are a few issues, for one Error reporting is off in the php.ini and I don't have access to the server, or php.ini in this situation, second thing is there is no error.log where I can get access, I know it's not a syntax error, I think because if it was the whole entire page would show up blank, is what it normally does, I tried that echo mysql error as well, all over the place, but nothing is displaying, I even tried getting it to email me errors, and nothing, can anyone see anything wrong, or maybe the form isn't even set up, it all looks like it's workable, this isn't my script by the way, this is someone else's I am just making it work.
  14. That's the thing, there are no script errors I just don't know what the problem is, what I am doing that doesn't allow it to work, any advice?
  15. I am wondering why this isn't working any advice.Login PageIt's not doing ANYTHING, the db, and everything is constructer, all the pages, and everything, but something is keeping it from working. Here is the page that you log in from, I also have a register page, it works 100% is logs the information into the database. IT does all of that correctly but when I try to log in with the username and password it just doesn't do anything, and when I send the email ot the person, it doens't give an email, or confirmation or anything, this script was someone else's they never finished and he hired me to finish it, I got it all working, and found a lot of errors, and worked on most of it, but this part has me stuck.Login page. <?session_start();include("incs/conn.inc.php"); if($_POST['login'] == "Login"){ $sql = "select id_administrator,superuser from administrators where username = '".$_POST['username']."' and password = '".$_POST['password']."'"; $rez = mysql_query($sql); if(mysql_num_rows($rez) > 0){ $row = mysql_fetch_row($rez); session_register("administrator_portal"); $_SESSION['administrator_portal'] = $row[0]; $_SESSION['superuser'] = $row[1]; $sql="update `administrators` set `LastLoginAdmin`=Now() where id_administrator=".$_SESSION['administrator_portal']; $result=mysql_query($sql,$conn); header("Location: download2.php"); exit; }else{ $msg = "The username or password are wrong."; } } if($_GET['erroare'] == "nr"){ $msg = "Ne pare rau insa sesiunea dumneavostra a expirat.<br> You must log on."; }?> <html><head><LINK href="style.css" rel=stylesheet type=text/css><title>ASIC IP</title></head><body bgcolor="#9aa8c7" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"><script type="text/javascript">if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater.ch1_on = new Image(); ch1_off = new Image();ch2_on = new Image(); ch2_off = new Image();ch3_on = new Image(); ch3_off = new Image();ch4_on = new Image(); ch4_off = new Image();ch5_on = new Image(); ch5_off = new Image();ch6_on = new Image(); ch6_off = new Image();ch7_on = new Image(); ch7_off = new Image();ch8_on = new Image(); ch8_off = new Image();ch1_on.src = 'images/b_homeap.gif';ch1_off.src = 'images/b_home.gif';ch2_on.src = 'images/b_aboutap.gif';ch2_off.src = 'images/b_about.gif';ch3_on.src = 'images/b_infoap.gif';ch3_off.src = 'images/b_info.gif';ch4_on.src = 'images/b_downloadap.gif';ch4_off.src = 'images/b_download.gif';ch5_on.src = 'images/b_careerap.gif';ch5_off.src = 'images/b_career.gif';ch6_on.src = 'images/b_teamap.gif';ch6_off.src = 'images/b_team.gif';ch7_on.src = 'images/b_pressap.gif';ch7_off.src = 'images/b_press.gif';ch8_on.src = 'images/b_contactap.gif';ch8_off.src = 'images/b_contact.gif';}function activate(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. imagesrc = eval(image + '_on.src'); document[image].src = imagesrc; }}function deactivate(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. imagesrc = eval(image + "_off.src"); document[image].src = imagesrc; }}</script><center><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="right" valign="top"> </td><td align="center"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" width="700"><tr><td bgcolor="#9aa8c7"><? include("incs/top_menu.inc.php"); ?><table border="0" cellpadding="0" cellspacing="0" width="700" bgcolor="#FFFFFF"> <tr><td> <table border="0" cellpadding="0" cellspacing="0" width="700"> <tr> <td width="6"> </td> <td width="164" valign="top" bgcolor="#f1f1f1"> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="6"></td><td height="24"> <font class="titlu2">Downloads : :</font> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="download.php" class="n">Downloads</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="login.php" class="n">Login</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="register.php" class="n">Register</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <br> </td> <td width="10"> </td> <td width="510" valign="top"> <img src="images/linie.gif"><br> <br> <font class="titlu">Login</font> <br><br> <img src="images/linie.gif"><br> <br> <form name="form1" method="POST" action="login.php"> <table border="0" cellspacing="0" cellpadding="0" width="200" height="96"> <tr><td> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr><td height="34" colspan="3"> </td></tr> <tr><td width="140"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="16"> </td> <td valign="top"><input type="text" name="username" style="width: 150;"></td> <td width="14"> </td> </tr> <tr> <td width="16" height="14"> </td> <td valign="top"><input type="password" name="password" style="width: 150;"></td> <td width="14"> </td> </tr> </table> </td> <td><input type="submit" name="login" value="Login" class="button"></td></tr> </table> </td></tr> </table> </form> <br> <a href="register.php">Click here to register</a> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> </tr></table> <br><br> <img src="images/linie.gif"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td><img src="images/sigla_jos.gif"><br></td> <td class="stitlu"> Trademarks/Copyright ©2006 ASIC IP. All Rights Reserved.</td></tr> </table> <img src="images/linie.gif"><br> <br> </td> <td width="10"> </td> </tr> </table> </td></tr></table></td></tr></table></td><td align="left" valign="top"> </td></td></tr></table></center></body></html> Below are the includesinclude("incs/conn.inc.php"); <?php $conn = mysql_connect ("mysql", "######", "####3");$select = mysql_select_db("ip");?> And it has another include for the top navigational menu, but all that is there is the upper menu, and it works fine on the other pages.Can someone please see anything wrong with it, some reason why it doesn't do anything, oh, and here is the register form just in case. <? session_start();include("incs/conn.inc.php");include("incs/variables.inc.php");include("incs/functions.inc.php");?><?//***************************** registration form ****************************if ($_POST) {//echo "intra in post <br>";// fileds validation $actiune=$_POST['actiune']; $id_user=$_POST['id_user'];//$error_admin = "You don't fill correct the form: <br>"; $password=md5(clean_up($_POST['password'],0,16)); // if case "insert" if ($id_user==0) { /*if ($_POST['username']=="") $error_admin = "You must fill the username";*/ if ($_POST['username']=="") $error_admin .= " <br>You must fill the username"; //check if username exist already in bd$sql_username = "select * from users where username = '".addslashes($_POST['username'])."'";$res_username = mysql_query($sql_username) or die ("Error - select from administrators for check - ".mysql_error()."<br> sql = $sql");if (mysql_num_rows($res_username) > 0) $error_admin .= " <br>This username is already in data base!"; if ($_POST['password']=="") $error_admin .= " <br>You must fill the password"; elseif ($_POST['password']!=$_POST['conf_pass']) $error_admin .= " <br>You must confirm the password"; else if (strlen($_POST['password']) < 6) $error_admin .=" <br>Your password must have minimum 6 characters!"; else $password=md5(clean_up($_POST['password'],0,16)); //check if password exist already in bd$sql_password = "select * from users where password = '".$password."'";$res_password = mysql_query($sql_password) or die ("Error - select from administrators for check - ".mysql_error()."<br> sql = $sql");if (mysql_num_rows($res_password) > 0) $error_admin .= " <br>This password is already in data base!"; if (!eregi("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9]",$_POST['email'])) $error_admin .= " <br>This is not a valid e-mail adress"; //check if email exist already in bd$sql_email = "select * from users where email = '".$_POST['email']."'";$res_email = mysql_query($sql_email) or die ("Error - select from administrators for check - ".mysql_error()."<br> sql = $sql");if (mysql_num_rows($res_email) > 0) $error_admin .= " <br>This email is already in data base!"; if($_POST['phone']!="" && !is_numeric($_POST['phone'])) $error_admin .=" <br>This is not a valid phone number!"; if ($error_admin=="") { //echo "$ error_admin = $error_admin <br>"; $sql="insert into `users` (username,password, email, firstname, lastname, tel, address,city, state,country, regdate,active,pay_type) values('".addslashes($_POST['username'])."','".$password."','".$_POST['email']."', '".htmlentities($_POST['firstname'], ENT_QUOTES)."','".htmlentities($_POST['lastname'], ENT_QUOTES)."', '".$_POST['phone']."', '".htmlentities($_POST['address'], ENT_QUOTES)."', '".addslashes($_POST['city'])."', '".$_POST['state']."','".addslashes($_POST['country'])."', NOW(), '0','2')"; $result=mysql_query($sql) or die ("Error - insert into users - ".mysql_error()."<br> sql = $sql"); $infotext_admin = "Thank you for registering! You will recieve an email for confirmation! "; } else // if are errors { $username=$_POST['username']; $email=$_POST['email']; $firstname=$_POST['firstname']; $lastname=$_POST['lastname']; $phone=$_POST['phone']; $address=$_POST['address']; $city=$_POST['city']; $state=$_POST['state']; $country=$_POST['country']; /* $pay_type=$_POST['pay_type']; $pay_value=$_POST['pay_value']; $data_end=$_POST['data_end']; $year=$_POST['year']; $month=$_POST['month']; $day=$_POST['day']; */ } // }; }; // close if ($id_user==0) };//};//***************************** registration form **************************** // if submitted form process and send mail if ($_POST) { $sendto = "$email"; $subject = "ASIC IP password"; $message = "$realname, $email\n\n$feedback"; // send the email mail($sendto, $subject, $message); }?><html><head><LINK href="style.css" rel=stylesheet type=text/css><title>ASIC IP</title></head><body bgcolor="#9aa8c7" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"><script LANGUAGE="JavaScript">if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater.ch1_on = new Image(); ch1_off = new Image();ch2_on = new Image(); ch2_off = new Image();ch3_on = new Image(); ch3_off = new Image();ch4_on = new Image(); ch4_off = new Image();ch5_on = new Image(); ch5_off = new Image();ch6_on = new Image(); ch6_off = new Image();ch7_on = new Image(); ch7_off = new Image();ch8_on = new Image(); ch8_off = new Image();ch1_on.src = 'images/b_homeap.gif';ch1_off.src = 'images/b_home.gif';ch2_on.src = 'images/b_aboutap.gif';ch2_off.src = 'images/b_about.gif';ch3_on.src = 'images/b_infoap.gif';ch3_off.src = 'images/b_info.gif';ch4_on.src = 'images/b_downloadap.gif';ch4_off.src = 'images/b_download.gif';ch5_on.src = 'images/b_careerap.gif';ch5_off.src = 'images/b_career.gif';ch6_on.src = 'images/b_teamap.gif';ch6_off.src = 'images/b_team.gif';ch7_on.src = 'images/b_pressap.gif';ch7_off.src = 'images/b_press.gif';ch8_on.src = 'images/b_contactap.gif';ch8_off.src = 'images/b_contact.gif';}function activate(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. imagesrc = eval(image + '_on.src'); document[image].src = imagesrc; }}function deactivate(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. imagesrc = eval(image + "_off.src"); document[image].src = imagesrc; }}</SCRIPT><center><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="right" valign="top"> </td><td align="center"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" width="700"><tr><td bgcolor="#9aa8c7"><? include("incs/top_menu.inc.php"); ?><table border="0" cellpadding="0" cellspacing="0" width="700" bgcolor="#FFFFFF"> <tr><td> <table border="0" cellpadding="0" cellspacing="0" width="700"> <tr> <td width="6"> </td> <td width="164" valign="top" bgcolor="#f1f1f1"> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="6"></td><td height="24"> <font class="titlu2">Downloads : :</font> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="download.php" class="n">Downloads</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="login.php" class="n">Login</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="register.php" class="n">Register</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <br> </td> <td width="10"> </td> <td width="510" valign="top"> <img src="images/linie.gif"><br> <br> <font class="titlu">Register</font> <br><br> <img src="images/linie.gif"><br> <br> <form name="form_user" action="" method="post"><table border="0" cellspacing="3" cellpadding="3"> <? if ($error_admin!="") { ?> <tr> <td colspan="2"><?=$error_admin?></td> </tr> <? } ?> <? if ($infotext_admin!="") { ?> <tr> <td colspan="2"><?=$infotext_admin?></td> </tr> <? } else {?> <!--<tr> <td>Username*</td> <td><input type="text" name="username" value="<?=stripslashes($username)?>" ></td></tr>--><tr> <td>Username*</td> <td><input type="text" name="username" value="<?=stripslashes($username)?>" style="width: 200;"> <br> <font class="rez">Enter your username (for login)</font> </td> </tr><tr> <td>Password*</td> <td><input type="password" name="password" style="width: 200;"> <br> <font class="rez">Enter a password (between 6 and 15 characters)</font></td></tr><tr> <td>Confirm Password*</td> <td><input type="password" name="conf_pass" style="width: 200;"> <br> <font class="rez">Re-enter your password</font></td></tr><tr> <td>Email*</td> <td><input type="text" name="email" value="<?=stripslashes($email)?>" style="width: 200;"><br> <font class="rez">Enter your contact email address</font></td></tr><!--<tr> <td colspan="2">Fill the Password and Confirm Password fields just if you want to change the password, otherwise leave it blank </td></tr>--><tr> <td>First Name</td> <td><input type="text" name="firstname" value="<?=stripslashes($firstname)?>" style="width: 200;"></td></tr><tr> <td>Last Name </td> <td><input type="text" name="lastname" value="<?=stripslashes($lastname)?>" style="width: 200;"></td></tr><tr> <td>Telephone </td> <td><input type="text" name="phone" value="<?=$phone?>" style="width: 200;"> <br> <font class="rez">Enter a contact telephone number (just number, without other characters)</font></td></tr><tr> <td>Address</td> <td><input type="text" name="address" value="<?=$address?>" style="width: 200;"></td></tr><tr> <td>City</td> <td><input type="text" name="city" value="<?=$city?>" style="width: 200;"></td></tr><tr> <td>Country</td> <td><input type="text" name="country" value="<?=$country?>" style="width: 200;"></td></tr> <tr> <td colspan="2"><input type="button" onClick="document.form_user.actiune.value='add_user';document.form_user.submit();" value=" Register "></td> </tr> <? } ?> </table><input type="hidden" name="actiune"></form> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> </tr></table> <br><br> <img src="images/linie.gif"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td><img src="images/sigla_jos.gif"><br></td> <td class="stitlu"> Trademarks/Copyright ©2006 ASIC IP. All Rights Reserved.</td></tr> </table> <img src="images/linie.gif"><br> <br> </td> <td width="10"> </td> </tr> </table> </td></tr></table></td></tr></table></td><td align="left" valign="top"> </td></td></tr></table></center></body></html> As I said you can click on register, register, it records the information in the database, and is suppose to email you something I guess, confirmation or something:Sbut when I try to use the username and password to log in, when you click login, it reloads the page but does absolutely nothing, I don't know why this isn't working, I cleared up a bunch of errors before this one, and made a lot of things worked that didn't and fixed a lot of broken scripts, but this has gotten me 100% stumped.
  16. I need help with 2 things, I have no idea how to do the first is not as important as the second.I have a database display herehttp://www.betterchoiceloans.com/todaysrates.phpHere is my problem, I HAVE to get those things to display all my 0's in the database when I put them in as 3.000, or 2.520 or whatever it always cuts off my zero's, then when I call the data it's still cut, I need the 0's in there, and is there any way to put percentages in there too. THis question isn't as important but I can't finish the project like this, I have to have it display the information and including the final zero's even if it's make zero's appear whenever there are less than 2, for instance if the entry was small, they could throw on the extra zeros to get it the size it needs to be any help would be greatly appreciated.This is the main thing I need to ask this is very important if someone can help I would be forever indebted. I have been at this for almost a month, I have asked but not in a way that could not be understood by me.I have a url here Funny Email ForwardsThat form on that page, I deal with all my file working on that page, here is my current script. <?php$management = true;$errorhandler = "";$filemanager = true;$dateinfo = strtotime("now");$dateformatted = date("n-d-y", $dateinfo);if ($_POST['name'] == "") { $errorhandler .= "The Name field has been left blank<br />"; }if ($_POST['keywords'] == "") { $errorhandler .= "The Keywords were left blank<br />"; }if(!is_uploaded_file($_FILES['file']['tmp_name'])){ $errorhandler .= "No file has been uploaded<br />"; $filemanager = false; } if ($filemanager === true) {$_accepted_extensions = array('.mpeg', '.mpg', '.wav', '.avi', '.mid', '.jpg', '.jpeg', '.pdf', '.txt', '.gif', '.mp3'); if ($filemanager == true) { $tmp = pathinfo($_FILES['file']['name']); if (in_array('.' . $tmp['extension'],$_accepted_extensions)) { $filemanager = true; $management = true; }else { $filemanager = false; $management = false; $errorhandler .= "You have attempted to upload the wrong file type<br />"; $errorhandler .= "We only accept mpeg, mpg, wav, avi, mid, jpg<br />"; $errorhandler .= "jpeg, pdf, txt, gif, and mp3 formats<br />"; $errorhandler .= "To request new file types email<br />"; $errorhandler .= "information@theyellowpagesnetwork.com"; } } } // Relative URL with desired folder name and the name of the file on the user's machineif ($management === true && $filemanager === true) { $newfile = "uploads/".basename($_FILES['file']['name']); $newfiletemp = "{$_FILES[file][tmp_name]}"; if (file_exists($newfile)) { $errorhandler .= "The file already exists"; $filemanager = false; } if($filemanager === true) { if (!move_uploaded_file($newfiletemp, $newfile)) { $errorhandler .= "The file was not moved properly"; $filemanager = false; $manager = false; } } }if ($filemanager === true || $manager === true) { $connect = mysql_connect("localhost", "funnyemail", "8Ua^1jv"); $select = mysql_select_db("funnyemailforwards"); if (!$connect && !$select) { $errorhandler .= "The database could not connect, or selected"; $management = false; $filemanager = false; } }if ($filemanager === true && $management === true) {$query = "SELECT * from fileinfo WHERE type = '" . implode("", $_POST['type']) . "' AND nameoffunny = '" . mysql_real_escape_string($_POST['name']) . "' AND keywords = '" . mysql_real_escape_string($_POST['keywords']) . "' AND funnyurl = '" . mysql_real_escape_string($newfile) . "' AND entrydate = '" . mysql_real_escape_string($dateinfo) . "'";$result = mysql_query($query);$matches = mysql_num_rows($result); if ($matches == 0) {$inserter = "INSERT INTO fileinfo (type, nameoffunny, keywords, funnyurl, entrydate) VALUES ('" . implode("", $_POST['type']) . "', '" . mysql_real_escape_string($_POST['name']) . "', '" . mysql_real_escape_string($_POST['keywords']) . "', '" . mysql_real_escape_string($newfile) . "', '" . mysql_real_escape_string($dateinfo) . "')"; if(mysql_query($inserter)){ $management = true; $filemanager = true; }else { $management = false; $filemanager = false; $errorhandler .= "The information was not inserted into the database properly"; echo mysql_error(); } } else { $filemanager = false; $managment = false; $errorhandler .= "The information was already in the database, could not complete"; } }if ($management === false || $filemanager === false) { echo "{$errorhandler}"; } ?> Ok here is my problem, I don't understand how to do the followingI have to get every new file download to go intot he folder, all of that already happens, everything is working perfectly so far. I need to add some things, I already know now how to work with the admin page, next week I have to finish this project, the last thing I don't understand, when the files get downloaded, how do I make them accessible through the url's. I need to figure out how to do this, in a way I can understand, I have heard htaccess can do it, I have started going under study for htaccess but it'll still be a few months before I start learning it officially, because I have to finish learning php/mysql to a decent level and I have more mental resources to take on new categories of learning. What I need to do is get this to work, in a way I understand, I don't understand how the files are associated with the download, and how it will add the ability to reach the embedded pages. I also don't understand how to embed, I need to atleast get some help, pointed to some resources, anything, that can help me get this done, would be more than greatly appreciated.
  17. I tried using$section1 = mysql_query("SELECT * FROM `arm3_1_417upto` LIMIT 0 , 30");echo "{$section1}";and it just saidresource #2 as the output
  18. EDIT- SOLVED THANKS FOR ALL THE HELPI am trying to do some basic db calls through php but I don't know how, how do I get this to format out, like how do I get a basic function call to atleast display then I can start working onlearning how to get it formatted looking nicer.http://www.betterloans.com/ratesheet.php?P...fc83c22e66f2435
  19. I got all the issues fixed, and that error was me starting my database calls. I fixed that, but yes people have told me, get it in ff and opera, then ie, what I am going to do however, is get it in all 3 from now on, I do half the layout test in all, and get it right as I go, I figured these out with some quick searches on google, I am starting to learn the affects of various issues from all the problems I encounter with it.
  20. I have this looking perfect but for some reason it's off some in firefox and opera, can anyone help me figure this outHereIn Firefox and Opera there are some issues, it doesn't align right, the background color doesn't stick ex cetera, it's 100% perfect in ie, but looks horrible in the others, any advice?? body /* Sets the body for the page, and background picture */{ background-image: url(images/BG_COLOR_BLUE2GRAY.jpg); text-align:center;}/* Begin section, everything in this section sets the general format and allowsthis sets the top areas, and formatts the main section for body content */#mastertopdiv{ clear:both;}#mainnav{float:left;}/* Everything in this section is related to displaying the actual content sections of the webpage */#content{ float:left;}#masterpagediv{ background-color:#FFFFFF; width:800px;}/* top loan */#loanamountleft{ float:left; font-weight:bold;}#loanamountright{ float:left; font-weight:bold; margin-left:30px;}#loanamount{ margin-left:80px; clear:both; margin-bottom:30px;}/* end top loan *//* Section 1 */#section1{ margin-left:80px; clear:both;}#section1left{ float:left;}#section1right{ float:left; margin-left:110px;}/* End Section 1 *//* Section 2 */#section2{ margin-left:80px; clear:both;}#section2left{ float:left;}#section2right{ float:left; margin-left:110px;}/* End Section 2 *//* Section 3 */#section3{ margin-left:80px; clear:both;}#section3left{ float:left;}#section3right{ float:left; margin-left:110px;}/* End Section 3 *//* Section 4 */#section4{ margin-left:80px; clear:both;}#section4left{ float:left;}#section4right{ float:left; margin-left:110px;}/* End Section 4 *//* Section 5 */#section5{ margin-left:80px; clear:both;}#section5left{ float:left;}#section5right{ float:left; margin-left:110px;}/* End Section 5 *//* Section 6 */#section6{ margin-left:80px; clear:both;}#section6left{ float:left;}#section6right{ float:left; margin-left:110px;}/* End Section 6 */ <!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> <!-- I did this page of the site in CSS div/span tags instead of tables. --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="Description" content="BE THE BROKER offers mortgages, home equity loans with low rates and personal service all in a secure and private online environment. Pick you own rate for a flat fee. Refinancing for existing loans and home loans. Their mortgage rates include no lender costs or origination fees, and you can get a free credit score to check your rating." /> <meta name="Keywords" content="broker, mortgage broker, home loan broker, mortgage rates, mortgage calculator, loan, home loans, home financing, loan calculator, home equity loans, 125% home equity loans, credit cards, free credit report, credit report, mortgage, home mortgage, mortgage refinancing, mortgage loan, mortgage broker, mortgage company, second mortgage, interest rate, equity loan, online credit report, mortgage financing, home financing, home equity, california mortgage, california lender, california home loans, california mortgage brokers" /> <meta name="author" content="Joyel Puryear [url="http://www.freelancebusinessman.com""]http://www.freelancebusinessman.com"[/url] /> <!-- BE THE BROKER offers mortgages, home equity loans with low rates and personal service all in a secure and private online environment. Pick you own rate for a flat fee. Refinancing for existing loans and home loans. Their mortgage rates include no lender costs or origination fees, and you can get a free credit score to check your rating. --> <!-- broker, mortgage broker, home loan broker, mortgage rates, mortgage calculator, loan, home loans, home financing, loan calculator, home equity loans, 125% home equity loans, credit cards, free credit report, credit report, mortgage, home mortgage, mortgage refinancing, mortgage loan, mortgage broker, mortgage company, second mortgage, interest rate, equity loan, online credit report, mortgage financing, home financing, home equity, california mortgage, california lender, california home loans, california mortgage brokers --> <!-- Joyel Puryear [url="http://www.freelancebusinessman.com"]http://www.freelancebusinessman.com[/url] --> <link rel="stylesheet" type="text/css" href="betterchoiceloans.css" /> <title>Today's Rates</title> <!-- THIS SECTION IS NOT MY WORK, it is something that was there on the site previously --> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script></head><body> <div id="masterpagediv"> <div id="mastertopdiv"> <div id="logo"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','779','height','90','title','HOME','src','TOP-FLASH/home','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','TOP-FLASH/home' ); //end AC code</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="779" height="90" title="HOME"> <param name="movie" value="TOP-FLASH/home.swf" /> <param name="quality" value="high" /> <embed src="TOP-FLASH/home.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="779" height="90"></embed> </object></noscript></div> <div id="belowlogo"><script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','779','height','150','title','BANNER','src','HOME_BANNER/homebanner-2','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','HOME_BANNER/homebanner-2' ); //end AC code</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="779" height="150" title="BANNER"> <param name="movie" value="HOME_BANNER/homebanner-2.swf" /> <param name="quality" value="high" /> <embed src="HOME_BANNER/homebanner-2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="779" height="150"></embed> </object></noscript> </div> </div> <div id="bottomwrap"> <div id="mainnav"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="175" height="400" title="Side_Nav"> <param name="movie" value="side_nav.swf" /> <param name="quality" value="high" /> <embed src="side_nav.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="175" height="400"></embed> </object></div> <div id="content"> <div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="579" height="242" title="Featured"> <param name="movie" value="Featured-products/featured.swf" /> <param name="quality" value="high" /> <embed src="Featured-products/featured.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="579" height="242"></embed> <!-- END of the section that I did not do --> </object></div> <div> <!-- Begin top of content --> <div id="loanamount"> <div id="loanamountleft">Loan Amount Up To $417,000</div> <div id="loanamountright">Loan Amount Over $417,000</div> </div> <!-- End top of content --> <!-- Begin Section 1 --> <div id="section1"> <div id="section1left"> <p>Data displayed here</p> </div> <div id="section1right"> <p>Data Displayed Here</p> </div> </div> <!-- End Section 1 --> <!-- Begin Section 2 --> <div id="section2"> <div id="section2left"> <p>Data displayed here</p> </div> <div id="section2right"> <p>Data Displayed Here</p> </div> </div> <!-- End Section 2 --> <!-- Begin Section 3 --> <div id="section3"> <div id="section3left"> <p>Data displayed here</p> </div> <div id="section3right"> <p>Data Displayed Here</p> </div> </div> <!-- End Section 3 --> <!-- Begin Section 4 --> <div id="section4"> <div id="section4left"> <p>Data displayed here</p> </div> <div id="section4right"> <p>Data Displayed Here</p> </div> </div> <!-- End Section 4 --> <!-- Begin Section 5 --> <div id="section5"> <div id="section5left"> <p>Data displayed here</p> </div> <div id="section5right"> <p>Data Displayed Here</p> </div> </div> <!-- End Section 5 --> <!-- Begin Section 6 --> <div id="section6"> <div id="section6left"> <p>Data displayed here</p> </div> <div id="section6right"> <p>Data Displayed Here</p> </div> </div> <!-- End Section 6 --> </div> </div> </div> </div></body></html>
  21. Someone has to know this, I have been all over the manual and nothing, and all over the internet and found nothing about it, I just thought, and poured over the manual and couldn't find a thing about it.
  22. I am trying to do something, I am basically cloningExampleI need to build a database, to hold all this information I need to allow people to see this on the website. Then I have an admin page, someone daily can fill in new fields, and have it update that automatically upon making changes to the admin page. I was thinking about 3 things1. Cookies would do me no good.2. I don't think sessions will3. DatabaseI am now building my database, I have the names set up, but I am having trouble recieving the dataI need it to database, like it is typed.For instance these following values get entered, If I use the right datatype most of it is preserved, but there are still 2 issues, one imprortant and ones a question5.1703.0007.1546.0002.1757.291The affects are unaccaptable, when they are entered they show up in the database like this5.1737.15462.1757.291as you can see any and all ending zero's are automatically removed is there a possible way using mysql I can achieve this, or am I looking in the wrong direction with using databases.I have tried multiple datatypesfloat, int, decimal, doubleand nothing seems to work, and if there is a way I don't know enough about setting the length on the datatypes to be able to do anything, is there something I can do to make this work the way I want.THe final question I have, is there a way for me to allow the db to accept some % charactersthe original way they should be entered is like shown on that example, with those decimal places, with the percentages, and what not, I can live without the percentages, but I can't live with the database killing my zero's I could really use some help on this.
  23. Ok maybe I will take a chance and hope someone just doesn't upload a virus, I never saw anyone else going to the trouble of trying to figure out this aspect.Ok what I don't get is how to take the file information from that page to another, I might have the file url, hmm, let me think about this, maybe I can do something.The last question I had, I didn't understand about the data, I thought if I display data from the database, if just shows up, I don't know how to get it set up to be updateable, that is the part I am getting confused about.
  24. I just ran into a wall, it's 3 things here I don't understand, and no matter what I do my understanding isn't clearing up.1. How to get the url's to appear as url's like the files to be able to be accessed through a url, someone told me about htaccess and did some stuff to get me on the right track but it's not helpful yet.2. How to get the files embedded, but what you told me helped, but I don't get how to get the file to pass into the embed, because I need every single file to be embedded based on it's file type, automatically upon download.3. How to get an admin page created so I can update, and delete database information, I have learnt a lot and overcome a lot but more stuff keeps ocming at me.
×
×
  • Create New...