8,966 Posted Topics

Member Avatar for PF2G

If you don't include the function, then top.php can't execute it. I think line 13 is missing an echo.

Member Avatar for DariusG
0
116
Member Avatar for danielkull

Since you'll be running PHP, why not choose the [URL="http://www.zend.com/en/products/php-cloud/"]Zend platform on Amazon[/URL].

Member Avatar for Pri Bhowmik
0
156
Member Avatar for maxxxx
Member Avatar for RockyMtnHi
Member Avatar for pritaeas
0
217
Member Avatar for chandbasha
Member Avatar for newbie14

According to the example/tutorial you should reset the column after using MultiCell. See tutorial 4 for code.

Member Avatar for newbie14
0
966
Member Avatar for tieastie

I think it is best if you change your function to this: [CODE] function hasChild($hc) { if (($hc != null) && $hc->hasChildNodes()) { foreach ($hc->childNodes as $c) { if ($c->nodeType == XML_ELEMENT_NODE) return true; } } return false; } [/CODE] I added the null check, because somewhere in your code …

Member Avatar for tieastie
0
944
Member Avatar for shapam

What password do you mean ? If you mean that from a user, then no, you can't (it's a hash).

Member Avatar for pritaeas
0
2K
Member Avatar for capton
Member Avatar for nathanpacker

[QUOTE=BradChesney79;1730660]mysql_query will return false if no records are returned.[/QUOTE] This is incorrect. [ICODE]mysql_query[/ICODE] will return [ICODE]true[/ICODE] (or a resource) if the query succeeds. Even if there are no results, the query is still successful. If [ICODE]mysql_query[/ICODE] returns [ICODE]false[/ICODE], then the query is incorrect (or the user does not have permission).

Member Avatar for BradChesney79
0
2K
Member Avatar for suhaildawood

Try: [CODE] if ($("#about").css("opacity") == 0.47) { } else { } [/CODE] With a value it sets, without it gets.

Member Avatar for suhaildawood
0
1K
Member Avatar for jacksantho
Member Avatar for gilgil2

Either use: [CODE] echo '<a href="http://website.com/' . $code . '">The Kooks</a>'; [/CODE] or: [CODE] echo "<a href=\"http://website.com/$code\">The Kooks</a>"; [/CODE]

Member Avatar for gilgil2
0
104
Member Avatar for liphoso

