Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //conection to database//
- $con = mysqli_connect ("localhost", "root", "","redlynx");
- //geting colors//
- function getColors(){
- global $con;
- $get_colors =" select * from colors";
- $run_colors = mysqli_query ($con,$get_colors);
- while ($row_colors=mysqli_fetch_array ($run_colors)){
- $colors_id=$row_colors ['colors_id'];
- $colors_title=$row_colors ['colors_title'];
- echo "<li><a href='#' >$colors_title</a></li>";
- }
- }
- <?php
- include ("functions/functions.php");
- ?>
- <?php
- get_colors ();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement