Jump to content

TheAlmightyOS

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About TheAlmightyOS

  • Rank
    Newbie
  1. I thought it might be that I missed the > in $field-name but that does not work. Changing it to $field->name gives me the same result. I don't even know if I am going about this the right way.
  2. I have been staring at that line for hours and googling for an answer. I know I screwed up that line but I can not figure out where. I do know it is something stupid and it is going to smack me in the face hard when I find it. BTW, I am VERY new to php and programming in general. I'm a server admin, not a programmer. Don't laugh too hard.
  3. I want to say I am almost there. I can connect to the DB, I have a query stored and it runs fine and I can output the result into a table. But this is where I have hit a wall. Code Below: $conn = mysqli_connect($db_host, $db_user, $db_pwd, $database);$result = mysqli_query($conn,$query) or trigger_error($querry . ' - has encountered an error at:<br />' . mysqli_error($conn));$fields = mysqli_fetch_fields($conn);$field_count = mysqli_num_fields($conn);echo '<table border="1" style="width:100%">' . "n" . '<tr>';$i = 0;foreach($fields as $field){ if(++$i == 1) { echo '<th c
  4. Thank you for the straight forward answer. I think I know how I am going to move forward on my project now. Thank you. New here (obviously), is there a "solved" link or something I need to push?
  5. Hello all. I have come here to the source of web standards to understand PHP and the API's it uses to access databases. From my reading (why yes, I do know how to use google ) it seems both MySQLi and PDO are acceptable methods. Other than the boatload of "experts" on various forums and blogs shouting that MySQLi is depreciated, is there any real indication that it is? Now I don't want to start a MySQLi Vs PDO thread. I just want to know if MySQLi is still an acceptable API to use
×
×
  • Create New...