Corey
Members-
Content Count
222 -
Joined
-
Last visited
About Corey
-
Rank
Super Member
-
Php News Script how to make news script that uses MySQL writen in PHP
Corey replied to Corey's topic in Programming
yes afkors;) -
Did you play this game....it's awsome!!!..better than NFS U2 10 times...well..it's not realistic but the fun is garantied...you can drive almost everywhere with a speed of 800 mph...you can paint your car how ever you want (u can make it look 10 times better than in NFS U2 )..this game rulz...try it and u'll see;)
-
i finaly got Photoshop CS2...i didn't had much time to try it out,,,but it works...fine..and i didn't find any new things yet...but it seems OK;)
-
i have Sony digicam with 5.0 megapixels here's the picture
-
tnx everyone ..btw..do you know some simple script that can write the content of some folder..example- Downloads -1.rar -3.rar -5.jpg...
-
i have 2 questions about PHP...please don't answer like "use google"...or something...because i tried and didn't find anything..so1.example..i have a varible called $var and it contains 50 characters..so how can i write only part of them (1,2,3,20)?2.example like the one before... i have a varible called $var with 50 characters..how can i write the first /second /third.. charachter from the $vartnx;)
-
.,...quite good if this is your first time;)...you should chage the blue to some oher color...ti doesn't fit there...and why didn't you upload the site on the net...?
-
Corey started following My First Website Design
-
well it depends... ...On many motherboards...you don't have to chagne BIOS ...to OC.,.. on some of them..u have to download a modded version of BIOS...to OC..
-
1.i would take a socket 939 MBO...socket A is getting too old;)2.why don't you take NEC 3540...it' very cheap (DVD-/+ RW) 3.ok...kingmax is OK too 4.take SATA hard;) 5.ok 6.that card is too old (i have it )...take 6600GT (PCI-E) and Xp is NOT JUNK!!!...at least it's better than 98...
-
No!!....that's crazy...AMD is gonna put all new desktop CPUs on 939...Socket 940 needs ECC registered memory...which is expensive...and not that fast as ordinary memory....so no way they are gonna put all new CPUs on socket 940;)
-
hmmm.... try again... http://forums.xisto.com/no_longer_exists/ ...my account has been susspended...but now it's online again
-
...what..? AMD dual core (X2),...eats Intel Pentium D....for brekfast.. take a better look at the tests;)
-
In this tutorial i will explain how to make a simple script writen in PHP...that uses .txt file. <?php// script writen by tema$a = fopen ("count.txt", "r"); // 1.$bytes = 4; $x = fread($a, $bytes); // 2.$y=$x + 1; // 3.$fp = fopen ("counter/count.txt", "w+"); // 4.fwrite ($fp, "$y"); // 5.fclose ($fp); // 6.echo "Posjeta:$y"; // 7.?> 1. selecting a file which the script is going to use for counting visits. 2. reading from the script 3. adding 1 to the number in the .txt file. 4. opening the .txt file again 5. writeing the new number in the .txt file 6. closeing .txt file 7. writing the number from the .txt file ...you have to include this file somewhere on the start page.., here are all the script files...for download http://forums.xisto.com/no_longer_exists/ http://forums.xisto.com/no_longer_exists/ if you have some questions about this script post them here,,,...
-
Php News Script how to make news script that uses MySQL writen in PHP
Corey replied to Corey's topic in Programming
no problem...here.. http://forums.xisto.com/no_longer_exists/ 1) yes...but afkors..you have to make some changes ...u have to make a script that pulls the data from db and sends it to users via e-mail 2) ....maybe...don't know it yet.. -
How to make a News script with PHP + MySQL So..in this tutorial i will explain how to create PHP news script. first we have to create the table in My SQL.. with the code below you will do this ( you have to enter it into SQL field ..in PHPmyADMIN) CREATE TABLE news ( id int(10) unsigned NOT NULL auto_increment, postdate timestamp(14) NOT NULL, title varchar(50) NOT NULL default '', content text NOT NULL, PRIMARY KEY (id), KEY postdate (postdate), FULLTEXT KEY content (content) ) >>>> script files 1 file will show the news ,1 file will contain variables and with the third one we can add news. we'll call the first file "news.php" <?php$query = "SELECT *," ."DATE_FORMAT(postdate, '%Y-%m-%d') as date " ."FROM news ORDER BY id DESC LIMIT $news_limit"; // 1.$result = mysql_query($query);while($r=mysql_fetch_array($result)) // 2.{echo "<br><table width='100%'><tr bgcolor='$title_cell_color'><td><img src='$bullet'><b>$title</b> posted on $date</td></tr><tr bgcolor='$news_cell_color'><td>$content</td></tr></table><br>";}?> explaination: 1. inlcuding variables into the script 2. selecting the table in the db,formating date, limiting the number of news the script is going to show. 3. now the script is writing the data form db into tables. now we have to make another file which can add new news into db. we will call it "add.php" <?phpinclude "var.php"; // 1.if ($action==add) // 2.{$title=$_POST['title'];$content=$_POST['content']; // 3.mysql_query("insert into news (title,content) VALUES ('$title','$content')");echo "<a href='index.php'>Home</a>"; // 4.}else // 4.{print "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><form name=\"form1\" method=\"post\" action=\"add.php?action=add\"><div align=\"center\"><p>Title:<input type=\"text\" name=\"textfield\"></p><p>News content :<textarea name=\"title\" cols=\"50\" rows=\"10\" id=\"title\"></textarea></p><p><input type=\"submit\" name=\"Submit\" value=\"Add\"></p></div></form></td></tr></table>\n";}?> explaination: 1. includeing variables into the script 2. if the $action id add..then the script is going to add data into the db,and if $action isn't selected,then the scipt is gonna show form for adding news. 3. the script is putting the data that we have entered into variables 4. if $action isn't set to "add" the script is showing a form for adding news this is the third file....we are gonna define all important variables here..and we're gonna make a connection to db. <?php////////////////////////////////////////////////////////////////////////////////////////$news_limit="xxxx"; // number of news that script shows$user="xxxx"; // db username$pass="xxxx"; // password$db_name="xxxx"; // database name$bullet="xxxx"; // path to the bullet image$title_cell_color="xxxx"; // bg color for title cell in RGB...(black = #000000)$news_cell_color="xxx"; // bg color for news cell in RGB...(black = #000000)////////////////////////////////////////////////////////////////////////////////////////$db = mysql_connect("localhost", "$user", "$pass");mysql_select_db("$db_name", $db); //?> You have to change all the variables. You can download all script files here. http://forums.xisto.com/no_longer_exists/ ..if you have some questions are if you have found a mistake in this script...please let me know. (post here)