Jump to content

DKY

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

DKY's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. There are different learning styles (reading, listening, interraction) and I do not learn by reading, instead my learning style is through interraction. So maybe I'm wrong but I understand that to be the point of a forum board, for users who learn through interraction so maybe someone can help me figure out how to pass a correct function? Thanks in advance!
  2. I had just noticed I was pulling up the wrong page. I have now fixed the code and the quote in the first post. Sorry about that.
  3. I'm trying to connect to two databases and I'm having problems with the following code. I googled to come up with this but can't figure out the errors I'm getting. $connection="localhost"; $username="user"; $password="password"; $database1="dbone"; $database2="dbtwo"; $db1 = mysql_connect($connection,$username,$password) or die(mysql_error()); $sel1 = mysql_select_db($database1, $db1); $query1 = "SELECT * FROM TBLUSERS"; $result1 = mysql_query($query1, $db1); while($nt1 = mysql_fetch_array($result1, $db1)) { } $db2 = mysql_connect($connection,$username,$password) or die(mysql_error()); $sel2 = mysql_select_db($database2, $db2); $query2 = "SELECT * FROM TBLPD20101101"; $result2 = mysql_query($query2, $db2) or die(mysql_error()); while($nt2 = mysql_fetch_array($result2, $db2)) { } The error I get is
  4. Hiding would have been too much and I wouldn't want links to someone's page out on the net but just to give an idea of what I was doing, I was trying to use header in a nested IF statement. ob_start(); worked! I just put it at the top of my page and I can use the header in my nested if! That's awesome! Thanks for the help though! I wonder if I need an Exit or not....
  5. I can PM it.....  If that's okay
  6. I'm trying to put it in an else of an if then statement.  Can I do that?  I thought I could but if it has to be at the top of a page then I can't, right?
  7. I'm trying to use header like so [code]header('Location: http://www.example.com/');[/code] but it doesn't work.  I look in my address bar and it is still the address of the original file.  But if I put something like [code]echo "yo";[/code] it echos out the response.  I don't get it, help???
×
×
  • 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.