Jump to content

Pachman3000

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Pachman3000's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi guys, can someone please take a look at this and help me adjust the script so it will create new columns for each heading and value. For example, I would like the csv to look like this: Name Email Bob bob@yourdomain.com Currently, all the values are just listed in one column. $db_handle = mysql_connect($server, $user_name, $password); $db_found = mysql_select_db($database, $db_handle); $result = mysql_query("SHOW COLUMNS FROM ".$table.""); $i = 0; if (mysql_num_rows($result) > 0) { while ($row = mysql_fetch_assoc($result)) { $csv_output .= $row['Field']."\t "; $i++; } } $csv_output .= "\n"; $values = mysql_query("SELECT * FROM ".$table.""); while ($rowr = mysql_fetch_row($values)) { for ($j=0;$j<$i;$j++) { $csv_output .= $rowr[$j]."\r\n "; } $csv_output .= "\n"; } $filename = $file."_".date("Y-m-d_H-i",time()); header("Content-type: application/vnd.ms-excel"); header("Content-disposition: csv" . date("Y-m-d") . ".csv"); header( "Content-disposition: filename=".$filename.".csv"); print $csv_output; exit; Thank you for the help.
  2. Thanks, however, is that my only option?
  3. Right now the template is constant throughout the site. The HTML for it is located in the top and bottom shell of the site. So when I create a new page it automatically assigns that template to the new page.
  4. No. I have the template already created if that's what you're asking?
  5. An example I can think of right now similar to what I'm trying to do is Twitters. Home page in comparison to the sign up page
  6. Hey guys, Newbie here, trying to do some minor updates to my site. I want to use a different layout for one page of my site that has a signup form. I'm not sure where to start, since the layout is constant and called from the shells for each page. Any help would be great!
  7. Hey Guys, I'm using this CSS for my button rollovers. .lrollover a{ cursor:pointer; display:block; margin:auto; outline:0 solid transparent; text-indent:-9999px; } #l_button a { background:url("images/btn_login.png") no-repeat scroll left top transparent; height:32px; width:100px; } #l_button a:hover { background-position:left -32px; } I can't seem to get these rollovers to work for the submit buttons on my forms. I've been playing around with this <input type="submit" value="" class="lrollover" id="l_button"/> Any help would be awesome!
  8. Hey Guys, I'm using this CSS for my button rollovers. .lrollover a{ cursor:pointer; display:block; margin:auto; outline:0 solid transparent; text-indent:-9999px; } #l_button a { background:url("images/btn_login.png") no-repeat scroll left top transparent; height:32px; width:100px; } #l_button a:hover { background-position:left -32px; } I can't seem to get these rollovers to work for the submit buttons on my forms. I've been playing around with this <input type="submit" value="" class="lrollover" id="l_button"/> Any help would be awesome!
  9. Hey Guys, I'm using this CSS for my button rollovers. .lrollover a{ cursor:pointer; display:block; margin:auto; outline:0 solid transparent; text-indent:-9999px; } #l_button a { background:url("images/btn_login.png") no-repeat scroll left top transparent; height:32px; width:100px; } #l_button a:hover { background-position:left -32px; } I can't seem to get these rollovers to work for the submit buttons on my forms. I've been playing around with this <input type="submit" value="" class="lrollover" id="l_button"/> Any help would be awesome!
×
×
  • 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.