starting shit oops forgot the db
This commit is contained in:
		
						commit
						9e17051db3
					
				
					 5 changed files with 328 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								pages/story.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								pages/story.php
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
<?php 
 | 
			
		||||
require_once 'imp/db.php';
 | 
			
		||||
 | 
			
		||||
$q = "SELECT * FROM pages WHERE page = '$page'";
 | 
			
		||||
$result = mysqli_query($db, $q);
 | 
			
		||||
$pageinfo = mysqli_fetch_assoc($result);
 | 
			
		||||
 | 
			
		||||
echo "<h1>".$pageinfo["title"]."</h1><br>";
 | 
			
		||||
 | 
			
		||||
echo "<p>".$pageinfo["content"]."</p>";
 | 
			
		||||
 | 
			
		||||
echo $page+1;
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue