<b>REGISTER</b>

GFX-Sector - HTML, CSS


 
GFX-Sector » Coding Area » Webentwicklung » HTML, CSS » Such Funktion in html? » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites

HTML, CSS

Einfache Scriptsprachen und deren Layout mit HTML und CSS
Post New Thread Post Reply

Such Funktion in html?

     Deutsche Version  English version
Author
Post « Previous Thread | Next Thread »

serhad
Zauberstabbenutzer


Avatar von serhad

Registration Date: 15.02.2009
Posts: 13

Spacer
Such Funktion in html?

Such Funktion in html?

      

Also ich beschäftige mich seit 2Wochen mit html codes und css styles habe aber eine offene Frage kann man eine Such Funktion nur mit html machen ohne php? Weil ich von php keine ahnung habe Zunge raus

mfG serhad


Such Funktion in html? 25.04.2010 22:54 serhad is offline Search for Posts by serhad

Ephraim
Co-Administrator


Avatar von Ephraim

Registration Date: 17.03.2008
Posts: 4,369
Forums: (alle)

Spacer
      

Nein kann man nicht.
Eine Suchfunktion kannst du mit PHP, Javascript etc. machen.

lg

Such Funktion in html? 26.04.2010 00:47 Ephraim is offline Search for Posts by Ephraim

seyjo seyjo is a male
Ohnefiltergrafiker


seyjo hat kein Avatar

Registration Date: 21.01.2010
Posts: 367
Program: CS2

Spacer
      

quote:
Original von Vanichtah
Nein kann man nicht.
Eine Suchfunktion kannst du mit PHP, Javascript etc. machen.

lg


inkl msql und datenbankverwaltung - sprich, für einen anfänger sogut wie unmöglich ohne sich wirklich mit der materiee auseinander zu setzen



mein FotoBlog

Dev-Art - Fotoseite
Such Funktion in html? 26.04.2010 00:59 seyjo is offline Search for Posts by seyjo

serhad
Zauberstabbenutzer


Avatar von serhad

Registration Date: 15.02.2009
Posts: 13

Thread Starter Thread Started by serhad
Spacer
      

Okay danke



Such Funktion in html? 26.04.2010 08:10 serhad is offline Search for Posts by serhad

Fireball Fireball is a male
Boardchef


Avatar von Fireball

Registration Date: 11.11.2006
Posts: 16,355
Classing-Rank: GFX-Sector
Location: Bremen, Deutschland
Program: Adobe Photoshop CS2
Deviantart: oenismaster
Forums: (alle)

Spacer
      

Wie die anderen bereits sagten, ist es nicht möglich, rein mit HTML eine Suchfunktion zu schaffen.

Ich kann ja mal ganz kurz erläutern, wie du mit PHP eine ganz einfache Suche hinbekommen könntest:

Du hast den Inhalt deiner Seite (die Texte) in einer Datenbank (MySQL) hinterlegt.
Auf deinen Seiten machst du quasi sowas wie

php:
1:
$result mysql_query("SELECT * FROM homepage_texte");
.
Möchtest du jetzt eine Suche machen, verknüpfst du eine <form> in HTML einfach mit PHP; das sieht dann ca. so aus:
php:
1:
2:
3:
4:
5:
6:
7:
if ($_POST['suche']) {
  $suchergebnis mysql_query("SELECT * FROM homepage_texte WHERE text LIKE '".$_POST['suche']."'");

  while ($ergebnis mysql_fetch_array($suchergebnis) {
    echo $ergebnis['text'];
  }
}


So in etwa könnte das dann aussehen smile

!ACHTUNG!
Die Programmierung oben ist nur ein Testbeispiel und sollte so auf keinen Fall öffentlich gestellt werden, da man damit ganz leicht die Datenbank hacken könnte smile
Nur zur Veranschaulichung!



Such Funktion in html? 26.04.2010 15:07 Fireball is offline Homepage of Fireball Search for Posts by Fireball

serhad
Zauberstabbenutzer


Avatar von serhad

Registration Date: 15.02.2009
Posts: 13

Thread Starter Thread Started by serhad
Spacer
      

Dankeschön



Such Funktion in html? 28.04.2010 20:41 serhad is offline Search for Posts by serhad

CarTeL
Buntstiftmaler


CarTeL hat kein Avatar

Registration Date: 09.05.2010
Posts: 78

Spacer
      

Ich würde Dir raten alles erstmal local zu probieren dann auf deinem WebSpace hochzuladen.

Such Funktion in html? 09.05.2010 15:06 CarTeL is offline Search for Posts by CarTeL
 
Spacer
   
GFX-Sector
unregistered


 hat kein Avatar


Spacer

Have you enjoyed this topic?


If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.

After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.

In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.

Sign up now and enjoy the advantages as a registered member.

(This website will be ad-free after a complete free sign up.)

New Post 09.05.2010 15:06  
Tree Structure | Board Structure
Post New Thread Post Reply
GFX-Sector » Coding Area » Webentwicklung » HTML, CSS » Such Funktion in html?

Similar topics to Such Funktion in html?
Thread
[Frage] Suche ''A Sense of Purpose'' Font (Forum: Fragen & Probleme)
[Biete Leistung] HTML Umsetzung+Webspell anpassung (Forum: Archiv)
[Dienstleistung] Suche Signatur zu meinem Namen (Forum: Archiv)
Suche Gegner auf einem niedrigen Niveau (so wie ich^^) (Forum: Battle-Archiv)
Campa sucht nach 1,5 Monaten Gegner^^ (Forum: 1on1-Archiv)