hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Article System
Reply

Forum Jump

Article System

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-22-2002, 02:09 AM
brcolow brcolow is offline
WHT Addict
 
Join Date: Sep 2002
Location: az
Posts: 168

Article System


Im gunn make this quick and to the point.
I want to have a system where my staff can write reviews to a page called name_of_game.php and that page gets linked on this page www.flashstand.com/articles.php but im clueless on how to do this part, after writing toa flatfile, i need to access certain parts of it and put i on the Name_of_game.php and also how to make that file AND how to link to it. Thanks, Mike



Sponsored Links
  #2  
Old 09-22-2002, 02:16 AM
CChard CChard is offline
WHT Addict
 
Join Date: Mar 2002
Posts: 123
Use a database if you can. Not a flat file.

__________________
www.atlanticrail.com

  #3  
Old 09-22-2002, 02:19 AM
ShockHost ShockHost is offline
Junior Guru Wannabe
 
Join Date: Aug 2002
Location: Australia
Posts: 47
For a start, Structure the system so authorized users can input reviews in mysql database then have articles.php pull it from the database.

Im no guru, so I can't really help you much.

__________________
Vinh,
ShockHost - host me up scotty
http://www.ShockHost.com
(Coming soon to a world near you next month)

Sponsored Links
  #4  
Old 09-22-2002, 02:25 AM
brcolow brcolow is offline
WHT Addict
 
Join Date: Sep 2002
Location: az
Posts: 168
ok ill use mysql, i have a database set up, so how do i access it and wirte the html form varibles into it AND THEN access information from it to make the article?

  #5  
Old 09-22-2002, 02:57 AM
ShockHost ShockHost is offline
Junior Guru Wannabe
 
Join Date: Aug 2002
Location: Australia
Posts: 47
Im thinking your not too much of a backend man, I would say go to hotscripts.com and fetch yourself a script. I bet there are plenty to choose from then you could customise it to fit your needs.

__________________
Vinh,
ShockHost - host me up scotty
http://www.ShockHost.com
(Coming soon to a world near you next month)

  #6  
Old 09-22-2002, 12:02 PM
brcolow brcolow is offline
WHT Addict
 
Join Date: Sep 2002
Location: az
Posts: 168
well, i dont tink this is too hard to make, and i searched hotscripts and they dont have what i need, all i need is a simple tutorial on how to write html form information to the database and then pulll that information from somewhere else using php, any website i can gom to that will explain this?

  #7  
Old 09-22-2002, 12:37 PM
brcolow brcolow is offline
WHT Addict
 
Join Date: Sep 2002
Location: az
Posts: 168
Ok now, i basically have it,

PHP Code:
<?
if (!$title || !$about || !$title || !$price)
{
    echo 
"You have not completed all of the required feilds in your article report.<br>"
."please go back and try again.";
    exit;
}

$title addslashes($title);
$about addslashes($about);
$screenshots addslashes($screenshots);
$source addslashes($source);

$db mysql_pconnect("localhost""mike""cool");
if (!
$db)
}
    echo 
"Could not connect to database.";
    exit;
}
mysql_select_db("news");
$query "inert into articles values
    ('"
.$title"', '".$about."', '".$screenshots"', '".$source."')";
$result mysql_query($query);
if (
$result)
    echo 
mysql_affected_rows()." Article insterted into database.";
?>
The thing i need to do is, make a file named $title.php so people can actually go to it, but im unclear on how to do this, thanks for the help, mike

Reply

Related posts from TheWhir.com
Title Type Date Posted
NSA Denies Allegations that it Infected Millions of PCs with Malware Web Hosting News 2014-03-14 11:45:53
Advanced Internet Technologies Launches Customer Management System Web Hosting News 2013-05-17 14:35:19
Nebula Launches All-in-One OpenStack Private Cloud System Web Hosting News 2013-04-02 11:18:17
.co.za Domain Price Hike Expected to Push Registrars, ISPs to Use EPP System Web Hosting News 2013-01-11 13:35:51
Cbeyond Phone Service Delivers VoIP to SMB Hosting Customers Web Hosting News 2012-12-10 11:01:14


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?