nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Php

This is a discussion on Php within the Linux software forums, part of the Linux Getting Started category; I have made a smal php page registration page. and also created a database in MYSQL, now when I try ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-20-2008, 01:19 PM
Junior Member
User
 
Join Date: Aug 2008
My distro: Debian
Posts: 2
Rep Power: 0
shejoe is on a distinguished road
Post Php

I have made a smal php page registration page. and also created a database in MYSQL, now when I try to enter in the php page it should go to mysql database. However, it is not working any help on this will be greatly appreciated.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-20-2008, 04:08 PM
amitabh's Avatar
Contributors
User
 
Join Date: Jul 2008
Location: New Delhi
My distro: FreeBSD/OpenBSD
Posts: 68
Rep Power: 3
amitabh has a spectacular aura about amitabh has a spectacular aura about amitabh has a spectacular aura about
Send a message via MSN to amitabh Send a message via Yahoo to amitabh Send a message via Skype™ to amitabh
Default

you will have to be a little more descriptive about the error you are getting?
Reply With Quote
  #3 (permalink)  
Old 10-27-2008, 03:46 PM
Junior Member
User
 
Join Date: Sep 2008
Location: Australia
My distro: Slackware 10.1
Posts: 17
Rep Power: 0
nicephotog is on a distinguished road
Default

A database is a file in a database server. A database usually runs as a localhost 127.0.0.1 when operating with a web server.
The database server is a usually a background program as a service called a Daemon.
MySQL usually runs with the port number 3306 as default.
So you need to open a link() to the database in php for 127.0.0.1:3306
Then you send your query as a GET request using the special link() method/function in php.
You can "querystring" on the end of the lnk url or use the construction methods that convert the straight syntax(the easier action) of your SQL query.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 09:16 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36