Forum: PHP 23 Days Ago |
| Replies: 6 Views: 284 ampersand hash 039; if I remember correctly. |
Forum: PHP 23 Days Ago |
| Replies: 6 Views: 284 Good suggestions venkat0904. Certainly worth a try.
Airshow |
Forum: PHP 23 Days Ago |
| Replies: 6 Views: 284 I don't think it's the !Doctype.
Could be your editor. MS Word with "smart quotes" turned on is a particular annoyance. Maybe other editors too.
First thing to try is Notepad to... |
Forum: PHP 26 Days Ago |
| Replies: 2 Views: 362 Shishtawitch,
The code looks like it should work, however. two things .....
1. At the line $id_2 = $g["id"];, surely $id_2 must be equal to $id because it comes from a row resulting from a... |
Forum: PHP 28 Days Ago |
| Replies: 8 Views: 402 |
Forum: PHP 29 Days Ago |
| Replies: 8 Views: 402 Hi Ardav. That is indeed another viable interpretation.
Whitestream6, read my signature.
Airshow |
Forum: PHP 29 Days Ago |
| Replies: 8 Views: 402 Remember that print_r() "displays information about a variable in a way that's readable by humans" (from php manual).
print_r() is therefore good for debug-inspection of the HTML but not the right... |
Forum: PHP 30 Days Ago |
| Replies: 8 Views: 402 Whitestream6,
Do you mean that you want to build an HTML table, storing chunks in a php array as you go?
If so, then consider this pseudo code:
var htmlTable = array();//initialise array... |
Forum: PHP 30 Days Ago |
| Replies: 1 Views: 166 What level?
What's the course title?
Do they provide written guidelines for projects?
Airshow |
Forum: PHP Nov 18th, 2009 |
| Replies: 4 Views: 347 Lifeworks,
Wow!! So the blind CAN lead the blind!!
Well done indeed.
Airshow |
Forum: PHP Nov 18th, 2009 |
| Replies: 4 Views: 347 lifeworks,
I'm not certain but think you have to compose your mod_rewrite (http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html) rule such that it passes on the originally request url as a... |
Forum: PHP Nov 4th, 2009 |
| Replies: 12 Views: 375 Evo, we are clearly of one mind here. :cool:
Airshow |
Forum: PHP Nov 4th, 2009 |
| Replies: 12 Views: 375 That's exactly what I thought Evo but I sort of ignored it because the question is posed in the PHP forum.
It's certainly possible to replace the contents of individual table cells using... |
Forum: PHP Nov 4th, 2009 |
| Replies: 12 Views: 375 That's a good point Ardav, which alerts me to an error in my post above.
My " [1], [2], [3], [4] " should read " [0], [1], [2], [3] "
Airshow |
Forum: PHP Nov 4th, 2009 |
| Replies: 12 Views: 375 This doesn't make sense.
Your query yields only one result ($result), which is (in all probability) "2-dimensional"; an array of arrays. The top level array should be indexed by integer ([1],... |
Forum: PHP Nov 4th, 2009 |
| Replies: 12 Views: 375 MDanz,
You must build the table as you go, in two nested loops :-
Outer loop - table rows
Inner loop - table cells (forming colums)
On the assumption that your $report rows should each be... |
Forum: PHP Oct 27th, 2009 |
| Replies: 4 Views: 273 Either you have or I have jomanlk. :ooh:
Given that Javascript is well equipped with setTimeout and setInterval I can't see that a cookie would be necessary.
My solution does assume that on... |
Forum: PHP Oct 27th, 2009 |
| Replies: 4 Views: 273 DemonGal,
There's a couple of ways to go.
1) AJAX: A script, which is scheduled to grab a new image url from a corresponding server-side script every 5 minutes, then DHTML it into the DOM. This... |
Forum: PHP Oct 25th, 2009 |
| Replies: 8 Views: 433 Tatt,
for ($i=1;$i<=$num;$i++){
echo "<form>";
echo "<label for=\"words$i\">Word $i</label><input type=\"text\" name=\"words[$i]\" id=\"words$i\" /><br />";
}
echo "</form>";
<form> is... |
Forum: PHP Oct 20th, 2009 |
| Replies: 3 Views: 377 Sstewart,
Personally, I would do it like this:
$query = "SELECT
dis_risk_RecordCheck,
dis_risk_DisclosureForm
FROM cus_discipline_riskmgmnt";
$result = @mysql_query ($query); //... |
Forum: PHP Sep 3rd, 2009 |
| Replies: 2 Views: 371 Barman007,
At top of file your have
$apiWidth = $conArr[0]->mapHeight;
$apiHeight = $conArr[0]->mapWidth;
which looks like heigh<===>width inversion.
Then you could try: |
Forum: PHP Aug 25th, 2009 |
| Replies: 4 Views: 583 trtcom1,
I think it's simple - to select a course, you need just one select menu, not two.
<SELECT NAME="course">
<OPTION VALUE="101">MATHS</OPTION>
<OPTION VALUE="102">BIOLOGY</OPTION>... |
Forum: PHP Aug 20th, 2009 |
| Replies: 5 Views: 222 We've all been there.
Airshow |
Forum: PHP Aug 20th, 2009 |
| Replies: 5 Views: 222 kk29 is right, it's just a question of getting those devilish quotes in the right place.
By the way, the line break between tags won't appear as a line break in the served html. For that you need... |
Forum: PHP Aug 13th, 2009 |
| Replies: 5 Views: 457 Quickbird,
There's every chance that the forum is one of the big open source systems - eg. phpBB, phpNuke, yaBB, vBulletin etc etc.
If so, then first look in the admin control panel and see if... |
Forum: PHP Aug 11th, 2009 |
| Replies: 2 Views: 224 Your php code will be something like this, though the precise query commands may differ:
$query = "your sql here";
$qry_result = mysql_query($query) or die(mysql_error());
$myArray =... |
Forum: PHP Aug 11th, 2009 |
| Replies: 12 Views: 494 Avukadomusic,
In your post #7 in this topic you said :
Is this the entire $str at that point in the code or have you posted an extract from a longer string (ie the whole page)?
Airshow |
Forum: PHP Aug 10th, 2009 |
| Replies: 4 Views: 474 Pbpyrojust,
That's good.
Can you post the php code where you read $_POST['radio'] or $_GET['radio'] and set $yes and $no. It must be somewhere in the php file above the $message = .... block... |
Forum: PHP Aug 10th, 2009 |
| Replies: 14 Views: 764 Very nearly Tekkno.
Data comes from the database. There is no fear of injection because the parameters that determine the SQL query pass through a lookup process that will only return good... |
Forum: PHP Aug 10th, 2009 |
| Replies: 14 Views: 764 Tekkno,
From your question, I'm not completely sure I've explained it adequately - it's your phrase "Once the data is in the array", though maybe it's just me reading it wrongly.
The arrays... |
Forum: PHP Aug 9th, 2009 |
| Replies: 14 Views: 764 Tekkno,
First, please allow me to correct a couple of lines I posted above. I must have been more tired at the time than I realised.
if( isset($_GET['cat']) && isset($categories[$_GET['cat']])... |
Forum: PHP Aug 9th, 2009 |
| Replies: 12 Views: 494 Mmm, that's a bit odd because the words in the string are in a different order.
Assuming:
' price: <span>
798 $</span> '
to be what is actually served, then try:
... |
Forum: PHP Aug 9th, 2009 |
| Replies: 12 Views: 494 Avukado,
As Salem says - debug statement(s).
Echo $url, $str and $matches and see if they are set to what you expect.
Airshow |
Forum: PHP Aug 8th, 2009 |
| Replies: 14 Views: 764 You could simply set up a couple of associative (hash) arrays and use them to look up "coded" values:
$categories = array(
'a' => 'cat',
'b' => 'dog',
'c' => 'orange',
'd' => 'apple'
);
... |
Forum: PHP Aug 7th, 2009 |
| Replies: 12 Views: 494 It's possible that some server directive has been altered (or your site has been rehosted), and file_get_contents($url); is no longer retreiving file contents, particularly if the file is served from... |
Forum: PHP Aug 7th, 2009 |
| Replies: 1 Views: 397 Whitestream,
Your url can't be similar to both of these examples. You must choose one or the other, and unless you want to make a lot of work for yourself, then use the first type.
The second... |
Forum: PHP Aug 6th, 2009 |
| Replies: 4 Views: 474 Pbpyrojust,
The answer will lie in where you set $yes and $no. Could you post the code?
Airshow |
Forum: PHP Aug 4th, 2009 |
| Replies: 5 Views: 720 Whitey,
Well done .... but you might like to consider the following:
As a matter of design as opposed to coding, I would change things a little (probably less than you might think), thus... |
Forum: PHP Aug 4th, 2009 |
| Replies: 5 Views: 720 Whitey,
This is very confused! From the user perspective, what are you trying to achieve?
Airshow |
Forum: PHP Aug 3rd, 2009 |
| Replies: 3 Views: 301 Shaiss,
That should be trivial. I guess you just replace [2] and [3] with the column names, eg. ['SKU'] and ['Qty'] (or similar).
However, I have just thought ...... if the data is in a... |