MS SQL [SOLVED]

MySQL related discussion or help, including phpMyAdmin.

MS SQL  [SOLVED]

Postby aaronenabs » Thu Jul 29, 2010 1:49 pm

Hello


Am finding it difficult to connect to my database hosted on a remote server(university server)
we are using my php and using ms sql... i have looked up a bunch of connect codes for my sql and also ms sql
they both look similiar but i still cant connect to my database using ms sql codes to the university remote server.

secondly i have uploaded most of my files to sftp server for the university i can run most of my html files but the php dont work and i debugged the code and it said pointed out couldnt connect to server again.

Please can anyone tell me which code exactly i need to connect to mssql server as most people using php use mysql not ms sql

block of code am using

  1. $connect = mssql_connect("", "","");
  2.     mssql_select_db("");
  3.  
  4.     $queryreg = mssql_guery("
  5.  
  6.     INSERT INTO Customer VALUES('Fname','Sname','Telephone','Address','Postcode','Email','Username','Password')
  7.  
  8.  
  9.     );
  10.  
  11.     Die('You have been registered'! <a href='index.html'Return to Hompage");   
  12.     }
Last edited by aaronenabs on Fri Jul 30, 2010 12:19 am, edited 1 time in total.
aaronenabs
 
Posts: 90
Joined: Tue Jul 27, 2010 4:34 pm
Online: 1d 3h 36m 49s
Karma: 0

Re: MS SQL  [SOLVED]

Advertisment

Advertisment
 

Re: MS SQL

Postby Hyper » Thu Jul 29, 2010 2:10 pm

Please, for the 9035012451569014999999999th time we tell the users, USE THE PHP TAGS :evil:

You might want to check your spelling:
  1. mssql_guery

Its called Query not Guery.
Karma++; me if I helped! :roll:
GameZ4Free::playGames();

"There are 10 kinds of people, those who understand binary, and those who do not."
^^ I'm the kind that doesn't understand binary, but understands the joke ;)
User avatar
Hyper
Top Contributor
 
Posts: 934
Joined: Fri Nov 06, 2009 7:08 pm
Online: 6d 4h 31m 50s
Karma: 14

Re: MS SQL

Postby wide_load » Thu Jul 29, 2010 2:12 pm

Hyper wrote:Please, for the 9035012451569014999999999th time we tell the users, USE THE PHP TAGS :evil:


agreed, there is even a reminder when posting new topics !

is it REALLY that hard.
Image
User avatar
wide_load
Top Contributor
 
Posts: 5375
Joined: Thu Aug 13, 2009 1:04 pm
Online: 12d 14h 21m 3s
Karma: 43

Re: MS SQL

Postby bowersbros » Thu Jul 29, 2010 5:30 pm

also, I would recommend removing your server details off the post. just replace with ***
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2006
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 3h 12m 20s
Karma: 6

Re: MS SQL

Postby wide_load » Thu Jul 29, 2010 7:01 pm

bowersbros wrote:also, I would recommend removing your server details off the post. just replace with ***


Fatal error: Call to undefined function mssql_connect() in /home/www/test.php on line 3

damn it ! I should have installed all those extensions I don't need.
Image
User avatar
wide_load
Top Contributor
 
Posts: 5375
Joined: Thu Aug 13, 2009 1:04 pm
Online: 12d 14h 21m 3s
Karma: 43

Re: MS SQL

Postby bowersbros » Thu Jul 29, 2010 7:09 pm

You tried (again, advertising: use a free host just for fun ;))
The early bird catches the worm but the second mouse gets the cheese!

If you look like your passport picture, you probably need the trip.

---

IM contact details:
Example doesnt work, requires a href
bowersbros
Top Contributor
 
Posts: 2006
Joined: Tue Apr 21, 2009 7:55 pm
Location: United Kingdom
Online: 4d 3h 12m 20s
Karma: 6

Re: MS SQL

Postby wide_load » Thu Jul 29, 2010 7:11 pm

bowersbros wrote:You tried (again, advertising: use a free host just for fun ;))


too much effort, I think it would be easier to recompile php :lol:

I only wanted to see if the details worked from outside of their network.
Image
User avatar
wide_load
Top Contributor
 
Posts: 5375
Joined: Thu Aug 13, 2009 1:04 pm
Online: 12d 14h 21m 3s
Karma: 43


Return to MySQL/phpMyAdmin

Who's online?

Users browsing this forum: No registered users and 1 guest