Jump to content

Need recommendation language use


HAJFAJV

Recommended Posts

Hello

I would appreciate it if someone can recommend an approach to my problem. I started making a site with html5, css, php, mysqli, jquery, and some javascript, however I'm a complete newb, so I don't know how I should handle making a page interactable.

Car analogy:

I want to have a page where you need to select different car parts. There is a list of placeholder texts, choose seat type, choose tires, choose engine, and so on. Let's say you want to choose tires first, so you click the text and gets taken to another page with a long list of different car tires, then you click the tires you want and you're send back and the tires you chose are placed instead of the placeholder text.

So I have everything working except grapping the text from the chosen tires and placing the text instead of the placeholder text. Is this something you would use cookies for? If cookies are the answer then how do you grap the text from the tires clicked?

Sorry my table is kind of a mess, cannot seem to edit it here.

<table>
	<tr>
		<th></th>
		<th></th>
	</tr>
	<?php
		if ($resultCheck > 0) {
			for ($i = 0; $i <= $resultCheck; $i++) {
				while ($row = mysqli_fetch_assoc($result)) { 
	?>
				<tr class='cursorpointer'>
					<td><img src=""></td>
					<td class='clickable-row' data-href='build1.html'><p><?php echo $row['name']; ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a>Socket</a> <?php echo $row['socket']; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a>Architecture</a> <?php echo $row['architecture']; ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a>Family</a> <?php echo $row['family']; ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <?php echo $row['cores']; ?> <a>Cores</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php echo $row['ghz']; ?><a>Ghz Turbo</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php echo $row['price'];?><a>&euro;</a></p></a></td>
				</tr>
				<?php
															}
													}
								}
				?>
</table>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...