Jump to content

ItsWesYo

Members
  • Posts

    110
  • Joined

  • Last visited

    Never

Everything posted by ItsWesYo

  1. My Alienware laptop has a HDMI output (Yay Hi Def!) but the problem is I don't want or need it. For Karaoke I need a RCA yellow output, which my laptop cannot do. For preferably under $50 (but send links regardless I need to buy this in the next 24 hours) I need to get a RCA yellow output. I can obviously go through hundreds of adapters and converters, but I'm looking into a possible USB video output if any exist. Any help and links are appreciated.
  2. You sir just helped me out, haha. Thank you!
  3. Okay, sorry about that..I'll post a quick example... http://example.site.com/a/includes/header.php <b>This is my header text example</b> http://example.site.com/a/includes/footer.php <b>This is my footer text example</b> http://example.site.com/a/index.php <?php include 'http://example.site.com/a/includes/header.php'; ?> text would go here <?php include 'http://example.site.com/a/includes/footer.php'; ?> http://example.site.com/a/lettera/index.php <?php include 'http://example.site.com/a/includes/header.php'; ?> text would go here <?php include 'http://example.site.com/a/includes/footer.php'; ?> Now of course, if you were to display the /a/letter/index.php page, it would show: This is my header text example text would go here This is my footer text example But it only shows 'text would go here'
  4. Need to Know: http://example.site.com/a/includes/header.php (Would contain the header) http://example.site.com/a/includes/footer.php (Would contain the footer) http://example.site.com/a/index.php (The index page of directory A) http://example.site.com/a/lettera/index.php (Another index of a higher directory) The Problem: Okay. It won't display my header and footer even though I correctly use the include function. I've tried everything, but just displays a white page with the text. Example: Let's say I make a page with a url of http://example.site.com/a/lettera/index.php. And I want to include http://example.site.com/a/includes/header.php and http://example.site.com/a/includes/footer.php So, I would use the PHP include function and use those. The problem is, the includes won't show up, just the page of /a/lettera/index.php. Help?
  5. Look at attached graphic to help. ---------- I'm looking for an easier way to make a "bread crumbs" type thing. EXAMPLE: about.php haha.php test.php I was trying to be hopeful to make a page called "variables.php" or "youarehere.php". On that page, I would put would put: about.php -> "Home > About" haha.php -> "Home > Haha" test.php -> "Home > Test" After that, I could include "variables.php" or whatever on the layout, and when that page comes up, it would go into variables.php and look for that page and give out what it says. I might have to show you the whole layout code (header.php, footer.php) if you need it. [attachment deleted by admin]
  6. Thanks, but I finally figured it out.
  7. View the attached image to refer to this post. ----------- How would I go about to hide all the INSIDE borders of that table? For #1, I would like the right border hidden or at least colored white, etc. [attachment deleted by admin]
  8. Right now, this is how my page is set up: monsters.php <?php include ("inc/header.php"); $page = ((isset($_REQUEST['name']))?($_REQUEST['name'])'')); switch($page) { case "monster1": { echo ( " monster one PAGE "); break; } default: { echo (" links to monster info page go here. <a href='?name=monster1'>monster one</a> "); break; } } include ("inc/footer.php"); ?> My question: Instead of "?name=monster1", I would like it to appear as "?monster1". Help? (Just wanna test some things)
  9. Ugh. I've been trying different CSS styles and none work.
  10. Max, yes. mgal, that is sort of the idea, but I want it around the text. Not extra black/white around it. And I don't want to make a lot of images of numbers. [attachment deleted by admin]
  11. Could you, perhaps, elaborate on how to do this?
  12. I don't know if I would use PHP or CSS for this, but: How would I make a number appear with WHITE text and a BLACK outline to it?
  13. I mean, is it possible to decode it?
  14. My friend was joking around with me and sent me an encrypted message. Thing is, I can't figure it out. Any help/ideas on how to figure it out? :\
  15. 1) I know how to use the number_format code, but I can't seem to get it to work for this section. $userstats3[gold] displays the amount of gold you have. It's used like this: print "<tr><td width='100' align='left'><b>Username</b></td><td width='100' align='left'>$player</td></tr>"; print "<tr><td width='100' align='left'><b>User ID</b></td><td width='100' align='left'>$userstats3[iD]</td></tr>"; print "<tr><td width='100' align='left'><b>Gold</b></td><td width='100' align='left'>$userstats3[gold]</td></tr>"; So, how would I do it as it seems like I can't get it to work. 2) I have a rankings board for the most gold and such. I'd like to have the top three people have different colored text. Gold would be 1st place, silver would be 2nd place and bronze for third. How would I got back doing this? Here's the main part: print "<center><table width='300' border='0'><tr><td width='100'><center><b>User ID</b></center></td><td width='100'><center><b>Username</b></center></td><td width='100'><center><b>Gold</b></center></td></tr>"; $topplayers="SELECT * from km_users order by gold DESC Limit $start, 20"; $topplayers2=mysql_query($topplayers) or die("Could not query players"); while($topplayer3=mysql_fetch_array($topplayers2)) { $topplayer3[playername]=strip_tags($topplayer3[playername]); print "<tr><td width='100'><center>$topplayer3[iD]</center></td><td width='100'><center>$topplayer3[playername]</center></td><td width='75'><center>$topplayer3[gold]</center></td></tr>"; } print "</table></center>"; include 'inc/footer.php'; }
  16. I'm making a tutorial/guide for a site. There are multiple chapters (1, 2, 3, 4, etc). Instead of making multiple ifs, is there a way I can put the unfinished ones in a single line. Hard to explain :\ Part of guide.php <?php $page = $_REQUEST['i']; if($page == "chap1"){ echo (" <b>CHAPTER 1</b> is not available right now. "); die(); } ?> Like, I also want chap2 and chap3 to be unavailable too without making a new if($page) statement.
  17. 5Kscramble.php <?php //Check to see if null values were submitted... if($_POST['question1'] == "") { ?> <form action="5Kscramble.php" method="POST"> <b>swe</b><br> <input type='text' name='question1' size='25'><br><br> <input type="submit" value="Submit!"> </form> <?php } else { //Variables, $x records questions correct. $y is the number of questions. $x = 0; $y = 1; //Check the values of the select questions. if($_POST['question1'] == "wes") { $x++; } ?> <?php echo 'You got '. $x .' out of '. $y .' questions correct.'; ?> <?php } ?> Would there be a way to show a code (ex: 123456789) from a .txt file that I provide on my server to display if ALL questions are answered correctly? Example: If I have random codes in a text file (seperated by a line) ... like: 123, 234, 345, 456, 567, 987, 876, etc etc Then, if someone answers ALL the questions correctly, a script would pull ONE of those codes ONCE from the file. It would display the code on the results page. Then I go from there by myself.
  18. Yeah, sorry. I forgot to add in " before the user part.
  19. <?php mysql_connect("localhost","user","pass"); mysql_select_db("database"); $query = mysql_query("SELECT * FROM table") or die("Error: ".mysql_error()); $num_rows = mysql_num_rows($query); while($r = mysql_fetch_array($query)){ echo "{$r['field']}"; } echo "$num_rows"; ?> That works for me also.
  20. I've gotten it to display only certain letters, but what would I put to display ALL items that start with numbers? This is what I have to display certain letters: <?php case "A": $result = mysql_query("SELECT * FROM items WHERE name LIKE 'A%'"); while($r=mysql_fetch_assoc($result)) { $name=$r['name']; echo "$name<br>"; } mysql_free_result($result); break; ?> I want to display ALL numbers, not just individually.
  21. Sorry for the double post, but I thought it worked =\ I used Lewis' code, but it didn't work =\
  22. Yeah, sorry. I was editing my post when you were in the topic =\ But thank you!
×
×
  • Create New...

Important Information

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.