
ram4nd
Members-
Posts
461 -
Joined
-
Last visited
Everything posted by ram4nd
-
How to use php with xml to get data from database
ram4nd replied to seiha.ching's topic in PHP Coding Help
Well try to do something and when you get stuck then ask for help. You can make the php file as xml if you set the header to xml. That way you don't have to save anything. You can look into RSS scripts. -
Hi, I want to make a report broken link button. And I wan't it to add 1 to SQL table without refresh. Any information about doing such thing would be nice, haven't found anything from Google so far.
-
You probably have your model wrong, check: http://codeigniter.com/user_guide/database/active_record.html#delete
-
ok thank you, i guess those browser shot pages are not that reliable
-
I have linux, but http://ipinfo.info/netrenderer/index.php tels me opposite with every ie
-
My script doesn't work on IE I have tried some things to fix it, but now I am out of ideas. <script language="JavaScript"> <!-- function resize_iframe() { var iframe=document.getElementById("iframe"); var height=window.innerWidth; if (document.body.clientHeight) height=document.body.clientHeight; iframe.style.height=parseInt(height-iframe.offsetTop)+"px"; } window.onresize=resize_iframe; //--> </script> <iframe id="iframe" src="{url}" onload="resize_iframe()">
-
Thank you Yes I thought it will do something like that
-
any tips, maybe what should i type into google or any links or just a function what to look anything that would be helpful
-
I don't think PHP Coding is the right forum, but how can I make a report broken link, that adds 1 to mysql cell and does it without the refresh. The first part is easy, but how can I do it without refresh?
-
hmm so I should do the header 10% and the content iframe 90% height? Is that the only option?
-
I have code: <div><div>Header div</div><iframe src="google.com"></iframe></div> Header is 100px height and iframe is 100%. The problem is that the first div is 100% + 100px height. I need to make it just 100%.
-
"read line from file php" to google
-
Categories dropdown with x amount of subcategories.
ram4nd replied to ram4nd's topic in PHP Coding Help
The category_id is now parent_id I did it like this: function get_categories() { $query = $this->db->query('SELECT * FROM categories ORDER BY name'); //return data if($query->num_rows()>0) { static $refs = array(); static $list = array(); foreach($query->result_array() as $data) { static $id, $parent_id, $name; $id = $data['id']; $parent_id = $data['parent_id']; $name = $data['name']; $thisref = &$refs[$id]; $thisref['parent_id'] = $parent_id; $thisref['name'] = $name; if($parent_id == 0) $list[$id] = &$thisref; else $refs[$parent_id]['children'][$id] = &$thisref; } } else return FALSE; } But I can't figure out how can I echo it? And yes I read the comments. -
Yes and its still a file manager and can be found via Google, if you look a pre-made script. This should fit your needs, btw found it in about 30 seconds: http://quixplorer.sourceforge.net/
-
Categories dropdown with x amount of subcategories.
ram4nd replied to ram4nd's topic in PHP Coding Help
Yes you assumed right. Thank you. -
Please help me revise this log in code.
ram4nd replied to shinichi_nguyen's topic in PHP Coding Help
I have never though about it like that, but that was the thing that made me confused. But I can't believe how stupid I am :S -
Please help me revise this log in code.
ram4nd replied to shinichi_nguyen's topic in PHP Coding Help
Yes, but he should use AND also, if he is trying to do such thing. What if both are empty? Still my bad. You get redirected back because $count is not 1 when you try to login. if($count == 1){ <> works in php? Wow php is surprising. -
Upload Image into specified directory and generate link into form...
ram4nd replied to wispas's topic in PHP Coding Help
Sure I can do copy paste from that site: http://www.tizag.com/phpT/fileupload.php But I have moved over to frameworks about half year ago and I use pre-made classes. -
Please help me revise this log in code.
ram4nd replied to shinichi_nguyen's topic in PHP Coding Help
You might want to use && instead ||: if (!isset($_POST['myusername']) || !isset($_POST['mypassword'])) { Same here: elseif (empty($_POST['myusername']) || empty($_POST['mypassword'])) { Worst, but funniest way I have seen someone to connect to sql: mysql_connect("$host", "$username", "$password")or die("cannot connect"); -
Categories dropdown with x amount of subcategories.
ram4nd replied to ram4nd's topic in PHP Coding Help
I dont understand a word of it, but maybe this helps: CREATE TABLE IF NOT EXISTS `categories` ( `id` mediumint(9) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `category_id` mediumint(9) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ; -
why wont you use input field for this?
-
nobody is going to do it for you. If you need pre-made script go search google for PHP file managers or something.
-
I want to make dropdown menu. I have a table where are categories and x amount of subcategories. They will be displayed something like: cat -subcat -subcat --subcat cat -subcat I figured I need some loop system. I was trying to do it with 2 foreach loops in while loop, but I got confused and I thought I'll ask help from people with more brain processing capabilities.