Guest User

Untitled

a guest
May 27th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. if($mysqlconn = mysql_connect("localhost:/tmp/mysql5.sock", "MYSQL4duser", "4dmysql")){
  2. $output .= "[connected to localhost:/tmp/mysql5.sock as MYSQL4duser]";
  3. if (mysql_select_db("$adDatabase", $mysqlconn)){
  4. $output .= "[database selected: $adDatabase]<br>\n";
  5. } else {
  6. $output .= "[Can't connect to table: $adDatabase ".mysql_error()."]<br>\n";
  7. }
  8. } else {
  9. $output .= "[Unable to connect to: localhost:/tmp/mysql5.sock as MYSQL4duser ".mysql_error()."]";
  10. }
Add Comment
Please, Sign In to add comment