8,966 Posted Topics
Re: Don't forget the quotes. [code=php] setcookie('pid', $pid, 3600); [/code] | |
Re: Not entirely sure what you mean. Do you want to print a part of what is shown on the screen ? Then you could use CSS to define what to show when you want to print. If this is not it, please provide an example. | |
Re: First and second hit in google search: [url]http://dev.mysql.com/doc/refman/5.1/en/backup.html[/url] [url]http://code.google.com/p/mysqldump-incremental/[/url] | |
Re: Maybe this will help: [url]http://php.net/manual/en/simplexml.examples.php[/url] | |
Re: [url]http://onlinebusiness.volusion.com/articles/compare-merchant-account-credit-card-processing[/url] | |
Re: The name of the checkbox will be in the POST array, only if it is selected. Do you have different names for them or are you using name="mycheckboxes[]" ? | |
Re: the top and bottom div's can be fixed size. the middle div will have a background-image 1 pixel high with a repeat-y. You can see something similar at one of my sites: kledingbank-limburg.nl The yellow/blue/white left and top is actually a 1 pixel image. Extract the css from the page, … | |
Re: If you really want to ignore them, just remove them from the php.ini, see error reporting, it is explained within the file. | |
Re: In the bottom example: [code=php] $createSample->pageElements($pageTitle, $pageKeywords, $pageContent); [/code] In the upper example: [code=php] $this->pageElements(); [/code] Here, the 3 parameters are missing. But I think you can remove the line. | |
Re: If you're working in an IT company that keeps up to date, than you will have a programmer working alongside with a designer, so the programmer won't have to worry about this and just follow the guidelines of the designer. | |
Re: You should check isset($_POST['Delete']) instead of $Delete | |
Re: You can create a login function that will return a kind of session-id, which is stored on the server in the database. Use this id as a parameter for other functions. If the user logs off or a certain time period has expired, you can reset the id, thus forcing … | |
Re: [url]http://www.tizag.com/phpT/fileupload.php[/url] Do you have write permissions ? | |
Re: mysql can do this. [url]http://dev.mysql.com/doc/refman/5.1/en/load-data.html[/url] | |
Re: [url]http://forums.mysql.com/read.php?98,107850,112494#msg-112494[/url] | |
Re: Step back to Delphi... (btw, i also like the other mentioned languages) | |
Re: If you've installed the silverlight toolkit, then the controls are shown after you've started a new silverlight project. | |
Re: leave is a mysql statement. try putting backticks around it. [code] $sqlquery = "insert into `leave` (session_id,empid,`leave`,year) values('$_SESSION[id]', '$_SESSION[empid]', '$_POST[leavenum]', '$_POST[year]')"; $res = mysql_query($sqlquery,$link) or die('Error: ' . mysql_error()); [/code] | |
Re: try this: [code] ((?:[A-Za-z_][A-Za-z_0-9]*)(\s*)(.*)\)(\s*)(;)) [/code] | |
Re: You can include the images as a link to the website (which is easiest if the images are online already). Like this: [code] <img src="http://www.example.com/images/myimage.jpg" /> [/code] Another option could be to create a multipart email, but I'm not familiar enough to give an example. Probably someone else can give … | |
Re: I think you should use the 'name' attribute instead of the id attribute to name your controls. This is used in the POST or GET to the next page. Do not use the txtParam_ prefix on it, because your sql cannot handle it. [code=php] echo "<select name='" . $table['table'] . … | |
Re: If you load your strings into a tstringlist, then you can use the random function to select a random line. | |
Re: I think it doesn't make a difference when compared to div's. If he wants to make his point, a good test would be to recreate a 'css zen garden' page. I'm sure it's possible and it would help him explain his point. Then it would be possible to compare them … | |
Re: it means it is searching for &acct= and returns everything that follows until it hits a " | |
Re: Some nice examples: [url]http://demos.telerik.com/silverlight/[/url] | |
Re: [code] <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"> <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/> <xsl:template match="FlowControl"> <body> <xsl:apply-templates select="Run" /> </body> </xsl:template> <xsl:template match="Run"> <xsl:if test="@FontStyle = 'Italic'"> <xsl:text disable-output-escaping="yes"><em></xsl:text> </xsl:if> <xsl:if test="@FontWeight = 'Bold'"> <xsl:text disable-output-escaping="yes"><strong></xsl:text> </xsl:if> <xsl:value-of select="."/> <xsl:if test="@FontWeight = 'Bold'"> <xsl:text disable-output-escaping="yes"></strong></xsl:text> </xsl:if> <xsl:if test="@FontStyle = 'Italic'"> … | |
Re: You can either use require_once to include another file, or if you want something more fancy, you could use templates (smarty for example). | |
Re: What is the problem ? The pseudo code is as it should be. You only have to replace it with actual statements. | |
Re: I think the intention is to reduce all the spaces between the values in the xml to just one. | |
Re: [code=php] $loopnum = 0; foreach( $dataset as $row ) { $xmlEmails = $row->getElementsByTagName( "link" ); $xmlEmail = $xmlEmails->item(0)->nodeValue; $title = get_remotetitle($xmlEmails->item(0)->nodeValue); echo '<a href="'.$xmlEmail.'">'.$title.'</a><br />'; echo "<input type=\"hidden\" name=\"loopnum\" value=\"$loopnum\">"; $loopnum++; } [/code] | |
Re: this will get you started: [url]http://nl.php.net/manual/en/function.pg-query.php[/url] | |
Re: An old fashioned .com file that executes ? How would you want to modify that ? | |
Re: I normally use the mysql functions for this: [url]http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html[/url] | |
Re: phew. this will take a while. bit more code then i expected... | |
Re: SELECT id, aes_decrypt (sort_code,'key') AS sort_code FROM customer | |
Re: Each comment line should be in it's own <tr>. You now have all comments inside one <td>. That won't work. I'll see if I can post code later. | |
Re: You're missing the closing curly bracket. [code=php] <?php $filename = 'http://static.php.net/www.php.net/images/php.gif'; $file = fopen($filename, 'rb'); $size = getimagesize($file); switch ($size['mime']) { case "IMAGETYPE_GIF": echo "Image is a gif"; break; case "IMAGETYPE_JPEG": echo "Image is a jpeg"; break; case "IMAGETYPE_PNG": echo "Image is a png"; break; } ?> [/code] | |
Re: [code=php] <?php $result = mysql_query('SELECT MAX(mailer_id) FROM mailer_directory')or exit(mysql_error()); $row = mysql_fetch_array($result); echo 'the max mailer_id is ' . $row[0]; ?> [/code] | |
Re: HTTP/1.1 500 is a server error. Try a different site first. Maybe it's not your problem. | |
Re: You can use the LIMIT option in the sql SELECT statement. | |
Re: Since you're using class variables, you need to specify them using $this. [code=php] public function addPlayer (Player $x) { $this->plist[] = $x; echo "players added. total: ".count($this->plist); } [/code] | |
Re: [code=php] <?php $id = $_GET['id']; $xml = new SimpleXMLElement(file_get_contents('item.xml')); $item = $xml->xpath("/root/items/item[@id='{$id}']"); print_r($item); echo '<hr/>'; $items = $item[0]->xpath("../..");//want to go to the items print_r($items); ?> [/code] I've put print_r and a line in between, so you can see what happens. xpath returns an array, even though there is only one … | |
Re: See the "Documentation for the latest release" on pear.php.net. It has the test file. Learn from that, since the package is still undocumented. |
The End.