Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Why don't you just give him that translation script you said you were working on...?
  2. For me, this is how I stay fresh with PHP. My current job does not consist of any PHP programming, so it's a matter of me helping other people to keep up with my skills. I usually learn something new even when I answer the same type of question, although usually there are no 2 of the same exact questions. Do I get bored or fed up? No. There are many sections you can focus more on to enhance and diversify your skills. Besides, I personally try not to give the raw answer, I like to tell the OP how it's done and correct him or steer them in the right direction after they have given an effort.
  3. If you just good "web templates" you can find plenty of promising templates, even simple one. I'm sure you can find something you're looking for.
  4. Yeah that is pretty nifty. @corbin, they support PHP 5 on windows now
  5. You need to use mysql_fetch_assoc and then select a field like: $result = mysql_db_query($database, "select * from $table WHERE username = '$username1'") or die (mysql_error()); //echo $result; $row = mysql_fetch_assoc($result); echo $resul['field'];
  6. Hehe, it's ok redarrow, just a mis-communication, it happens...
  7. I think he was referring to scripting/programming languages...
  8. Are you sure redarrow...? What languages does your software translate to and from? What are you talking about, that's totally different than what the OP is asking for. I get your point, but it doesn't help anything...
  9. Why are you using an unsigned big int for an auto-incremented number? You're just wasting space. And you shouldn't be re-using the auto-incremented id. Do something similar to what FaT3oYCG suggested.
  10. Found this solution on another forum: Select * from table_name where column REGEXP '^[0-9]';
  11. Sorry I've never heard of an easy way to translate scripts, I don't think there is. You would have to do it manually.
  12. PHP OOP - Look at "method visibility".
  13. Think about this, if you try to get the results where id = 138 and id = 137 there will never be a result because the id is unique... WHERE id = '138' AND id = '137' Welcome
  14. Check out: MySQL - Union I'm not SQL expert but I think something like this should work: (SELECT * FROM forum_answer WHERE a_name = 'Ryan) UNION ALL (SELECT * FROM forum_question WHERE name = 'Ryan') LIMIT 0, 30
  15. SELECT id, img_src, copyright FROM videa WHERE id IN (10, 13, 22, 45, 50)
  16. redarrow, please stop spamming this thread, just modify your existing reply. The OP doesn't want these error visible on the live server, hence the start of this thread.
  17. eval(file_get_contents('file.php')); Hahaha
  18. In your first post you were using "username", I don't see that field in either table from your table structure...
  19. Do you mind posting your structure? We can give you feedback for your normalization level and how you can improve the structure.
  20. [quote author=jackpf link=topic=54859.msg1141499#msg1141499 date=1237759268] I had a go... I must say, I think it's overrated. I suppose the cool thing about it is you get a little sort of "legend" of all your files, but it's not really that much better than notepad's tabs. I still prefer notepad :P [/quote] I use multiple editors.  For small/quick edits I'll use VIM, for larger edits I'll use Gedit/notepad++ but for big projects, for example, if I'm working on the java web tools at work, I have to use Eclipse.  Like stated multiple times in this thread, it mostly comes down to preference, not necessity.  And again, most of us are giving input from the perspective of maintaining web sites, which are relatively small compared to corporate or enterprise scaled projects...
  21. I think you're making this harder than it is. Let me give you an example. "testing.php" is the page you want to go to. $row_artists['playlist_music']="brian adams"; echo $_GET['music']; ?>
  22. So did you get the query working? For a table you need to do something like: </pre> <table> { ?> </
  23. Maq

    Time/Date

    First of all, what are you trying to do? There's probably a much easier way. There is a build in PHP calendar, why not use that? http://us3.php.net/manual/en/ref.calendar.php
  24. Echo out your query to see what's in it: $q = "INSERT INTO photo (description, source, thumb, category,) VALUES('$description', '$source', '$thumb', '$category')"; echo $q; //echo it out to see what's actually in it
  25. if(isset($_POST['submit'])){ $to = $_POST['to']; $subject = $_POST['subject']; $message = $_POST['message']; $headers = "headers"; if(mail($to,$subject,$message,$headers)) { echo "mail sent"; } else { echo "error occured"; } } ?> </pre> <form action="<?php%20echo%20%24_SERVER%5B'PHP_SELF'%5D;%20?>" method="POST"> To: Subject: Message: <
×
×
  • 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.