php - Can't write to MYSQL DB after moving to a new server -


i've pinged make sure connected server , can read reasons don't need go into. of db calls this:

$sql="insert shoeboxvideos set vidid='$vidid', email='$email' "; $result = mysql_query($sql);  

and worst of all, before moved new server worked fine. don't understand blocking editing database. possible there db settings somewhere in admin?

  • are sure you're on moved db? , not still connected old db?

  • have confirmed connecting db , executing query goes ok? mysql_connect(...) or die('failed connect'); , mysql_query(...) or die(mysql_error()); (change syntax if using pdo or mysqli.)

  • have checked mysql user permissions of mysql user logging in? can user doesn't exist on new location. or exists twice, less rights granted on 1 host connecting with


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -