ilink
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Developing with WordPress
In reply to: Pulling Data from wp_usersBump
Forum: Fixing WordPress
In reply to: Calendar that goes to pages you sethttps://ww.wp.xz.cn/plugins/the-events-calendar/
try thismight be able to hyperlink the title, or have the link close to it.
- This reply was modified 8 years, 11 months ago by ilink.
Forum: Developing with WordPress
In reply to: Pulling Data from wp_users<?php $conn = new mysqli('HOSTNAME', 'USERNAME', 'PASSWORD', 'DATABASE'); $query = "SELECT Auth FROM wps_users WHERE ID = " . (int)$_SESSION; $result = mysqli_query($conn, $query); switch($result->fetch_assoc()['Auth']) { case 0: echo '<span style="color:#5b5b5b;text-align:center;">You do not have a service, Get one <a href=/shop.php?>HERE</a></span>'; break; case 1: echo '<span style="color:#09bbe2;text-align:center;">Preparing..</span>'; break; case 2: echo '<span style="color:#42f45c;text-align:center;">Online!</span>'; break; case 3: echo '<span style="color:#d80e04;text-align:center;">Suspended</span>'; break; } ?>Attempted to pull data in a stand alone string.
works fine normally, just not with WP.- This reply was modified 8 years, 11 months ago by ilink.
Viewing 3 replies - 1 through 3 (of 3 total)