ahmed17
Members-
Posts
59 -
Joined
-
Last visited
Never
Everything posted by ahmed17
-
plz help me ?
-
but how i can use it to display news ?
-
display news in page like this [img]http://www.mo3afa.com/dros/mo3afaup/upload.php?aa=11608365104069[/img]
-
Installing GD Library with PHP in Windows
ahmed17 replied to msohlberg's topic in PHP Installation and Configuration
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] -
important help ???
-
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 ?
-
help me ?
-
thanks, i want to display the subject of news into javascript page
-
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]
-
hi , i want to make box like this ? [img]http://www.mo3afa.com/dros/mo3afaup/upload.php?aa=116051157197[/img]
-
what's the new to do ?
-
thanks amalosoul :) i know javascript do that but how i use it with this script to make wat i do ? ?
-
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]
-
.........?
-
_i am install Apache ...then install Apache and IIs but not work _os:windows sp2 _PHP Version 4.3.0
-
[img]http://www.arbs2day.com/images/imgs/download.php?file=2b0c4cc2be26f6df8d91fbfce571d32d[/img] when i test any script on localhost and press to any link this wat appear(cancel_save_open)
-
hello,i want to close my site when i determine the desire time...how i can programming this idea
-
..............?
-
code after changes ..but not work [code] <?php /* ============================================================= */ /* */ /* */ /* Author:eng:ahmed _bohoty */ /* */ /* */ /* */ /* ============================================================= */ ?> <html> <head> <title>The Internet Joke Database</title> </head> <body> <?php $host="localhost"; //the name of localhost $user="ahmed17"; //username $pass="123456"; // mypasswd $database="ahmed17"; //database name which created $table="jokes"; // table name //******************************************************** if (isset($addjoke)): // If the user wants to add ajoke // Connect to the database server $link=mysql_connect($host,$user,$pass)or print"failed connection"; // Select the jokes database mysql_select_db($database,$link)or print"Could not open database"; ////////////////////////////////////////////////////////////////|\ /*$sql = "CREATE TABLE Jokes ( \\ ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, \\ JokeText TEXT, \\ JokeDate DATE NOT NULL \\ )"; \\ if ( @mysql_query($sql) ) { \\ echo("<p>Jokes table successfully \\ created!</p>") \\ } else { \\ echo("<p>Error creating Jokes table: " . mysql_error() \\ . "</p>"); \\ } \\ ///////////////////////////////////////////////////////////////*/ //****************************************************************************** // If a joke has been submitted, // add it to the database. if($_POST['submitjoke']=='SUBMIT') { $sql="INSERT INTO $table SET JokeText='$_POST['joketext'] ',JokeDate='CURDATE()'"; if(mysql_query($sql)) { print("Your joke has been added.</p>"); } else { print("Error adding submitted joke".mysql_error()); } } //****************************************************************************** print"<p> Here are all the jokes in our database:</p> "; //****************************************************************************** // Request the text of all the jokes $result=mysql_query("SELECT joketext FROM $table"); if(!$result) { print"<b>Error Performing Query</b>".mysql_error(); exit(); } //****************************************************************************** // Display the text of each joke in a paragraph while($row=mysql_fetch_array($result)) { print("<p>" . $row["JokeText"] . "</p>"); } //****************************************************************************** // When clicked, this link will load this page // with the joke submission form displayed. echo("<p><a href='$PHP_SELF?addjoke=1'>Add aJoke!</a></p>"); //****************************************************************************** endif; ?> <form action="<?=$_SERVER['PHP_SELF']?>" method="post"> <p>Type your joke here:<br /> <textarea name="joketext" rows="10" cols="40" wrap></textarea><br /> <input type="submit" name="submitjoke" value="SUBMIT" /></p> </form> </body> </html>[/code]
-
no jokes added to my database here's the code after changes [code]<!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>Title here!</title> </head> <body> <?php $host="localhost"; //the name of localhost $user="ahmed17"; //username $pass="123456"; // mypasswd $database="ahmed17"; //database name which created $table="jokes"; // table name $link = mysql_connect('localhost', "$user", "$pass")or print"failed connection"; mysql_select_db($database,$link)or print "not exists"; $sql="SELECT * FROM $table"; $result= mysql_db_query($database,$sql,$link); $num=mysql_num_rows($result); print"<li>number of fields: $num<br><br></li>"; echo"**********************<br>"; while($row=mysql_fetch_array($result)) { echo $row['id']; echo"<br>"; echo $row['JokeText']; echo"<br>"; echo $row['JokeDate']; echo"<br>"; echo"**********************<br>"; } ?> </body> </html>[/code]
-
I AM SORRY ..BUT I MADE ALL CAHNGES BUT NO DATA ADDED TO MY DATABASE
-
thanks wildteen.&.Crayon :) i try more but no benfit...wat i do ? if u can test script and tell me if script work or not ..and give me afree server which support php good