-
February 25th, 2002, 08:08 PM
#1
Registered User
Help with PHP coding?
Not sure whether to ask this here or in Website Design...but its related to programming sao i decided to post here...
I'm currently working on a new Windrivers Photo ID page, with a database backend so people can add/modify their own entries, instead of emailing them to me.
I'm currently just starting to learn PHP using online tutorials and have started creating the page.
Anyone here know PHP and is willing to help me out?
Thanks very much in advance...
Burn.
-
February 26th, 2002, 11:02 AM
#2
Registered User
I can give a hand what's the plan?
Did you want a mysql backend with php?
-
February 26th, 2002, 06:06 PM
#3
Registered User
Yeah. MySQL backend + PHP.
Mostly im sticking to doing really simple stuff because it will work, and because the only knowledge i have is that from a couple of simple tutorials...
The only way i can show what i want to do is by letting you view my page, which can only happen when im online (im coding on my computer, and im on dialup).
Do you have ICQ or MSN etc so i can chat with you realtime?
Thanks,
Burn.
-
February 27th, 2002, 10:04 AM
#4
Registered User
[quote]Originally posted by BurnFEST:
<strong>Yeah. MySQL backend + PHP.
Mostly im sticking to doing really simple stuff because it will work, and because the only knowledge i have is that from a couple of simple tutorials...
The only way i can show what i want to do is by letting you view my page, which can only happen when im online (im coding on my computer, and im on dialup).
Do you have ICQ or MSN etc so i can chat with you realtime?
Thanks,
Burn.</strong><hr></blockquote>
Well when Im ou home on im AIM as xDigitalExpl0itx
But the best thing is to email me. Message me if you want it.
There are alot of great php books out on the market you may want to look at or even buy.
-
February 28th, 2002, 02:01 AM
#5
Registered User
-
February 28th, 2002, 10:09 AM
#6
Registered User
Ok, Im looking at the source code.
You shuld run all this off mysql, this wouldnt be hard I can show you some examples but let me look through all the pages first.
-
March 1st, 2002, 10:46 AM
#7
Registered User
OK Ive did a example page for you.
to veiw the page running go here
<a href="http://www.daemonprojects.com/windrivers/a.php" target="_blank">http://www.daemonprojects.com/windrivers/a.php</a>
to download the src code go here
<a href="http://www.daemonprojects.com/windrivers/windrivers.zip" target="_blank">http://www.daemonprojects.com/windrivers/windrivers.zip</a>
to see the mysql setup go here (this is with the code also)
<a href="http://www.daemonprojects.com/windrivers/mysqlsetup.JPG" target="_blank">http://www.daemonprojects.com/windrivers/mysqlsetup.JPG</a>
To configure the mysql connection script
open the databseconfig.php file and edit the file
just need the username/password and database name
-
March 1st, 2002, 01:01 PM
#8
Registered User
heres a fix for a.php
where the $sql = statement is replace it with this
$sql = "select * from photo where Pusername like 'A%' order by Pusername";
this will sort it so any user with the username that starts with A will show up on the a.php page
to change it just change it here it says 'A%' to 'D%' or whatver for the rest of the pages
a little demo
<a href="http://www.daemonprojects.com/windrivers/noindex.html" target="_blank">http://www.daemonprojects.com/windrivers/noindex.html</a>
-
March 1st, 2002, 07:27 PM
#9
[quote]Originally posted by Daemon:
<strong>heres a fix for a.php
where the $sql = statement is replace it with this
$sql = "select * from photo where Pusername like 'A%' order by Pusername";
this will sort it so any user with the username that starts with A will show up on the a.php page
to change it just change it here it says 'A%' to 'D%' or whatver for the rest of the pages
a little demo
<a href="http://www.daemonprojects.com/windrivers/noindex.html" target="_blank">http://www.daemonprojects.com/windrivers/noindex.html</a></strong><hr></blockquote>
Fix:
<a href="http://www.daemonprojects.com/windrivers/noindex.php" target="_blank">http://www.daemonprojects.com/windrivers/noindex.php</a>
http://www.amd.com/us-en/assets/cont...uts/athlon.gif
Do you leak any fluids, do you have any bumps on your rear, do you have any unpleasant odors?
If you answered yes to any of these then you are not qualified to own a new AMD ATHLON XP.
If someone ask you if you are running the all-new fastest AMD ATHLON XP, just turn around and reply "WHY YES, AND ITS CERTIFIED"
http://www.daemonprojects.com/
-
March 1st, 2002, 08:10 PM
#10
Registered User
-
March 1st, 2002, 08:51 PM
#11
there is a way if you use blob. this will allow you to upload images into mysql. Ill see what I can do.
heres an update on the code for you. Look through it have any question feel free to ask.
<a href="http://www.daemonprojects.com/windrivers/windrivers.zip" target="_blank">http://www.daemonprojects.com/windrivers/windrivers.zip</a>
Ok Im using 2 database tables ones for the iamges other is for the news.
photo and main
heres how I configured my tables
<a href=http://daemonprojects.com/windrivers/photo.JPG>photo</a>
<a href=http://daemonprojects.com/windrivers/main.JPG>main</a>
im useing phpMyAdmin 2.2.4
if you are not already using this you should makes things alot eaiser.
http://www.amd.com/us-en/assets/cont...uts/athlon.gif
Do you leak any fluids, do you have any bumps on your rear, do you have any unpleasant odors?
If you answered yes to any of these then you are not qualified to own a new AMD ATHLON XP.
If someone ask you if you are running the all-new fastest AMD ATHLON XP, just turn around and reply "WHY YES, AND ITS CERTIFIED"
http://www.daemonprojects.com/
-
March 1st, 2002, 09:15 PM
#12
as good as inserting images into the database, this can casue the images to corrupt it better off if you have the users either one give the url or two have them upload it to a directory.
I recomend you have the users put the url in.
here is the insert page if you want to play around with the data
<a href="http://daemonprojects.com/windrivers/insert.php" target="_blank">http://daemonprojects.com/windrivers/insert.php</a>
http://www.amd.com/us-en/assets/cont...uts/athlon.gif
Do you leak any fluids, do you have any bumps on your rear, do you have any unpleasant odors?
If you answered yes to any of these then you are not qualified to own a new AMD ATHLON XP.
If someone ask you if you are running the all-new fastest AMD ATHLON XP, just turn around and reply "WHY YES, AND ITS CERTIFIED"
http://www.daemonprojects.com/
-
March 2nd, 2002, 08:00 AM
#13
Registered User
Ok, is there any easy way to let users upload the images to my server via PHP?
I was going to use the 'type url to image' method but a lot of people's webspace wont let other websites link to their images...so uploading to my server will be a LOT easier.
It's past midnite here, so im going to bed - ill look at that code tomorrow.
Thanks again heaps for your help!
Burn.
-
March 2nd, 2002, 01:32 PM
#14
well you may want to check <a href="http://www.planet-source-code.com" target="_blank">www.planet-source-code.com</a>
<a href="http://www.hotscripts.com" target="_blank">www.hotscripts.com</a>
I have a little script I found dont know if it works but it may give an Idea.
<a href="http://www.daemonprojects.com/windrivers/upload.zip" target="_blank">http://www.daemonprojects.com/windrivers/upload.zip</a>
http://www.amd.com/us-en/assets/cont...uts/athlon.gif
Do you leak any fluids, do you have any bumps on your rear, do you have any unpleasant odors?
If you answered yes to any of these then you are not qualified to own a new AMD ATHLON XP.
If someone ask you if you are running the all-new fastest AMD ATHLON XP, just turn around and reply "WHY YES, AND ITS CERTIFIED"
http://www.daemonprojects.com/
-
March 3rd, 2002, 12:28 AM
#15
Registered User
I've had a look at your website...i take it your news is all php...and in order from newest to oldest...my only real problem right now is that...how do you do it?
Burn.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks