[Solved] How do you modify CSS files via admin panel?

[ad_1] If you’re wanting styles to be dynamic, then you’ll have to emit your CSS file as you are suggesting. However, as WordPress often uses styles.css as a theme definition file, renaming styles.php might cause problems. It might be better to collect all the ‘dynamic’ definitions into a separate file (eg dynamic-styles.php) and import them … Read more

[Solved] User/Admin login in PHP

[ad_1] Could you try this out? $conn = mysql_connect (“localhost”, “root”,””); mysql_select_db(“a_blub”,$conn); $result = mysql_query(“SELECT password FROM user WHERE username=””.mysql_real_escape_string($_POST[“theusername’]).”‘ LIMIT 1”, $conn); $row = mysql_fetch_assoc($result); if ($_POST[‘thepassword’] == $row[‘password’]) { if ($row[‘admin’] == 1) { header(“Location: hit-counter.php”); exit; } else { header(“Location: index_loginsuccesful.php”); exit; } } else { header(“Location: index_loginfailed.php”); exit; } 2 [ad_2] … Read more