Search Results

Showing results 1 to 9 of 9
Search took 0.00 seconds.
Search: Posts Made By: Fest3er ; Forum: PHP and child forums
Forum: PHP Jul 10th, 2009
Replies: 4
Views: 537
Posted By Fest3er
<?php
// Set array parts
$a = array("1" => "one", "2" => "two");
$b = array("a" => "aye", "b" => "bee");
$c = array("a scalar", $a, $b);

// Extract a sub-element from an array in the...
Forum: PHP Jul 5th, 2009
Replies: 8
Views: 453
Posted By Fest3er
Or, in plain English, you are overwriting the result of your SELECT query with the result of your DELETE query, which is not suitable for fetching rows from. Thus your script ABENDs at the top of the...
Forum: PHP May 24th, 2009
Replies: 10
Views: 536
Posted By Fest3er
I tripped on this a few times myself, early on.

As you have discovered, there's a strict order in which data are to be sent to the browser. Headers first, then the HTML. It isn't that 'the header...
Forum: PHP May 22nd, 2009
Replies: 2
Views: 784
Posted By Fest3er
If your table has exactly one row in it and it has exactly one field, you can simply$query_string = "UPDATE my_table SET my_column='$item'";
mysql_query($query_string) or die ...
This will update...
Forum: PHP Apr 24th, 2009
Replies: 5
Views: 1,121
Posted By Fest3er
You should go to PayPal's dev site and see how to do it properly. They have a method by which your site receives the form data, processes it, then sends the user off to PayPal with a transaction...
Forum: PHP Mar 24th, 2009
Replies: 9
Views: 629
Posted By Fest3er
Will it help if I shout?

DELETE THE LINE WHERE YOU CALL MYSQL_FETCH_ASSOC()! IT IS EATING THE FIRST ROW RETURNED. IT IS THE LINE RIGHT ABOVE THE LINE WHERE YOU CALL MYSQL_NUM_ROWS()! DELETE THE...
Forum: PHP Mar 24th, 2009
Replies: 9
Views: 629
Posted By Fest3er
Let me try again. If there is only one matching row in the database, the mysql_fetch_assoc() function grabs it, leaving nothing for your while loop to do. If there is more than one matching row, your...
Forum: PHP Mar 23rd, 2009
Replies: 9
Views: 629
Posted By Fest3er
Are you missing the connect statement, like:$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');

And why are you fetching data into an associative array via mysql_fetch_assoc() and...
Forum: PHP Mar 23rd, 2009
Replies: 9
Views: 629
Posted By Fest3er
In short, "WHERE field=value", you should have "value" inside single quotes ('). I stubbed my toes on this many times until I learned to put the value in quotes. Unless it was a function, of course.
Showing results 1 to 9 of 9

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC