Cole Mason

@catchacoled (20) • Easley High School
My website
posted to Share by catchacoled

thank you,the game is so awesome @rjlevy

My website
posted to Share by catchacoled

I did not know that it wouldn't even let me open his link on my computer because it is a school computer. I will fix it immediately. Thanks for letting me know @titaniump

My website
posted to Share by catchacoled

I saw your portfolio website. I don't have an email that I would be able to currently contact you with through your site. Your portfolio site is awesome, how did you make it to where when you click on something on the navagation bar instead of taking you to a new file it scrolled down to that part of the page @rjlevy

My website
posted to Share by catchacoled

I just added both of those to my site. It was a little hard cause the submit buttons weren't the button class it was an input class so I had to go off the class of the elements @rjlevy

My website
posted to Share by catchacoled

Thank you so much for that template. @rjlevy

My website
posted to Share by catchacoled

I can't figure node.js out. Ig Ill have to do the other task. Wym by making I form public so I can try it @NoNameByProgram

Node Server
posted to Share by catchacoled

No problem. Your really great at programming, I love the low chat @Vandesm14

My website
posted to Share by catchacoled

I don't really know how to use but node.js but I'll try [email protected]

Forms in websites that give you responses in three steps
posted to Tutorials by catchacoled

I hope this helps anyone who had had trouble with this

My website
posted to Share by catchacoled

I haven't fully learned PHP yet. I've been learning as I go and using W3 schools if I get stuck @Leroy01010

My website
posted to Share by catchacoled

Thank you @Leroy01010

My website
posted to Share by catchacoled

That profile pic is me and my gf why
@Leroy01010

My website
posted to Share by catchacoled
My website
posted to Share by catchacoled

I saw where you answered. You got the game right, you left out what the song is named, but I'll give it to you anyway. now if you wanna use the premium game option I have have made it where if you type uhmansoori it will let you in @uhmansoori

My website
posted to Share by catchacoled

I saw. Now your name is gonna go in the Winners of the challenge of the week dropdown. Good job and nice thinking pieceing the file name and hints together
@Warhawk947

My website
posted to Share by catchacoled

The font is Megrim
@JosephSanthosh

My website
posted to Share by catchacoled

Thank You!! :) @JosephSanthosh

DJANGO WEBPAGE BLOCKED
posted to Ask by RYANTADIPARTHI

Changes could have caused that cause a big chuck of how they block stuff is based off keywords. I was at school last year working on a site and it wasn't blocked but when I put a bunch of stuff regarding Minecraft on there it got blocked because the work Minecraft was on there, I had to take down the Minecraft stuff for it to fix @RYANTADIPARTHI

Search engine help
posted to Ask by MemeManHimself

You could try this but i dont know if it will work for your site, in the page file you want the search bar

<!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>Search</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
	<form action="search.php" method="GET">
		<input type="text" name="query" />
		<input type="submit" value="Search" />
	</form>
</body>
</html>

and then in search.php

<?php
	mysql_connect("localhost", "root", "") or die("Error connecting to database: ".mysql_error());
	/*
		localhost - it's location of the mysql server, usually localhost
		root - your username
		third is your password
		
		if connection fails it will stop loading the page and display an error
	*/
	
	mysql_select_db("tutorial_search") or die(mysql_error());
	/* tutorial_search is the name of database we've created */
?>
<!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>Search results</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<?php
	$query = $_GET['query']; 
	// gets value sent over search form
	
	$min_length = 3;
	// you can set minimum length of the query if you want
	
	if(strlen($query) >= $min_length){ // if query length is more or equal minimum length then
		
		$query = htmlspecialchars($query); 
		// changes characters used in html to their equivalents, for example: < to &gt;
		
		$query = mysql_real_escape_string($query);
		// makes sure nobody uses SQL injection
		
		$raw_results = mysql_query("SELECT * FROM articles
			WHERE (`title` LIKE '%".$query."%') OR (`text` LIKE '%".$query."%')") or die(mysql_error());
			
		// * means that it selects all fields, you can also write: `id`, `title`, `text`
		// articles is the name of our table
		
		// '%$query%' is what we're looking for, % means anything, for example if $query is Hello
		// it will match "hello", "Hello man", "gogohello", if you want exact match use `title`='$query'
		// or if you want to match just full word so "gogohello" is out use '% $query %' ...OR ... '$query %' ... OR ... '% $query'
		
		if(mysql_num_rows($raw_results) > 0){ // if one or more rows are returned do following
			
			while($results = mysql_fetch_array($raw_results)){
			// $results = mysql_fetch_array($raw_results) puts data from database into array, while it's valid it does the loop
			
				echo "<p><h3>".$results['title']."</h3>".$results['text']."</p>";
				// posts results gotten from database(title and text) you can also show id ($results['id'])
			}
			
		}
		else{ // if there is no matching rows do following
			echo "No results";
		}
		
	}
	else{ // if query length is less than minimum
		echo "Minimum length is ".$min_length;
	}
?>
</body>
</html>

I really hope this works for you

My website
posted to Share by catchacoled

@Coder100 Thank you! I will do that immediately

Repl Talk Rules and Guidelines [README]
posted to Announcements by mat1

@JonWakilsChanne Or if you wanna work in reverse you can multiply like this

feet = 3 
yards = feet * 3
console.log(feet, "feet equal", yards, "yards")
How do i get a form to show a username that the user puts in in the top navagation bar
posted to Ask by catchacoled

The answer was to turn what the turn in to the form into a session variable like the

<?php $_SESSION['username'] = $_POST['user']; ?>

and then where your putting to answer it would look like this,

<p>Welcome "<?php echo $_SESSION['username']; ?>"</p> Thats what happened and if anyone uses this as an answer to their problem make sure that it is all in a PHP file or it won't work. @CodeLongAndPros