leiaah
Jun 1 2005, 12:34 PM
| | Hey there. Since this is a news script, does it display text in a set format? Like if you've entered a text with lots of paragraphs in the database, does it still display that format once you've "QUERIED" it? With spaces between each paragraph, I mean.  |
Reply
rvalkass
Jun 1 2005, 02:54 PM
QUOTE(dtygel @ Jun 1 2005, 12:27 PM) Well, how do I get rid of the servers limits? Can mailman do that? Or should I contract a mailing service? (some suggestion?) About the script: that was a suggestion of a simple search. I would like to give the user the possibility to cross between fields (maybe the AND syntax...): a cross-fields search. Daniel The mail limit sets a number of emails that can be sent per time period, usually something like one every 30 seconds. I think it would be possible to send one email to lots of addresses, therefore it would only appear as one email to the server. If the addresses are listed as one BCC (Blind Carbon Copy) the same email will be sent to a set of addresses without them each knowing eachothers address. CODE <?php //Your email address $serveremail = 'YourEmail@server.com';
//List of recipients $bcc = 'address1@email.org' . ', '; $bcc .= 'address2@email.net' . ', '; $bcc .= 'address3@email.co.uk'; //The last address does not need a comma
$subject = 'Update'; $message = ' //The message goes here //This would be the script to call the latest news ';
//List of headers so it can be read by many mail systems
$headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Headers containing email addresses
$headers .= 'To: PutYourEmailAddressHere' "\r\n"; //This will send a copy to yourself so you know it has been sent $headers .= 'From: PutYourEmailAddressHereAgain' . "\r\n"; $headers .= 'Bcc:' . $bcc . "\r\n";
mail($serveremail, $subject, $message, $headers); ?>
Again, I haven't done any PHP coding for a while, so feel free to correct it and give any comments. I also don't have hosting at the moment  so I can't test it. The search could use if statements according to check boxes being selected or not to search certain fields, but I don't know how to get the AND, OR etc operators to work. Sorry.
Reply
Shawn
Jun 1 2005, 03:35 PM
dtygl: Yes it is possible to do this you just must have more than one WHERE clause. CODE $query = "SELECT * FROM `news` WHERE `timestamp`<='$searchDate' AND `text` LIKE '$searchString'";
Reply
hype
Jun 10 2005, 02:44 AM
The links broken, can you pls fixed it?
Reply
Corey
Jun 24 2005, 06:34 PM
QUOTE(leiaah @ Jun 1 2005, 02:34 PM) Hey there. Since this is a news script, does it display text in a set format? Like if you've entered a text with lots of paragraphs in the database, does it still display that format once you've "QUERIED" it? With spaces between each paragraph, I mean.  yes afkors;)
Reply
karlo
Jun 25 2005, 12:49 AM
QUOTE(Shawn @ Jun 1 2005, 11:35 PM) dtygl: Yes it is possible to do this you just must have more than one WHERE clause. CODE $query = "SELECT * FROM `news` WHERE `timestamp`<='$searchDate' AND `text` LIKE '$searchString'";
Hmmm.. that's a new function of MySQL for me. The <= thing in the query is new to me. Where did you learn to use it? Because all i know is the basic MySQL things, as in basic.
Reply
rvalkass
Jun 25 2005, 08:35 AM
The <= thing means less than or equal to. There are loads of them used in all programming languages. Some of the most common ones are listed below: < less than > greater than <= less than or equal to >= greater than or equal to == exactly equal to != not equal to They can be very useful in all sorts of eventualities. I can't remember what they are collectively called (hopefully someone will help out  ) They can be used with dates, numbers, variables, times, all sorts of things.
Reply
skter4938
Jun 15 2006, 05:25 AM
I got this error when all was done and done: CODE Warning: mysql_query(): Access denied for user 'webtodes'@'localhost' (using password: NO) in /home/webtodes/public_html/news/index.php on line 50
Warning: mysql_query(): A link to the server could not be established in /home/webtodes/public_html/news/index.php on line 50
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/webtodes/public_html/news/index.php on line 52 and the username was webtodes_admin in the var.php file Why does it give me this error, even though I put in a different username?
Reply
Spectre
Jun 15 2006, 08:47 AM
Because you aren't specifying a password: '(using password: NO)'. Did you notice how old this thread was?
Reply
iGuest
Oct 18 2007, 02:31 PM
The zip and rar files are no longer available to download. Any chance of putting them back up?
Reply
Recent Queries:--
how to make a news system - 23.70 hr back. (1)
-
php sql script news - 24.94 hr back. (1)
-
send news script - 28.13 hr back. (1)
-
creating a php news script - 39.27 hr back. (2)
-
"php news script" best - 67.61 hr back. (1)
-
php news script - 11.63 hr back. (6)
-
news script php - 69.06 hr back. (1)
-
php mysql freeware update news script - 70.13 hr back. (1)
-
making news system ,php - 94.56 hr back. (1)
-
news script from database with php - 97.01 hr back. (1)
-
php folder field news script - 116.24 hr back. (1)
-
simple php news script - 24.38 hr back. (6)
-
null news script - 140.88 hr back. (1)
-
ajax newsbox script - 143.32 hr back. (1)
Similar Topics
Keywords : php, news, script, make, news, script, mysql, writen, php
- How To Make Php Newsletter Script
(3)
Php Guest Online Script
(3) make an index.php copy and paste this code CODE <?php $db_host = "localhost";
$db_user = "root"; $db_pass = ""; $db_name = "test";
$dbc = mysql_connect($db_host, $db_user, $db_pass); $dbs =
mysql_select_db($db_name); $tm = time(); $timeout = $tm -
(30*60);
if($_SERVER["REMOTE_ADDR"]){$ip=$_SERVER["REMOTE_ADDR
"];} else{$ip=$_SERVER["HTTP_X_FORWARDED_FOR"];}....
How To Make A View New Post Script?
(5) Ok so i'm still working on the forum software i posted about a while back, but I have no idea
how to do this. I want to make a view new post script, as this is one of the main things that my
forum software dose not have that all other forums have. so does any body have an idea on how i
would do this? Thanks.....
Guessing Php Script
(2) I am looking for: freeware php quess the person in the photo game script....
Create Table - Mysql Code - Help
(1) I need your feedback about setting the database issues. Please, review them and correct some entries
in the code if they got some mistakes. This is the code itself: SQL CREATE TABLE
`news` ( `id` int(250) NOT NULL auto_increment, `title` varchar(255)
NOT NULL default '', `text` text NOT NULL, `author` varchar(255) NOT
NULL default '', `valid` varchar(255) NOT NULL default '',
`date` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE = ....
Mysql Error
(3) ok i need some more help from the wonderful coders here at Trap. I'm almost done with my CMS
script, but i'm having a problem with the installer.php file, when it trys to inseret the user
data into the database i keep getting the following error: CODE mySQL Error: You have an
error in your SQL syntax; check the manual that corresponds to your MySQL server version for the
right syntax to use near ';INSERT INTO `members` (`id`, `name`,
`username`, `password`, `email`, `title`) ' at lin....
Sending E-mails After News Update?
Coding needed?!? (8) I need the following code or the idea how to reach this concept. Let's say, I have a database
entry which is called "news", where all of the news stories are stored. If this database entry got
modified, like the new post was added to the web-site by an administrator, the registered users will
get some kind of email notification automatically, I mean the mails are sent automatically without
the interaction of someone else. ....
Html Form!
Using MySQL?! (4) Hey, I need your help again! I need some good working tutorial how I can update my SQL through
HTML form. I did use some tutorials online found with the help of google; but they do not work
properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
should be based on security and more things. It has to be done in proper way.......
Best Php And Mysql Editor For Noobs
anyone any php or mysql editor that is good for noob (6) hi there guys, from my previous posting, i am a noob in php and mysql programming. I want to know
if there are any php and mysql editors which are best for me as a noob. i appreciate your kindness
....
Php And Mysql Programming
anyone knows a code for mysql and php (2) hi everyone! I am making a program using php and mysql...I am a noob on this so i need your
help guys...I want to make a simple program that will some values and then store them on a database
and then retrieve them...uhmm let me give an example out put of what i need. This is the example
say..: Enter First Name: Enter Last Name:
Enter Age: Enter Address: ..those
are the data needed for input values...my question now is how can I make a database....
Need Help Installing Dolphin Community Script!
(5) I'm not sure if this is the right place to post this but I really need help in installing the
dolphin community script. I have absolutely no previous experience of scripts or programming. I
would really appreciate if someone could walk me through it step-by-step, or even do it for me by
logging into my cpanel. I have tried to install it my self but I'm a little confused. I'm
sure it won't take very long at all for someone who has done this before.....
How Do I Connect To Live Database With Php Script?
while being hosted with ComputingHost (6) I am not new to programming. I want to create a form to add some values into my tables, the code
are all working. But I am not sure what is the URL to connect to my site's database. All along,
I have been testing through MAMP, which provides a local copy of mySQL. Can anyone lend me a hand?
My site's URL is http://limetouch.com/ ....
Tools Needed!
PHP & MySQL (9) Hello, everyone! I need some tools for those two things to test PHP scripts coming together with
database on my laptop, instead checking them on a web-server which takes time.....
Php Rediret Script
(12) Ok, what I am trying to do is this. Re-direct a domain name called: avalon.asn.au to
preschool.stmarksavalon.org.au I have created a script that will re-direct within the a folder.
However, the avalon.asn.au and stmarksavalon.org.au are PARKED Domains. Any ideas on how to create
this PHP Redirect Script please?....
Script Help Required: Undefined Variable
A fault I cannot spot in PHP (3) Hi, when running a PHP script I keep getting the error: QUOTE Notice: Undefined variable: bret
in c:\program files\easyphp1-8\home\poll.php on line 294 Notice: Undefined
variable: bret in c:\program files\easyphp1-8\home\poll.php on line 294 (And,
yes, I get it twice). The code related to the variable is as follows: CODE function
LogString($string,$type) { $t_log = "\n";
$t_log .=
$this->globaldata->server_vars['REMOTE_ADDR']."....
Php Downloads Script
(4) I've been looking all over the net for a PHP script which can provide an interface to browse a
downloads database. The database could be powered by MySQL. If you know a script like this, please
post it here. Thanks in advance, Ironchicken.....
Mysql Won't Update
(4) Ok, so I'm making some arcade administration software so I don't have to add games the hard
way, well anyway, one of the features I have is that on the homepage is a featured author and as
such I just have it so it updates one line in the mySQL. Well, the page with the form passes on the
varibles fine and the updating page recieves them because I echoed everything, then I build the
query and I even echo the query and it comes out exactly how I want it to, but for some reason, the
database itself won't update even though all the varibles are there. Here's....
Html Code Tester. Online Script
(15) Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
Current script: CODE <?php //Save this as something like htmltest.php function
CheckForm() { $html_unsafe=$_POST['code']; //Gives us our user
input $html_safe=str_replace("<?php"," ",$html_unsafe);
//Starts security measures $html_safe=str_replace("?>","
",$html_sa....
Very Simple Online Now Script
This is a very simple online now script. (4) Hi all, Its Aldo. anyways, I wont be using the method of pagination, i will just tell you how to
make a basic online now script. When someone logs in, now take into consideration that the name of
the username input is username ( First ,create a table in your database saying online now and add 2
fields to it. id and username CODE id type=integer(INT) , auto increment, length =255
and username = VARCHAR length=the limit a username should be in your site now from there we take
off : CODE <?php //logged.php //authentication script //connection scri....
Creatting A Playlist Through Php
script help needed (5) Hi I am trying to make a script so that i can insert songs into a playlist, but i need a script in
which it opens the playlist file and removes the closing tag at the end, so before i can add more
entrys. e.g CODE <atx> <entry>Location 5</entry> <entry>Location
4</entry> <entry>Location 3</entry> <entry>Location
2</entry> <entry>Location 1</entry> <atx> But to add more entrys
i would have to get rid of the atx, then use the fputs to place the new entry into the file. ....
What Kind Of Script Do You Need ?
post here and get free script (15) Hi everybody sorry if i posting here , i know I want design free PHP script and i dont know
webmasters what kind of scripts want i think its better to aks here becuase trap17 is very nice
webmasters forum So , Plz post here what kind of script with details you need ! sorry may en
is not very well for example you need "upload center" : write "upload center" with upload center
options ( like Ajax , Fast , multi lan and ... ) with this post we can give script details and
webmasters idea /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.....
Free Auction Script
Any Suggestions? (6) Any free auction script suggested? I want it to be as many practical functions as possible, yet
easy to manage. And more importantly, it is free! Appreciate your kind suggestions!....
Watermark Your Image With Simple Php Script
found it on the net (35) This script was found on the net http://tips-scripts.com/?tip=watermark#tip B&T's Tips &
Scripts site. Just in case the site may not show, I will include the code here: List of things
needed: 1. your image in any format 2. watermark image--in gif format with transparent background 3.
script below with name (i.e. watermark.php) CODE <?php // this script creates a watermarked
image from an image file - can be a .jpg .gif or .png file // where watermark.gif is a mostly
transparent gif image with the watermark - goes in the same directory as this script // ....
Creating Profiles In Php/mysql ?
(7) i've started to learn php..im familiar to basics of php and mysql now.Now for example i want
that some user can register to my website , and after that he can Login and log out , and he can see
his profile.is there any tutorial about this ? or any helping url .. or any helping answer please
/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
Subquery In Mysql
(5) Is there anyway to make subqueries work in MySQL? I'm pretty certain someone out there knows
how. /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Can anyone help?
CODE Select * from ITEMS where ID="Select Max(ID) from ORDERS"; This works
for MSAccess and SQL Server but why not in MySQL? I'll be writing some reports and I've
shifted database from MSAccess to MySQL. Help! Thanks.....
Can You Add Images Into A Mysql Database?
Using Php? (20) I'm learning php in class right now, but I'm still not that good at it, what I'm
wondering is when I write the php so that it can connect with a database, can I at the same time
have it that it is able to display back images that I choose. Like, I want a search feature, where
you can search for a keyword, and it will bring back a list of all the possible entries with that
keyword, but each of these entries will have a photo associated with it. Now, do I put these image
files directly into the database, or do I write the code to link them from my files to th....
Parse: Error Unexpected T_lnumber
php parse error when running script (4) Hi. I've just created a php script. The main object of the script is to delete some old files
and replace it with a new file with some new content, effectively moving the contents from one file
to another. These are the first 50 lines of the file: /* Calculate For The "A" Group - The
Latest Games ID */ $a_B = 002; while(file_exists("a_" . $a_B . ".dat")) {
$a_B++; } $new_page_contents = " " . $_POST . " " . $_POST . "
include \"/home/cmatcme/public_html/footer.php\"; ?> "; $a_stream = fopen(&....
Increment A Mysql Column
how to increment a MySQL column one unit (7) Hi, I have a column in a MySQL table which contains a counter of the views of the object described
by this table. I would like to increment this value by one everytime the object is viewed. Obviously
came into my mind the possibility of retrieving the value of this field, store it in a variable
increment this value by one and perform an UPDATE query again with this new value. My question is if
there is a MySQL option to update the field with its actual value plus an unit increment. I hope you
understand the issue.....
Script: Php Jukebox
A one file script! (4) This scripts is so simple, you dont need to edit ANY of it! All you have to do is make a folder
called 'songs' and put some audio files in it. Here is the whole page, I named it index.php
and put it in a folder called 'music': CODE <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> <html> <head>
<title>PHP jukebox</title> </head> <body> <!-- ©2005 Craig
lloyd. All rights reserved. Visit cragllo.com for more sc....
Many Php Script Sites
(16) Hi I find many sites has PHP scripts :: http://www.proxy2.de/scripts.php http://www.free-php.net
http://knubbe.t35.com/ http://www.ngcoders.com/ http://www.oxyscripts.com/
http://www.phparena.net/ http://www.1phpstreet.com/ http://px.sklar.com/
http://www.scoznet.com/ http://php.resourceindex.com/ /blink.gif' border='0'
style='vertical-align:middle' alt='blink.gif' /> ....
Looking for php, news, script, make, news, script, mysql, writen, php
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for php, news, script, make, news, script, mysql, writen, php
*MORE FROM TRAP17.COM*
|
advertisement
|
|