Jump to content

eduard

Members
  • Posts

    2,375
  • Joined

  • Last visited

Everything posted by eduard

  1. Sorry, I´lll find that f... error!
  2. k= a value for a column ´Site_Name´ $cell I don ´t know (copy & paste!)!
  3. That´s the s..... I don´t see the difference (especially when it´s dark) between ) and } good! Thanks anyway!So could you explain clearly to me please when you get (, { and [?
  4. But if I close it; I get also an error! $result = mysql query("SELECT * FROM links)
  5. Thanks very much, prof!Wat about this code (stiill errors!) <html><head><title>MySQL Table Viewer</title></head><body><?php$db_host = 'localhost';$db_user = 'root';$db_pwd = 'usbw'; $database = 'website';$table = 'links'; if (!mysql_connect($db_host, $db_user, $db_pwd)) die("Can't connect to database"); if (!mysql_select_db('website') die("Can't select database"); // sending query$result = mysql_query("SELECT * FROM linksif (!$result) { die("Query to show fields from table failed");} $fields_num = mysql_num_fields($result); echo "<h1>Table: {$table}</h1>";echo "<table border='1'><tr>"; // printing table headers for($i=0; $i<$fields_num; $i++) { $field = mysql_fetch_field($result); echo "<td>{$field->name}</td>"; } echo "</tr>\n"; // printing table rows while($row = mysql_fetch_row($result)) { echo "<tr>"; // $row is array... foreach( .. ) puts every element // of $row to $cell variable foreach($k as $m) echo "<td>$cell</td>"; echo "</tr>\n"; } mysql_free_result($result); ?></body></html> I assume the errors are here: $fields_num = mysql_num_fields($result);, but I don´t understand them! This is the echo: Table: {$table}"; echo ""; // printing table headers for($i=0; $i<$fields_num; $i++) { $field = mysql_fetch_field($result); echo ""; } echo "\n"; // printing table rows while($row = mysql_fetch_row($result)) { echo ""; // $row is array... foreach( .. ) puts every element // of $row to $cell variable foreach($k as $m) echo ""; echo "\n"; } mysql_free_result($result); ?> {$field->name} $cell
  6. Pffffffffff! Same reply as previous! WITH PHP. WITHOUT MYSQL REPLY: YES OR NO PLEASE!
  7. I´m sorry, but have you read my question carefully? (I don´t think so: IMAGE OF DATABASE ON HOMEPAGE (E. G. GOOGLE)!, WORKING DATABASE IN PORTFOLIO!
  8. Is there a possibility to show an image of a database on the homepage of my website, creating a link from thst imsge to a working database in my portfolio without using phpmyadmin? Can I use MySQL or instead of using php I have to learn another programming language?
  9. Thank you very much! Can you be more specific about the HTML table please?
  10. Can you say:a website for a client must be finished, your own never will be?
  11. But that I can find out (easily)! My question however was:: ¨something TOTALLY NEW!´
  12. What do I´ve to learn now? I know I´ve still to learn a lot in HTML and CSS! But what´s relly new to me as I want to improve my skills as a web designer? I´ll have a look now at the tutorials! CSS3? HTML5? of course! But I´d like something totally different!
  13. Now a very difficult question: when is a website finished (it can always better!)
  14. Wait and see (but it always can better!)!
  15. Pffffffffffffff-you´re right! I´ve read it, but forgot it (human?)
  16. You ALL say that my website is out dated (I agree)! But NO-one says what changes are necessary?
  17. I read it now carefully! The best reply to this thread!
  18. Your best comment so far! I agree with you that I´ve to learn a lot, but another time: Argentina, Europe, Asia, etc. aren´t that advanced as the U. S. A. e. g. in the supermarket here they have music which was populair in the 1980´s in Europe!Fortunately, the world isn´t only the U. S. A.!
  19. Thanks! Sorry, I don´t agree with you totally! It´s a fact that my website is out of date! However, I prefer a website like this much more than all that ´copy and paste´ stuff you see today on the web! Or I like a house made of wood, I don´t like a house full with artificial rubbish!
  20. .... anyone would PROBABLY say the same thing!Well, I´m waiting!
  21. I hope my clients aren´t like your comments (although they are helpful!): they want a result in 5 seconds!
  22. I suppose you only KNOW The States! However, thanks anyway!
  23. I do it both ways!Now, there´s an experienced web developer in the hostel I now stay who helps me sometimes!But I design the website myself!And - again - Argemtina isn´t like the USA (in no way!). Things work very different here!
×
×
  • Create New...