View Single Post
  #1 (permalink)  
Old Apr 18th, 2008, 18:41
thumbliner thumbliner is offline
New Member
Join Date: Apr 2008
Location: India
Age: 16
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Problem attaching PHP to webpages

Hello Guys,

I am new here and desperately in need of some guidance. I am a beginner in web development. I wanted to design a dynamic website so I asked someone to do all the php coding for me and send me those files and teach me how to use them. He took the money and send me the files but is not giving support. Now I need someone who can tell me how to do the basic php coding work.

He made all the files which just have to be included in my webpages. He asked me to use the following code to attach those files - <? include 'filename.php'; ?>

To test it, I made a webpage and used a login.php which he made for me. I added the following code in the body of the page <? include 'login.php'; ?> but when it try to open that page on the internet, i get an error which says i have an error in the main data.php file

These are the only lines which data.php contains. Can you please tell me what to do?

------------------------------------------------------------------------------------

line 1 <?php

line 14 $hostname_conn_abrv = "localhost"; ////database hostname, usually always localhost
line 16 $database_conn_abrv = "salmansk_system"; ////database name
line 17 $username_conn_abrv = "salmansk_user"; /// database username
line 18 $password_conn_abrv = "user"; //// database
line 19 $conn_abrv = mysql_pconnect($hostname_conn_abrv, $username_conn_abrv, $password_conn_abrv) or trigger_error (mysql_error(),E_USER_ERROR);
line 20
line 21 ?>

------------------------------------------------------------------------------------

When I asked him, he just said edit the data.php file. Now I dont know what I have to edit in those lines.
Can you please guide me what to do? The link to that page is http://www.bourneaviation.com/tying.php
Reply With Quote