8,966 Posted Topics

Member Avatar for dwdata

[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]

Member Avatar for Manuz
0
114
Member Avatar for BigDan531

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]

Member Avatar for pritaeas
0
97
Member Avatar for sandeshcha

[url]http://code.google.com/apis/maps/articles/phpsqlajax.html[/url] [url]http://www.systemsevendesigns.com/phoogle[/url]

Member Avatar for pritaeas
0
31
Member Avatar for toad78

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.

Member Avatar for pritaeas
0
144
Member Avatar for Toxikr3

This may be an option: [url]http://www.phpfreaks.com/forums/index.php?topic=135013[/url]

Member Avatar for Toxikr3
0
241
Member Avatar for gruebz

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.

Member Avatar for timothybard
0
111
Member Avatar for NoID

if(isset $_GET['id'])) is missing a parenthesis, should be [code] if(isset($_GET['id'])) [/code]

Member Avatar for spthorn
0
147
Member Avatar for sanjaypandit

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).

Member Avatar for Manuz
0
142
Member Avatar for gromamatej
Member Avatar for kbjustin

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]

Member Avatar for kbjustin
0
80
Member Avatar for cougarclaws

I think it should be: [code] // calcTotStat += .5; roundCalc = (int) (calcTotStat / 1000); if ((int) calcTotStat % 1000 > 0) roundCalc++; roundCalc *= 1000; [/code]

Member Avatar for cougarclaws
0
4K
Member Avatar for aditi_19
Member Avatar for Airshow
0
236
Member Avatar for innocent.boys

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]

Member Avatar for kvprajapati
0
296
Member Avatar for nobby85

Search for mysql within this forum. A lot of questions have already been answered.

Member Avatar for peter_budo
0
48
Member Avatar for gagan22

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]

Member Avatar for guru12
0
142
Member Avatar for diafol

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]

Member Avatar for diafol
0
95
Member Avatar for jay.barnes

If you are trying to update the same column to different values on different conditions, then you'll have to use two separate queries.

Member Avatar for jay.barnes
0
91
Member Avatar for sam023

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.

Member Avatar for blocblue
0
1K
Member Avatar for squeege321

This works for me: [code] if screen.fonts.IndexOf('Arial') > -1 then MessageDlg('Arial installed', mtInformation, [mbok], 0); [/code]

Member Avatar for Duoas
0
160
Member Avatar for itsrahulk

Something like this ? [code] RewriteRule ^news\/(.*)\/(.*)$ /news.php?id=$1&page=$2 [/code] [url]http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html[/url]

Member Avatar for Utte
0
155
Member Avatar for sunilsinha
Member Avatar for pritaeas
0
59
Member Avatar for bubbafunk1

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]

Member Avatar for bubbafunk1
0
105
Member Avatar for assaf
Member Avatar for assaf
0
47
Member Avatar for OmniX

I don't think any technology would be able to correctly recreate a photoshop design in xhtml. What exactly do you have in mind ?

Member Avatar for sikka_varun
0
102
Member Avatar for treybraid

[code=php] <td> <?php echo '<a href="'; echo $this->team->t_official_website; echo '">'; echo $this->team->t_official_website; echo '</a>'; ?> </td> [/code]

Member Avatar for pritaeas
0
77
Member Avatar for navyadvr
Member Avatar for sharal

the query is wrong. there are no spaces between INTO and your tablename, therefor the query will return an error.

Member Avatar for pritaeas
0
80
Member Avatar for whiteyoh

Probably after line: $myrow = mysql_fetch_array($result); If the query fails, $myrow will be false instead of an array.

Member Avatar for Airshow
0
2K
Member Avatar for sharal
Member Avatar for modesto007
Member Avatar for Josh Connerty
0
176
Member Avatar for jorgeberber

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 …

Member Avatar for jorgeberber
0
97
Member Avatar for nigelburrell

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.

Member Avatar for nigelburrell
0
165
Member Avatar for dudegio

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.

Member Avatar for Airshow
0
232
Member Avatar for SKANK!!!!!

Just download the stylesheet and see for yourself. Your first link uses a background image, the second the border property.

Member Avatar for pritaeas
0
86
Member Avatar for kaushik259106

You could return your xhtml in a cdata block. [url]http://www.w3schools.com/xmL/xml_cdata.asp[/url]

Member Avatar for pritaeas
0
106
Member Avatar for santhanalakshmi

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]

Member Avatar for pritaeas
0
2K
Member Avatar for sonya_sml

[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]

Member Avatar for pritaeas
0
84
Member Avatar for drakkn

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, …

Member Avatar for kireol
0
108
Member Avatar for jegham

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) …

Member Avatar for Tulsa
0
118
Member Avatar for maydhyam
Member Avatar for odysea

[code=php] $result = mysql_query($query, $admindbconnection) or die('Error : ' . mysql_error()); [/code] [url]http://php.net/manual/en/function.mysql-query.php[/url]

Member Avatar for pritaeas
0
149
Member Avatar for Loopster

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.

Member Avatar for !!underlink!!
0
163
Member Avatar for odysea

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.

Member Avatar for odysea
0
155
Member Avatar for m-hrt

[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]

Member Avatar for m-hrt
0
110
Member Avatar for rmcgrady

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; …

Member Avatar for barbz
0
211
Member Avatar for coolmind259

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.

Member Avatar for vidaj
0
455
Member Avatar for alvoryx

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.

Member Avatar for alvoryx
0
88
Member Avatar for jeffc418

Here is a nice article: [url]http://www.sitepoint.com/article/php-xml-parsing-rss-1-0/[/url]

Member Avatar for pritaeas
0
103
Member Avatar for gijoe2cool

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]

Member Avatar for bobchrist
0
102
Member Avatar for shefeekj

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

Member Avatar for shefeekj
0
213

The End.