![]() |
|
|||||||
| Notices |
| Programming Forum Web and Software Programming Forum - Java, PHP, SQL etc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
It is there
PHP Code:
__________________
Subtlety is my middle name... and first and last in case you didn't get the point. |
|
||||
|
Look at this one and compair the two:
function connect_db() { $DBhost = "servername";//change this line $DBuser = "****";//change this line "****" $DBpass = "********";//change this line "********" $DBName = "nameofdatabase";//change this line "" $conn = mysql_connect($DBhost , $DBuser, $DBpass,$DBName) or die("There was a problem connecting to MySQL. Please try again later."); if (!@mysql_select_db("nameofdatabase", $conn))//change this line "" { die ("There was a problem connecting to the database. Please try again later."); } return $conn; } ?> Notice that he has a variable there for the database name. |
|
||||
|
Someone's trying to hack my database! Username: usethelittertray!
|
|
||||
|
Sorry, mis-read it and misunderstood the confusion. Yeah, the database isn't being specified there, you're right.
__________________
Subtlety is my middle name... and first and last in case you didn't get the point. Last edited by LeadMagnet; 01-02-2008 at 09:19 PM. |
|
||||
|
Ok. Now when I go to my website and click on a link, I get a blank page. For eample go here HeartlandMeds.com, anesthesia systems support company, anesthesia machines, medical supplies and click on new products. See the blank page. What can be causing this? It's probably something to do with the database.
|
|
||||
|
there's nothing in the source code?
|
|
||||
|
That could indicate an error in your php code that's causing the script to fail. I recommend turning on error reporting while you're developing code to spot these kinda things.
__________________
Subtlety is my middle name... and first and last in case you didn't get the point. |
![]() |
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WordPress Database has Come Back! | Graphic Design Blog | Graphic Design Blog | 0 | 05-05-2008 03:00 AM |
| ISBN Database Solution | swtectonics | Graphic Design and Web Design Help | 3 | 05-03-2008 02:21 PM |
| database question | jwade_m | Programming Forum | 10 | 17-01-2008 12:13 PM |
| Database | Toon | Graphic Design Forum Announcements | 12 | 07-01-2008 03:43 PM |
| Computerlove™ - Connecting Creative Talents | Graphic Design Links | Graphic Design Links | 0 | 30-10-2007 01:20 AM |
| All times are GMT. The time now is 05:44 AM. |