The dollar sign has to be after the single quote, not before. [CODE] mysql_query("UPDATE products SET quantity = quantity - 1 WHERE product = '$product'"; [/CODE]

Member Avatar for hari.sarvothama
0
143
Member Avatar for inni2626

mgs_user is not a valid user, or you supplied the wrong password, or the user has no permissions.

Member Avatar for pritaeas
0
67
Member Avatar for showman13

You can do a [iCODE]WHERE position_1 NOT IN (SELECT mem_id FROM members)[/iCODE] If you want more detailed info, post your tables structures and some example data.

Member Avatar for showman13
0
201
Member Avatar for marcus03

Line 44 has an opening curly bracket too much. You can avoid these errors easily, by indenting your code better.

Member Avatar for mikulucky
0
80
Member Avatar for stoopkid

[url]http://php.net/manual/en/ini.core.php[/url] Search on the page for [iCODE]post_max_size[/iCODE]

Member Avatar for stoopkid
0
270
Member Avatar for shamsidah

Can you explain better what you mean by "Cannot run in IE" ? It makes no sense, PHP runs on the server, and only the output is displayed in the browser.

Member Avatar for diafol
0
117
Member Avatar for labise

Check your double quotes, they are in really weird places. I think you pasted [iCODE]$list .= "[/iCODE] too often.

Member Avatar for pritaeas
0
67
Member Avatar for purveshbharucha

[url]http://www.nouveller.com/web-design/how-to-easily-display-a-facebook-page-feed-on-your-website/[/url]

Member Avatar for pritaeas
0
38
Member Avatar for davy_yg
Member Avatar for HemZone
Member Avatar for peterpa
Member Avatar for peterpa
0
113
Member Avatar for jonnyboy12

[CODE] while ($row = mysql_fetch_array($result)) { echo 'Name: ' . $row['name']; echo ' Age: ' . $row['age']; } [/CODE]

Member Avatar for urtrivedi
0
138
Member Avatar for Buppy

[quote]exclusive: When exclusive is set to true, recursive model deletion does the delete with a deleteAll() call, instead of deleting each entity separately. This greatly improves performance, but may not be ideal for all circumstances.[/quote] Found under hasMany here: [url]http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html[/url] Do you have that set ? Have you tried specifying …

Member Avatar for pritaeas
0
800
Member Avatar for zeeshan_kust

Since jQuery opens your popup, it should be jQuery that fills the editboxes with the right text.

Member Avatar for anggun
0
401
Member Avatar for vijaykavin10
Member Avatar for vijaykavin10
0
378
Member Avatar for ginG3R

If you have phpmyadmin on both systems, then you can use the database export and import tool.

Member Avatar for ginG3R
0
229
Member Avatar for joy39
Member Avatar for joy39
0
164
Member Avatar for davy_yg

For issue 2: [CODE=html] <input type="password" name="password" id="password" /> [/CODE]

Member Avatar for HITMANOF44th
0
224
Member Avatar for sugumarclick

What is the output you get, and what is the output you want ? If you look at [URL="http://php.net/preg_match"]the manual[/URL], you can see that [iCODE]$match[/iCODE] is an integer. If you want to get the text, you'll need to use [iCODE]$table[1][/iCODE] (assuming your regex is correct).

Member Avatar for pritaeas
0
200
Member Avatar for srdva59

If the class is a one off copy of the table, why not let the class load it's columns and default values from the table. See the [URL="http://dev.mysql.com/doc/refman/5.5/en/show-columns.html"]mysql manual[/URL] for more information. From the PHP side, I suggest you ditch your class properties, and switch to the __get() magic method. …

Member Avatar for hakeemtunde
0
192
Member Avatar for morrisproject

Are you perhaps using MyIsam tables ? Another reason could be (which I encountered myself recently) that your webhost has that option turned off.

Member Avatar for smantscheff
0
149
Member Avatar for Jashandeep

[url]http://php.net/manual/en/security.php[/url] [url]http://phpsec.org/projects/guide/[/url] [url]http://phpsecurity.org/[/url] (two free chapters)

Member Avatar for pritaeas
0
74
Member Avatar for Z33shan

Dump it to an [iCODE].sql[/iCODE] file, it will contain the full structure and data.

Member Avatar for arthpal
0
242
Member Avatar for extjac

The last one is IMHO the right way to do it. Since you are using classes, there should be no need for globals. Passing you DB class in the constructor for account is valid.

Member Avatar for Stefano Mtangoo
0
187
Member Avatar for imanegr
Member Avatar for pritaeas
0
68
Member Avatar for learner guy
Member Avatar for RazorRamon

You can build your query, based on the output of the [iCODE]SHOW DATABASES[/iCODE] query. Note that this can get real slow.

Member Avatar for pritaeas
0
80
Member Avatar for Eelyn123

Are you trying to execute PHP code in a javascript function ? This is not possible, unless you use AJAX.

Member Avatar for pritaeas
0
148
Member Avatar for anthonyjpv

[QUOTE=anthonyjpv;1727616]How to INSERT INTO product table linking to specified Category Table?[/QUOTE] 1. Make sure your category is in your category table 2. If it is, get it's ID 3. Insert your product with that category ID

Member Avatar for anthonyjpv
0
193
Member Avatar for aradhana123
Member Avatar for theakshay

A jQuery solution can be found here: [url]http://www.pritaeas.net/demos/jq-dropdown/[/url] cities.php is as simple as this: [CODE] <?php include 'defines.inc.php'; // my connection settings $state = isset($_GET['state']) ? $_GET['state'] : 0; $cities = array (); if ($state > 0) { $link = @mysql_connect(HOST, USER, PASS); @mysql_select_db(DATABASE); $query = "SELECT id, name FROM …

Member Avatar for pritaeas
0
214
Member Avatar for 21122012

First read the [URL="http://www.daniweb.com/web-development/php/threads/191031"]sticky thread[/URL] on top of this forum.

Member Avatar for EvolutionFallen
0
284
Member Avatar for jabeen123

You need to create an ajax request, you cannot mix php and js like that, only if you need a static result (like fobos' example).

Member Avatar for EvolutionFallen
0
388
Member Avatar for Fireprufe15

Use an array with those five integers, so you can loop it. Then make a function to count distinct values. One of them should have a count of three or more.

Member Avatar for pritaeas
0
139
Member Avatar for freakunleash

Your link tables require the id's of the items you just inserted. You can find these by using [URL="http://php.net/manual/en/function.mysql-insert-id.php"]mysql_last_insert_id[/URL].

Member Avatar for pritaeas
0
438
Member Avatar for accra

[CODE] $query = "SELECT * FROM movlog WHERE driver='$driver' BETWEEN '$date_out' AND '$date_in'"; [/CODE] Make sure that your variables are in the format [iCODE]yyyy-mm-dd[/iCODE] and date_out is smaller than date_in. If that still doesn't work, echo your query, and try it in phpmyadmin.

Member Avatar for pritaeas
0
134
Member Avatar for labise

eregi is not meant to be used anymore, use preg instead. Change: [CODE] $emailCHecker = eregi_replace("`", "", $emailCHecker); [/CODE] to: [CODE] $emailCHecker = preg_replace("/`/", "", $emailCHecker); [/CODE]

Member Avatar for pritaeas
0
188

The End.