How do I fetch from a field from MySQL using PHP?

  • Thread starter Thread starter basuk2k2
  • Start date Start date
B

basuk2k2

Guest
I need to access the value from site_status from the site_data table and then leave it as a variable to be used to determine where to send the visitor to the site.

Basically in Pseudo Code

if value from site_status in table site_data = 0 then
send user to value from site_indexpath in table site_status
else if
value from site_status in table site_data = 1 then
send user to value from site_maintain in table site_status
else end

Thanks
 
Back
Top