- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
14 Posted Topics
Re: How many records should it be returning? :p | |
Re: Try [code] $myarray=array("a,cake", "b,cheese", "c,pacman"); $anotherArray=array(); foreach ($myarray as $value) { $values=explode(",", $value); foreach ($values as $item) { $anotherArray[]=$item; } } [/code] :D | |
I'm hosting on NetworkSolutions (which has PHP 5.2.17) and every time I make a prepared statement it returns the error "Incorrect arguments to mysql_stmt_execute" D: Can you help me spot the error in my code please? D: [code] <?php $mysqli=new mysqli(host, username, password, db); $query="INSERT INTO `Variables` VALUES (?, ?)"; … | |
Re: If you use checkboxes you can already select multiple options (they must have the same name and brackets next to them). To find out which ones were selected, you loop through the array :3 Something like this... The form: [CODE]What are your favorite types of pastry? <form method="post"> <input type="checkbox" … | |
[CODE] $doc=new DOMDocument(); $doc->loadHTML($str); $doc->getElementById("MainTable")->getAttribute("id");[/CODE] Displays the error Fatal error: Call to a member function getAttribute() on a non-object Oh and $str is the HTML of a page :p D: Am I doing something wrong? :o | |
Re: :O Why don't you use a ZIP folder? I don't think you can run multiple downloads. | |
Hi there, I'm making a script that gets a form's elements, and writes them to an XMLHttpRequest. It works perfectly with inputs, but when it switches to text areas, it returns "undefined" :\ Could you help me find the error? :D [CODE=js]function sendForm(target, form) { var item; var string=""; var … | |
Re: [QUOTE=Triztian;1323320]You should try to develop the script yourself and when you get stuck in a particular area post the issue here; get based on the scripts you've seen and modify them to suit your needs...[/QUOTE] He's asking for ideas. | |
Hi there, I want to grab a page from my site that's PHP, however, I don't want it to display the PHP... How can I do this? | |
I tried to write [icode]include "http://".$_SERVER["SERVER_NAME"]."/lol.php"[/icode] and it didn't include it? | |
Hi there, I'm trying to get the root directory of my site... But I don't want to edit the dots with slashes every time I make a new page in a directory inside another directory.. Any ideas? Here's an example tree :-) -/ -/stuff --/stuff/lol.php -/lolwut --/lolwut/cake.php --/lolwut/pie.php | |
I tried making a For iterator to check the values of an array, but it checks them 2 times! | |
Hello there, I've been having problems creating a part of my mail system that makes messages look red when they haven't been read, and white when they have been read. This is what I'm using right now [code=php]mysql_query("UPDATE Mail SET Read=1 WHERE ID={$messageID}");[/code] The SQL ID Field is a smallint … |
The End.