Search found 57 matches
- Mon Jan 27, 2014 9:27 am
- Forum: PHP
- Topic: use session in another directory folder...
- Replies: 2
- Views: 3381
use session in another directory folder...
i have a folder let say... folder1 which is the root folder, then folder 2 inside of folder1... let example i have a session activty in folder 2.... how can i put the session of folder 2 in outside of that folder... and use it to folder 3.... can u get it guys?... i try to put session_start(); at ve...
- Thu Oct 24, 2013 4:47 pm
- Forum: Tutorials
- Topic: DELETE FUNCTION
- Replies: 13
- Views: 6265
Re: DELETE FUNCTION
what the heck.... after 3 days... i solved the problem.. i forgot to add id at my fetching data... function get_all_post($page, $per_page){ $start = (int)($page -1) * $per_page; $per_page = (int)$per_page; $sql = "SELECT `post_id` AS `id`, `post_title` AS `title`, LEFT(`post_body` , 10) AS `bod...
- Thu Oct 24, 2013 2:52 pm
- Forum: Tutorials
- Topic: DELETE FUNCTION
- Replies: 13
- Views: 6265
Re: DELETE FUNCTION
I don't know what the code for that page looks like. Maybe if you post it we can be of more help. <?php include 'core/init.php'; include 'includes/overall/header.php'; if (isset($_POST['action']) && $_POST['action'] === 'delete'){ $errors = array(); if (empty($errors)){ delete_post($_GET['p...
- Wed Oct 23, 2013 4:03 pm
- Forum: Tutorials
- Topic: DELETE FUNCTION
- Replies: 13
- Views: 6265
Re: DELETE FUNCTION
guy the delete function is working when i manually put the ?action=delete&post_id=16 at the end of my url... ill check the database and the post_id 16 is deleted.... i have some trouble at my delete button... <a href="manage-post.php?action=delete&post_id=<?php echo $_GET['post_id']; ?>...
- Wed Oct 23, 2013 3:40 pm
- Forum: Tutorials
- Topic: DELETE FUNCTION
- Replies: 13
- Views: 6265
Re: DELETE FUNCTION
just like a blog tutorial of jacek...
posts
post_id
post_title
post_body
categories
post_user
post_date
posts
post_id
post_title
post_body
categories
post_user
post_date
- Wed Oct 23, 2013 3:12 pm
- Forum: General Chat
- Topic: looks like we have a few spam bots lol
- Replies: 7
- Views: 7437
Re: looks like we have a few spam bots lol
thanks 4 saving this beautiful website... i know im not good enough in php but i'm learning in a good progress...
- Wed Oct 23, 2013 3:03 pm
- Forum: Tutorials
- Topic: DELETE FUNCTION
- Replies: 13
- Views: 6265
Re: DELETE FUNCTION
it doesnt error... its do nothing... this is 4 delete function only the fetching data is the one i want to delete it...
- Wed Oct 23, 2013 11:52 am
- Forum: Tutorials
- Topic: DELETE FUNCTION
- Replies: 13
- Views: 6265
Re: DELETE FUNCTION
ill 4got to add this code... the delete function... function delete_post($post_id){ $post_id = (int)$post_id; mysql_query("DELETE FROM `posts` WHERE `post_id` = {$post_id}"); mysql_query("DELETE FROM `comments` WHERE `post_id` = {$post_id}"); } is this the nice way of fetching da...
- Wed Oct 23, 2013 11:49 am
- Forum: Code
- Topic: BBCode - How to?
- Replies: 7
- Views: 4283
Re: BBCode - How to?
its 4 personal purposes only so its ok...
- Wed Oct 23, 2013 7:13 am
- Forum: Tutorials
- Topic: DELETE FUNCTION
- Replies: 13
- Views: 6265
DELETE FUNCTION
http://betterphp.co.uk/board/viewtopic.php?f=4&t=849 i'm looking 4 delete function and i found this one... this code not work 4 me... <?php include 'core/init.php'; include 'includes/overall/header.php'; if (isset($_POST['action']) && $_POST['action'] === 'delete'){ $errors = array(); i...
- Wed Oct 23, 2013 7:08 am
- Forum: PHP
- Topic: PHP Delete ...
- Replies: 2
- Views: 3637
PHP Delete ...
i'll looking 4 delete function and i found this one... this code not work 4 me... <?php include 'core/init.php'; include 'includes/overall/header.php'; if (isset($_POST['action']) && $_POST['action'] === 'delete'){ $errors = array(); if (empty($errors)){ delete_post($_GET['post_id']); } } $p...
- Wed Oct 23, 2013 6:17 am
- Forum: Code
- Topic: BBCode - How to?
- Replies: 7
- Views: 4283
Re: BBCode - How to?
thank you sr temor it's working... and it would be nice to add some javascript let say i highlight the text now it will wrap automatically the text with this [ b]text[/b]... anyway thanks again 4 helping me always...
- Sat Oct 19, 2013 2:09 am
- Forum: Code
- Topic: BBCode - How to?
- Replies: 7
- Views: 4283
Re: BBCode - How to?
<a href="javascript:void(0);" onclick="document.getElementById('body').value += '[\b][\/b]'">Bold</a> <textarea cols="100" name="body" id="body" rows="20"></textarea>
like this sir?
- Fri Oct 18, 2013 7:41 am
- Forum: Code
- Topic: BBCode - How to?
- Replies: 7
- Views: 4283
BBCode - How to?
how can iapply the bbcode at my script this is wat ive done... <?php include 'core/init.php'; include 'texteditor.php'; if (isset($_POST['user'], $_POST['title'], $_POST['body'], $_POST['cid'])){ if (empty($_POST['user'])){ $errors[] = "Please Enter Your Valid Username."; } if (empty($_POS...
Re: BBCode
i want to know how the trix.. just like the bbcode here... its automatically insert the tags on the text... if i know there's a java on it...
Re: BBCode
how this thing should work if i try to test this code... no idea
- Fri Sep 27, 2013 5:00 pm
- Forum: PHP
- Topic: frame or iframe?
- Replies: 7
- Views: 5304
Re: frame or iframe?
wow this awesome... thx much:)
- Fri Sep 27, 2013 3:38 pm
- Forum: PHP
- Topic: frame or iframe?
- Replies: 7
- Views: 5304
Re: frame or iframe?
yup sr... something like that..
- Fri Sep 27, 2013 12:03 pm
- Forum: PHP
- Topic: frame or iframe?
- Replies: 7
- Views: 5304
Re: frame or iframe?
the reason why i asked about that is bcuz of rich text editor or wysiwg... instead of textarea they put it on iframe... can anyone know how to make a simple rich text editor... i onyly need bold,italic,underlined, and images only.. i dont need plugins... i want to learn how they do that... btw im lo...
- Thu Sep 26, 2013 8:52 am
- Forum: PHP
- Topic: frame or iframe?
- Replies: 7
- Views: 5304
frame or iframe?
is it ok to add some iframe on your site? i've heard b4 to jacek not to use idunno if "frame" or "iframe"... something like dat.. iframe is java right?...
- Sun May 26, 2013 7:35 am
- Forum: PHP
- Topic: Strict Standards Error...
- Replies: 6
- Views: 1501
Re: Strict Standards Error...
ohh i.c
anyway thanks dude...
anyway thanks dude...