Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. Welll here [code]mail("$username", "$title", "$body")[/code] you're aren't even passing your headers and you don't need to double quote your variables try this [code]mail($username, $title, $body, $headers)[/code]
  2. yeah this is backwards...as fenway said [QUOTE] catid        subcatid item        couches item        beds item        desks item        refrigerator event      tickets event      concerts event      clubs event      sports event      parties event      charity events rental      sublets rental      parking [/QUOTE] go the other way [CODE] category      parentCategory item            root rental          root event          root couches item   beds item desks item refrigerator item tickets event concerts event clubs event sports event parties event charity events  event sublets rental parking rental [/CODE] and suppose couches had two sub categories....making a 'sub-sub' just had them as category - parent leather    - couches fabric      - couches there's no levels it's just referencing basketball - sports birthday - parties 21st birthdays - birthday and so on
  3. when you're laying this DB structure out just completely get the word sub categories out of your head all you need to think about is that every category has a parent [quote=fenway] You're simply relating two UID, one of the child category, one of the parent category.  You can do this recursively forever, so it doesn't matter how many levels down you go. [/quote] exactly for instance you have category 1 category 2 category 3 category 4 category 5 in another column you have their parents so if category 5 is a parent of category 3..... it's  a 'sub-category' of 5
  4. I think fenway means to put all the categories whether a sub cat or not into the same table and have a column with it's parent category something like catID  |      catName      |  catParent  |    specType   0            academics                        root              regItem   1            anAcademicsubCat            academics              regItem   2            aSubSub                        anAcademicsubCat              regItem I hope that makes sense
  5. [quote]switch on your errors[/quote] good point...
  6. try redoing this line to look like this then....that's the only last thing I can think of [code]echo "<option value='" . $row['font_name'] . "'>" . $row['font_name'] . "</option>"; [/code] or [code]echo "<option value='{$row['font_name']}'>{$row['font_name']}</option>";[/code] both are the exact same thing....just depends on how YOU want it to look.....code-wise they only real significant change I did though was to add quotes to your key [quote]$row[[size=12pt][color=red]'[/color][/size]font_name[size=12pt][color=red]'[/color][/size]][/quote]
  7. you probably have an SQL error or return error redo you're $result line to look like this [code]$result = mysql_query("SELECT `font_name` FROM `fonts`") or die(mysql_error());[/code] you could have mispelled your column name in the Database or somthing like that
  8. [quote]I am looking for something similar to a C structure, where data is tightly packed, and names for the elements do not need to be stored. [/quote] Well, you don't HAVE to store the names of the elements I think the default structure of an array is sorted by index unless one happens to have a stringed key. I don't know if I'm on the right track exactly to what you're asking but.... if you don't want an associative array, one with string indeces and want to avoid the 'repeats' maybe have a shema element at the beginning of the array to aesthetically please you're coding....or whatever but overall...you don't need the keys and as for your question about adding to the end of the array it should still work
  9. you can either use this PHP line on you're download page [code]header("Content-disposition: attachment; filename=yourfile.xls");[/code] or you can go to your Apache http.conf file and add this line to the bottom of it.........and restart the server [code]AddType application/x-excel xls[/code]
  10. maybe I'm understanding this wrong....are you appending the non paying user info inside the same table as the paying users' info? another question [quote] what it is that a user can only pay for the service once they activate there account then they login then pay so that why an id is there ok. [/quote] ..what? so do they pay for the activation and then pay for something else when they ARE activated? I'm lost
  11. Well, I guess if you're not going to have anything else on the error page other than......the 404 you could just flat out redirect to ajflkjdslfkjsdlkajflakf.html which I'd assume doesn't exist but you'd do it through HTML and not a PHP function....meaning echo out [quote] <META http-equiv="refresh" content="0; URL=somerandomarrayofletters.html">[/quote]
  12. Go to the top of you're install file and put this [code] $permit = 0777; chmod("../conf_global.php", $permit); chmod("../cache", $permit); chmod("../cache/lang_cache/", $permit); chmod("../cache/skin_cache/", $permit); [/code] when you're done installing make a [size=10pt][b]copy[/b][/size] of you're install.php file erase everything in it and replace with this [code] $permit = 0644; chmod("../conf_global.php", $permit); chmod("../cache", $permit); chmod("../cache/lang_cache/", $permit); chmod("../cache/skin_cache/", $permit); echo "Permissions Changed Back to " . $permit; [/code] and then of course open that copy in your browser
  13. If you're trying to create you're own Custom 404 Pages, you'll have to edit the 404.shtml in your Apache or IIS configuration Most of the time you can just have all you're error pages do the same thing and just send the error message to one of you're PHP scripts along with whatever information you want. But you have to do that in that 404.shtml file That is if that's what you're trying to do
  14. you should just be able to have a defaulted number pattern like 00000000 and then just extract it like you are so you'll never have a 4 character line
  15. Try this [code]SELECT CONCAT(firstname, ' ', lastname) As fullname FROM database GROUP BY fullname[/code]
  16. var_dump is a print statement in itself...you can't print a print object if that makes sense I'm surprised you haven't mentioned an error or something but anyway... var_dump(headers_list()); should be sufficient as well as var_dump(headers_sent());
  17. just switch the order of these two and it should work require_once("wwc_const.php"); require_once("wwc_functions.php"); just require the funcitons.php first and then const.php
  18. ...what...? so according to you, you want 99992524 to be formatted to 9999 25 24? and use the same code to change 62500 to 6 25 00 am I correct?
  19. look at the onUnLoad function for Javascript and have it just send a logout command to your login.php script, which I'm assuming you have you're logout function on that script should destroy the session for you, if you have it written that way
  20. the [code=php:0]time()[/code] function returns [quote]the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).[/quote] so if you wanted to go 60 seconds from now you'd say [code]time() + 60;[/code] lets' say you wanted to go and hour later well, an hour is 60 minutes...and you know one minute is 60 seconds so, [code=php:0]time() + (60*60)[/code] so in your case you're going [code=php:0]time() + 60 //One minute time() + (60*60) //One Hour time() + (60*60*24) //One Day time() + (60*60*24*5) //Five Days[/code] hope that helps
  21. Zane

    onClick

    if you're going to use CSS, there's no use direct linking to the document.bgcolor property just use the onClick to set the body class respectively [code]<input type="radio" name="bgcolor" onClick="document.body.class="dark">[/code]
  22. use document.write("Your HTML"); but do it line for line, or it'll end up all on one line in your code
  23. because you're using the wrong syntax do this [code]${"tab".$i++} = $row_RS['name'];[/code]
  24. well..what's not working about it...any errors.. or is it not doing what you want it to...please explain
  25. [quote author=hackerkts link=topic=99761.msg392995#msg392995 date=1152263436] He could access that code by going to the link. Am I right ? [/quote] your right...but he's wanting the button to acces it though....dynamically
×
×
  • 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.