Jump to content
Sign in to follow this  
HAJFAJV

Need recommendation language use

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>

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...