Jump to content

Masna

Staff Alumni
  • Posts

    288
  • Joined

  • Last visited

Posts posted by Masna

  1. That's a bit of a shame, but I'm going to have to assume that the "Mac doctor" you saw isn't very up-to-date with his information library. I've been learning Mac to the best of my ability mostly by chatting with long time faithful users on the Apple discussions forums, and I'm yet to see anything of this sort. So far, I'm very very pleased with this machine (but just a bit upset that I'll have to wait another year, for the next release of Dreamweaver, Flash, and PS, so that those may run natively on the Intel chip; Rosetta is good, but not good enough). If I were you, I'd consider the new MacBook Pro, or even a desktop if you'd like to go all out. Also, if you do decide to buy a new computer from Apple, [b]get .mac![/b] You won't regret it. It comes with iDisk, Backup (you really needed this way back when), and much much more. Anyway, thanks for the response, and I do hope Apple will prove to the both of us that these machines are nothing short of godly.
  2. Hey everyone. I just bought an Intel-based 20 inch iMac. So far, I really love this thing. And I may never go back to Windows. I was just wondering, does anyone else here use Mac OS? And if so, what do you think of it? Thanks in advance.
  3. [!--quoteo(post=354518:date=Mar 13 2006, 02:54 PM:name=ADRlAN)--][div class=\'quotetop\']QUOTE(ADRlAN @ Mar 13 2006, 02:54 PM) [snapback]354518[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    ok i`ll search the manualfor the second question.as for the first i get this error if table dosen`t exist :

    "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\VertrigoServ\_htdocs\championships\table_exists.php on line 5
    Table exists becuase that was a count returned"

    if The table exists i get the correct answer.
    [/quote]

    shocerk mispelt SELECT. Just replace sleect with SELECT.

    [b]EDIT:[/b] And you'll have to change "table" to `1`. And don't forget to try my code out.
  4. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]the new file type that a user has already chosen from a form[/quote]

    This may seem a bit of a stupid question, but, "new file type that a user has already chosen". Why are you allowing users choose the file type? Use the file type they uploaded. Can the file type be changed, just like that? (Excuse me if I'm wrong, I barley ever work with the image functions of PHP)
  5. I'm a bit confused...are you trying to submit some variables in a form, to another form? If so, just do it as you regularly would, but implement the $_POST array of variables into the second form, as hiddens if need be.
  6. [!--quoteo(post=354508:date=Mar 13 2006, 02:42 PM:name=ADRlAN)--][div class=\'quotetop\']QUOTE(ADRlAN @ Mar 13 2006, 02:42 PM) [snapback]354508[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    and another question please.how do I read the value of a certain row of a certain field into a variable.

    I mean for example I have tablename named '1' fieldnames are 'a''b''c''d'.How do I get the value of fieldname c,where fieldname a='somecontent',into a variable named $test.I hope i was clear enough.
    Thanks a lot
    [/quote]

    To address your first question, just search the manual under MySQL. As for your second...

    [code]$query = ("SELECT `c` FROM `1` WHERE `a` = 'somecontent' LIMIT 1");
    $fetch = mysql_fetch_assoc($query);
    extract($fetch);
    echo $c; //will output 'c' content
    [/code]

    Good luck.
  7. [!--quoteo(post=354475:date=Mar 13 2006, 12:34 PM:name=adamdidthis)--][div class=\'quotetop\']QUOTE(adamdidthis @ Mar 13 2006, 12:34 PM) [snapback]354475[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    And would like to make it so that it only returns a result if there is something in the u.user_avater column.
    [/quote]

    That's not really necessary. Just process the results with PHP.
  8. Hey all! I'm currently working on a website that involves money, hopefully lots. Anyway, I NEED to protect against hackers in anyway I can, so I was wondering about...SQL Injection. How can one make SQL injections to a MySQL database, and how can I prevent it? Thanks in advance.
  9. Nevermind, JOIN was unecessary. I have another question though. If I have a query like this...

    [!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--][span style=\'color:blue;font-weight:bold\']SELECT[/span] table1.id, table2.id [color=green]FROM[/color] [color=orange]table1,[/color] table2 [!--sql2--][/div][!--sql3--]

    ...and I use mysql_fetch_assoc() to get the ids, how will I be able to tell them apart, I guess you could say.
  10. I need some help with JOIN. I've never used it before, and right now is the time. I have one table, where I store "contacts" for users. Then, I grab all these contact ids for the logged in user, and use IN() to get the information from a users table on these contacts. How can I grab all the information I need via one query, via JOIN? Thanks.
  11. [!--PHP-Head--][div class=\'phptop\']PHP[/div][div class=\'phpmain\'][!--PHP-EHead--][span style=\"color:#0000BB\"][?php

     

    [/span][span style=\"color:#007700\"]echo [/span][span style=\"color:#DD0000\"]\'test\'[/span][span style=\"color:#007700\"];

     

    if (![/span][span style=\"color:#0000BB\"]$var[/span][span style=\"color:#007700\"]){

    [/span][span style=\"color:#FF8000\"]//...

    [/span][span style=\"color:#007700\"]}

     

    [/span][span style=\"color:#0000BB\"]?][/span]

    [/span][!--PHP-Foot--][/div][!--PHP-EFoot--]

×
×
  • 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.