Jump to content

ahmed17

Members
  • Posts

    59
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ahmed17's Achievements

Member

Member (2/5)

0

Reputation

  1. but how i can use it to display news ?
  2. display news in page like this [img]http://www.mo3afa.com/dros/mo3afaup/upload.php?aa=11608365104069[/img]
  3. use WampServer  its good to mange all libary and support all libary [url=http://ovh.dl.sourceforge.net/sourceforge/wampserver/wamp5_1.6.5.exe]http://ovh.dl.sourceforge.net/sourceforge/wampserver/wamp5_1.6.5.exe[/url]
  4. when i uer selct the titlt then he will move to page where the subject of news display so i want the subject display in javascript page not in normal page  and the way to do that ?
  5. thanks, i want to display the subject of news into javascript page
  6. hello.., i create news script to display news but i want to display the subject of news into javascript page and there's problem ,if user select the title of news how i can make select title tie to its subject here's script 1st:database [code]CREATE TABLE `news` ( `id` TINYINT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `title` VARCHAR( 50 ) NOT NULL , `subject` VARCHAR( 51 ) NOT NULL ) ENGINE = innodb;[/code] php code: ======== [code]<!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head>       <title>Title here!</title> </head> <body> <?php $host="localhost"; $user="root"; $pass=""; $database="news"; $table="news"; $link = mysql_connect('localhost', "$user", "$pass")or print"failed connection";         mysql_select_db($database,$link)or print "not exists";         $_sql="INSERT INTO $table(title,subject)VALUES('my test script...news','this is my topic')"; $result=mysql_query($_sql,$link); /*if($result) {     echo"sucess entery data"; }else{     echo"failed entery data"; } */ $query=("select * from $table"); $result= mysql_db_query($database,$query,$link); ?> <table width=100% height=100> <tr> <td bgcolor=iceyellow> <marquee direction="right" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=4">   <? while ($row = mysql_fetch_assoc($result) )           {                           $title  =$row['title'];                           $subject =$row['subject'];                           echo "<a href='inselect.php?title=$title'>.::::.$title</a>";           }   ?> </marquee> </td> </tr> </table> </body> </html>[/code]
  7. why ? i need help ???
  8. hi , i want to make box like this ? [img]http://www.mo3afa.com/dros/mo3afaup/upload.php?aa=116051157197[/img]
  9. thanks amalosoul  :)  i know javascript do that but how i use it with this script  to make wat i do ? ?
  10. hi guys, i am try to make news script  display news in my database  aso i make script but i need some help...i want data display flow in one row using marquee  and when i  press on the title  as a link  display the subject in new window [code]<!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head>       <title>Title here!</title> </head> <body> <?php /* ========================================================= CREATE TABLE `news` ( `id` TINYINT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `title` VARCHAR( 50 ) NOT NULL , `subject` VARCHAR( 51 ) NOT NULL ) ENGINE = innodb; ========================================================= */ $host="localhost"; $user="root"; $pass=""; $database="news"; $table="news"; $link = mysql_connect('localhost', "$user", "$pass")or print"failed connection";         mysql_select_db($database,$link)or print "not exists";         $_sql="INSERT INTO $table(title,subject)VALUES('my test script...news','this is my topic')"; $result=mysql_query($_sql,$link); if($result) {     echo"sucess entery data"; }else{     echo"failed entery data"; } $query=("select * from $table"); $result= mysql_db_query($database,$query,$link); while($row=mysql_fetch_array($result)) {   echo"<br>";   $move=$row['title'];   echo "<marquee>$move</marquee>";     echo"<br>";   echo $row['subject'];     echo"<br>";   } ?> </body> </html>[/code]
×
×
  • 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.