8,966 Posted Topics
Re: [code=php] if ($result) { echo '<ol>'; while ($row = mysql_fetch_assoc($result)) { echo '<li>' . $row['username'] . '</li>'; } echo '</ol>'; } else { echo 'no records found'; } [/code] | |
Re: Change: [code=php] $result = mysql_query($sql) or die (mysql_error()); if ( $result = $md5pass ) { // ... [/code] To: [code=php] $result = mysql_query($sql) or die (mysql_error()); if ($result) { $record = mysql_fetch_assoc($result); if ( $record['user_pwd '] == $md5pass ) { // ... } [/code] | |
Re: [url]http://code.google.com/apis/maps/articles/phpsqlajax.html[/url] [url]http://www.systemsevendesigns.com/phoogle[/url] | |
Re: I see [code=php] $_SESSION['MM_Username'] = NULL; $_SESSION['MM_UserGroup'] = NULL; $_SESSION['PrevUrl'] = NULL; [/code] But nowhere are they set to a value. I think you should set them after verifying. | |
Re: This may be an option: [url]http://www.phpfreaks.com/forums/index.php?topic=135013[/url] | |
Re: If the software is used only in-house, I don't see the need of using a webserver (asp/asp.net/php). I'd choose the C# option. | |
Re: if(isset $_GET['id'])) is missing a parenthesis, should be [code] if(isset($_GET['id'])) [/code] ![]() | |
Re: try [code=php] $c_closing_query=mysql_query($c_closing) or die(mysql_error()); [/code] Looks like your query returns an error. This will display it (assuming the connection to mysql succeeded). | |
Re: Firewall or router in between ? | |
Re: If all fields are from the same table, I would just SELECT * and use the selected fields for displaying them. [code=php] // ... omitted $row = mysql_fetch_assoc($result); foreach ($_POST['field'] as $column) echo $row[$column] . '<br/>'; [/code] | |
Re: I think it should be: [code] // calcTotStat += .5; roundCalc = (int) (calcTotStat / 1000); if ((int) calcTotStat % 1000 > 0) roundCalc++; roundCalc *= 1000; [/code] | |
Re: [icode]$url = "clientvendor.php?filter1=$filtertype&filter2=$filterstatus";[/icode] | |
Re: if you already have your data in an array then you can built it. [code=php] $start = $_GET['page']; // yourlink.php?page=0 $items = 5; for ($i = $start * $items; $i < ($start * ($items + 1)); $i++) { // output your $array[$i] } [/code] | |
Re: you need to group your checkboxes [code] <input type="checkbox" name="grp[]" value="1" /> <input type="checkbox" name="grp[]" value="2" /> [/code] Then you can use [code=php] foreach ($_POST["grp"] as $key => $value) { # delete/submit record with id $value } [/code] | |
![]() | Re: This will get you started I hope. [url]http://en.wikipedia.org/wiki/URL_redirection#Using_.htaccess_for_redirection[/url] [url]http://httpd.apache.org/docs/2.2/howto/htaccess.html[/url] ![]() |
Re: If you are trying to update the same column to different values on different conditions, then you'll have to use two separate queries. | |
Re: Try this: [code=php] $query="call insert_1('$gname',$userid,$gtype)"; [/code] Since the last 2 parameters are int's, i think they don't need quotes. | |
Re: This works for me: [code] if screen.fonts.IndexOf('Arial') > -1 then MessageDlg('Arial installed', mtInformation, [mbok], 0); [/code] | |
Re: Something like this ? [code] RewriteRule ^news\/(.*)\/(.*)$ /news.php?id=$1&page=$2 [/code] [url]http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html[/url] | |
Re: Zend Optimizer ? [url]http://blog.jlbn.net/?p=52[/url] | |
Re: I use navicat. It has a 30 day trial which you can try. It allows import from several file types. [url]http://navicat.com/en/products/navicat_mysql/mysql_overview.html[/url] | |
Re: [url]http://www.lotsofcode.com/php/tag-cloud.htm[/url] | |
Re: I don't think any technology would be able to correctly recreate a photoshop design in xhtml. What exactly do you have in mind ? | |
Re: [code=php] <td> <?php echo '<a href="'; echo $this->team->t_official_website; echo '">'; echo $this->team->t_official_website; echo '</a>'; ?> </td> [/code] | |
Re: auto increment works on integer fields. | |
Re: the query is wrong. there are no spaces between INTO and your tablename, therefor the query will return an error. | |
Re: Probably after line: $myrow = mysql_fetch_array($result); If the query fails, $myrow will be false instead of an array. | |
Re: [code=php] $message=2"$phoneoff"; //should be $message2="$phoneoff"; [/code] | |
Re: You could create a db holding all the different combinations, but that is probably not a very workable solution. In my opinion you should work with a base price, so you get a general price. Then you could add different combinations as upgrades/downgrades. In any case, somewhere this information needs … | |
Re: Since you mention Joomla, it is possible that this is Joomla's way of storing e-mail addresses. You could use a regular expression to strip all unnecessary code, but there could be a lot of exceptions. Maybe Joomla has a function to retrieve it built-in. | |
Re: Not possible from within an XML file. However, you could for example use a .htaccess file to redirect news.xml to a php file which will generate and output the XML. | |
Re: Just download the stylesheet and see for yourself. Your first link uses a background image, the second the border property. | |
Re: You could return your xhtml in a cdata block. [url]http://www.w3schools.com/xmL/xml_cdata.asp[/url] | |
Re: Your problem might be the space between -p and your password. The command i use is this one [code] mysqldump --host=localhost --user=pritaeas --password=blergh --all-databases --single-transaction --quick [/code] | |
Re: [code] <xsl:for-each select="Reply/ApplicationReplies/ApplicationReply"> <xsl:choose> <xsl:when test="@Name='credit'"> <xsl:value-of select="concat($sep, $sign, /Reply/Amount, $sep)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($sep, /Reply/Amount, $sep)"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> [/code] | |
Re: If the webserver is in your intranet it would be possible to generate a file on the despatch print server, where you could poll for new files and print them. However, if your webserver is hosted this is not possible. You would need to create a webservice or email them, … | |
Re: Mean something like this? [code] select '1' as rownum, count(serviceid) as id from serviceslog where serviceid='1' and partition not like '%test%' and component not like '%test%' and component not like '%do not bill%' and occurence between '2009-05-01 05:00:00' and '2009-06-01 04:59:59' group by serviceid union select '2' as rownum, count(serviceid) … | |
Re: Maybe you can use the TIMEDIFF function of mysql. | |
Re: [code=php] $result = mysql_query($query, $admindbconnection) or die('Error : ' . mysql_error()); [/code] [url]http://php.net/manual/en/function.mysql-query.php[/url] | |
Re: your .reviewbox is not wide enough to contain both sub-div's. Increasing it to 800px will work, or you'll need to make the other div's a bit smaller. | |
Re: select max(id) from table will give you the max id used. Be careful, you can't rely on this being the id that will actually be used. | |
Re: [code=php] $card_number = $_POST["card_number1"] . $_POST["card_number2"] . $_POST["card_number3"] . $_POST["card_number4"]; $expiry_date = $_POST["card_exp_mm"] . $_POST["card_exp_yy"]; [/code] | |
Re: looks like it is not parsing the php. maybe it's best to separate the php and xml. personally i use smarty templates to build the rss. my rss code looks like this: <?php require_once 'smarty/Smarty.class.php'; $tpl = new Smarty(); require_once './inc/defines.inc.php'; $tpl->force_compile = false; $tpl->caching = 1; $tpl->cache_lifetime = 14400; … | |
Re: I use this in my htaccess [code] <Files ~ "^[^\.]+$"> ForceType application/x-httpd-php5 </Files> [/code] It will treat any file without slash and dot as a php5 file. | |
Re: I don't understand, how you can connect remotely and yet are unable to do a backup. If that user has grant rights, just create a new user with full rights on localhost. | |
Re: Here is a nice article: [url]http://www.sitepoint.com/article/php-xml-parsing-rss-1-0/[/url] | |
Re: Missing: [code] <atom:link href="http://www.fallenangelunlimited.com/podcasts.xml" rel="self" type="application/rss+xml"/> [/code] E-mail address should be in the form: [code] joeguimarin@fallenangelunlimited.com (Joe Guimarin) [/code] If you validate here, all will be explained via [help] links: [url]http://validator.w3.org/feed/[/url] | |
Re: With cUrl you can download the page. If you have it you can process it like a string. You can start here: php.net/curl |
The End.