If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > ok

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-19-04, 13:15
kicker22 kicker22 is offline
Registered User
 
Join Date: Apr 2004
Location: Michigan
Posts: 44
ok

here is my problem..hoping someone can help out..

When I try this, it works!
<?php
//Database connetion
mysql_connect("localhost", "root", "") or
die("Could not connect: " . mysql_error());
mysql_select_db("cis");

$dbQuery = "SELECT * ";
$dbQuery .= "FROM news ";
$dbQuery .= "ORDER BY dateprint DESC";
$result = mysql_query($dbQuery) or die("Couldn't get file list");

?>

but when I try this, it doesnt work.. though it works at my work's web server, which I think has the old version of mysql/php..

//Database connetion
require_once('db.php');

$dbQuery = "SELECT * ";
$dbQuery .= "FROM news ";
$dbQuery .= "ORDER BY dateprint DESC";
$result = mysql_query($dbQuery) or die("Couldn't get file list");

?>

oh this is db.php:
<?
//Connect to the database paramiters
mysql_connect("localhost", "root", "") or
die("Could not connect: " . mysql_error());
mysql_select_db("cis");

?>


anyone has any clue??

let me know..thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On