Search found 17 matches

by kgdd
Mon Feb 20, 2012 1:15 am
Forum: PHP
Topic: Multi File upload form with thumbnail maker not working
Replies: 1
Views: 390

Multi File upload form with thumbnail maker not working

Here is my code, it is not getting past file verification: if ((($_FILES['multifile']['type'][$key] == "image/png") || ($_FILES['multifile']['type'][$key] == "image/jpeg") || ($_FILES['multifile']['type'][$key] == "image/pjpeg")) && ($_FILES['multifile']['size']...
by kgdd
Sat Jan 28, 2012 11:03 pm
Forum: PHP
Topic: Scanning files and extracting specific information
Replies: 6
Views: 898

Re: Scanning files and extracting specific information

Hey thanks for the help but I actually got it all to work!
by kgdd
Thu Jan 26, 2012 4:55 pm
Forum: PHP
Topic: Scanning files and extracting specific information
Replies: 6
Views: 898

Re: Scanning files and extracting specific information

I tried this based off of your code: <? $file = file_get_contents('templates/test.php'); preg_match_all("{(grabthisarea>>'([a-z]+)')}"," ",$matches); print_r($matches); ?> Got this in the browser: Array ( [0] => Array ( ) [1] => Array ( ) [2] => Array ( ) ) Here is what the php f...
by kgdd
Sun Jan 22, 2012 3:09 pm
Forum: PHP
Topic: Scanning files and extracting specific information
Replies: 6
Views: 898

Re: Scanning files and extracting specific information

Scan PHP files in a single directory, explode each file, look at it's contents and search for {grabthisarea->('TEXT')} and pull out the word TEXT. (there can be multiple grabthisarea's on each page) Then search the table to see if the column name already exists or not. If it doesn't exist then ALTER...
by kgdd
Fri Jan 20, 2012 8:57 pm
Forum: PHP
Topic: Scanning files and extracting specific information
Replies: 6
Views: 898

Scanning files and extracting specific information

Thanks in advance for any help, I am new to this still and need some assistance. I am attempting to write a function that continuously scans a given directory looking for php files. Upon finding those files, the function will then scan each file looking for a "tagged area" such as {grabthi...
by kgdd
Sat Nov 26, 2011 5:12 pm
Forum: PHP
Topic: Blog Tutorial Help with Deleting Posts and Comments on page
Replies: 8
Views: 1313

Re: Blog Tutorial Help with Deleting Posts and Comments on p

For the comment delete option above, how would I make the page automatically go back to the previous pid page or make it refresh just once?
by kgdd
Wed Nov 09, 2011 3:08 am
Forum: PHP
Topic: Insert user avatar images into comments
Replies: 3
Views: 718

Re: Insert user avatar images into comments

How about adding an image per comment based on the commentor?
by kgdd
Wed Nov 09, 2011 3:07 am
Forum: PHP
Topic: Blog Tutorial Help with Deleting Posts and Comments on page
Replies: 8
Views: 1313

Re: Blog Tutorial Help with Deleting Posts and Comments on p

I removed the result and the post title and post body portion you stated and still no luck.
by kgdd
Mon Nov 07, 2011 2:19 am
Forum: PHP
Topic: Insert user avatar images into comments
Replies: 3
Views: 718

Insert user avatar images into comments

I have a question: Would it be possible to add a user image with each comment? For instance, if the admin started a new thread and commented on that thread as username Admin in the admin section, then the avatar code would display the admin.png image next to the comment. If anyone other than the adm...
by kgdd
Mon Nov 07, 2011 2:03 am
Forum: Tutorials
Topic: User Account Login tutorial - any username and password work
Replies: 8
Views: 1538

Re: User Account Login tutorial - any username and password

it "worked". I put that in quotes because I had to click the Delete User link twice before it actually deleted the user.. any thoughts..? Weird I know.
by kgdd
Sun Nov 06, 2011 10:15 pm
Forum: Tutorials
Topic: User Account Login tutorial - any username and password work
Replies: 8
Views: 1538

Re: User Account Login tutorial - any username and password

You want to tackle another problem? Making a function and webpage for deleting users from the table? Here's my users.php page: <?php include('core/init.inc.php'); $query="SELECT * FROM blogusers"; $result=mysql_query($query); $num=mysql_numrows($result); if (isset($_GET['action'])){ if ($_...
by kgdd
Sun Nov 06, 2011 9:40 pm
Forum: PHP
Topic: Blog Tutorial Help with Deleting Posts and Comments on page
Replies: 8
Views: 1313

Re: Blog Tutorial Help with Deleting Posts and Comments on p

Would you be able to help me with another issue? I'm trying to figure out how to add an edit blog page. Here is my blog_edit.php <?php include('core/init.inc.php'); if (isset($_GET['pid'], $_POST['title'], $_POST['body'])){ die(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...
by kgdd
Sun Nov 06, 2011 9:35 pm
Forum: Tutorials
Topic: User Account Login tutorial - any username and password work
Replies: 8
Views: 1538

Re: User Account Login tutorial - any username and password

My mistake!! Sorry these poor eyes haha. Thanks it worked perfectly!!
by kgdd
Sun Nov 06, 2011 9:31 pm
Forum: Tutorials
Topic: User Account Login tutorial - any username and password work
Replies: 8
Views: 1538

Re: User Account Login tutorial - any username and password

Temor, thanks for the fast response, but those look exactly the same? Your two answers this and should be this..
by kgdd
Sun Nov 06, 2011 9:26 pm
Forum: PHP
Topic: Blog Tutorial Help with Deleting Posts and Comments on page
Replies: 8
Views: 1313

Re: Blog Tutorial Help with Deleting Posts and Comments on p

Yes yes yes, that did work indeed!! However, it is saying Invalid post id when the page reloads. Where would I put in a go back function so it automatically goes back to list the comments with the post? By the way your tutorials rock and are easy to understand!
by kgdd
Sun Nov 06, 2011 8:21 pm
Forum: Tutorials
Topic: User Account Login tutorial - any username and password work
Replies: 8
Views: 1538

User Account Login tutorial - any username and password work

Issue: I tested a few different password and username combinations to ensure the login system only allowed the correct combination to work, and I found that no matter combination i use, it logs me in even if that information is not in the DB! Here is my code for the users.inc.php and login.php: <?ph...
by kgdd
Fri Nov 04, 2011 2:32 pm
Forum: PHP
Topic: Blog Tutorial Help with Deleting Posts and Comments on page
Replies: 8
Views: 1313

Blog Tutorial Help with Deleting Posts and Comments on page

Just wanted to say great tutorials, I have used quite a few of yours and they rock! I am trying to figure out how to add a feature to the blog you built in the Blog tutorial. These features are in the admin section and I was wondering how I would go about writing the PHP and MySQL to have a link on ...