Jump to content

Help me please !!! it's easy for u


som3aa

Recommended Posts

I am a beginner so my question is probably toooo easy for you

please someone help me

I am using dreamweaver to create a new website.

i am trying to host a new website on a shared server.

i created a new database and tables using phpmyadmin.

i connected to the database using dreamweaver and i created a new page called firsttest.php and saved it in public_html/php then i created a new recordset and tried to link it to firsttest.php

 

when i ran on the hosting server i got this error:

 

Warning: main(../Connections/test.php) [function.main]: failed to open stream: No such file or directory in /home/som3aa/public_html/php/firsttest.php on line 1

 

Fatal error: main() [function.require]: Failed opening required '../Connections/test.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/som3aa/public_html/php/firsttest.php on line 1

 

test is the name of my database

The problem is that it can't locate the database itself, i don't know where is it stored (i just created it with phpmyadmin).

in cpanel i opened php pear.

it says

 

You will need to add /home/som3aa/php to the include path.

You can do this by adding the following code to your script: ini_set("include_path", '/home/som3aa/php:' . ini_get("include_path") );

 

 

all i need to do is type in firsttest.php {Recordset1.Username} for example and i want it to read the name from the database instead it gives me an error that it can't locate the database

Please guys someone help me

Thanx in advance

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.