Jump to content

fusionpixel

Members
  • Posts

    64
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fusionpixel's Achievements

Member

Member (2/5)

0

Reputation

  1. @chronister I think we both are in the same boat here, I am familiar with all the terms you describe and I can do either cookies/sesion/database sessions but more than suggestions on what to do I was looking more on what is the best method. since I can defenatelly apply any of them I just need conformation from an expert on what is the perfect solution. Thanks again for your comments @phpdragon Thanks for the link! Anyone else who might have some tips are welcome
  2. What is the best way to handle security in regards to CreditCard transactions? My form does 5 steps 1. Show form (validate JS) 2. Validate (PHP) 3. Confirm by client 4. Send to gateway 5. Receive response from gateway My concern is step 2-4 because some how I need to have access to sensitive information (creditcard, exp date) while the user confirms from page to page before sending to the gateway. Any ideas? of course hidden fields are out of the question.
  3. So you would add more fields instead of more rows in a different table? not sure if that is practical unless I am missing something important here
  4. because the whole row gets dumped to the user in a textarea where the user edits everything there. While it works I am thinking of creating a more elegant solution where the user can order each qa/add/delete/publish which I started with its own table...
  5. I am creating a basic CMS and everything is working flawlesly but there is a new catch. One of the sections of the CMS will be a QA section where the user will be able to add/edit/delete basic QA section. for example something like this would be rendered on the HTML Q: blah? A: ander to blah I have the QA inside a single cell and I know it is awful so I am debating what would be the best way to handle this. My first thought is to create a table and add the Q and A rows as necessesary but keeping it independent from the whole QA. but I am sure there is a more elegant way to handle this. Of course I don't want to fix what is not broken but I really want to improve what is already fixed. TIA.
  6. haha! Are you kidding me? one small insignificant error without first testing. that is great!
  7. One last comment, on this line while ($row = mysql_fetch_assoc('$result')) it should be while ($row = mysql_fetch_assoc($result)) Thanks again...
  8. Ah! Yeah that makes sense and seems logical enough for me.... Thanks so much I really appreciate it.
  9. Ah good point... the reason why I need the first query is this [GROUP TITLE] -child element -child element -child element [GROUP TITLE] -child element -child element -child element -child element -child element [GROUP TITLE] -child element -child element -child element without the first query I would get this: -child element -child element -child element -child element -child element -child element -child element -child element -child element -child element -child element Thanks for your help and your suggestions...
  10. Right, and that is why I am looking for help since I dont know exactly how to combine them. At least I dont know of any specific logical way to do it. This is what happens.. 1. get list of groups 2. with the first group loop inside the first group and any item that matches the group name from the first table show it 3. loop I am thinking that I could save the info in an array and then access it through there.... but only hitting the database once per table.
  11. Hi all, I have the following loops that work as expected: $firstQuery = " SELECT bgroup.group FROM bgroup"; $firstResult = mysql_query ( $firstQuery ) or die ( mysql_error() ); while( $firstRow = mysql_fetch_array( $firstResult )) { echo "<h2>". $firstRow['group']." </h2><br />"; $query = " SELECT bmarks.name, bmarks.group, bmarks.address FROM bmarks LEFT JOIN ( bgroup) ON (bgroup.group = '".$firstRow['group']."' ) WHERE bmarks.group = bgroup.group ORDER BY bgroup.group"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ echo "<a href=\"" .$row['address'] ."\" target=\"_blank\">". $row["name"]. "</a>"; echo "<br />"; } } But I am a much better way to do this rather than having to query the database everytime the first loop kicks in. I have a small database at the moment but I cant imagine how much overload it would be with couple of hundred of items in the DB. My DB consists of 2 tables bmarks table contains all the bookmarks (address/description/info) bgroup table contains a list of groups that beling to the bmark table Thanks
  12. Thanks for the confirmation and the idea to use a DB to add the information.
  13. If I add my Keywords and Metatags on the fly with a PHP include, would that breat any search engines from reading them? Me says not but not 100%sure TIA
  14. Humm, that seems interesting. I am familiar with regexp and will look more into that. At least with the reading I have made to the site you point me out to I have adjusted my template from <? echo header(); ?> to <?=$header;?> it think it will be easier for people to remember just to type <?=$header;?> but we will see. I will look into how to replace the {} for actual content. THX
  15. I am creating a simple site that will be edited by several people and I would like to set up a simple sistem similar to what templates use {header} instead of header() I was looking at some template solutions but they are too big for what I am trying to acomplish. so in short I was wondering what is the best way to convert header() into {header}. Is there any simplified way to do it? TIA
×
×
  • 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.