Search found 135 matches

by ghadacr
Wed Sep 05, 2007 3:21 am
Forum: PHP - Code
Topic: funny results
Replies: 4
Views: 615

Found the error, the Stored procedure was returning the wrong value from another table in the database....Thanks for the suggestions
by ghadacr
Wed Sep 05, 2007 3:08 am
Forum: PHP - Code
Topic: funny results
Replies: 4
Views: 615

Begby wrote:What happens when you run the stored procedure in an sql gui?
When i run it in query analyzer, the querys execute correctly.....
by ghadacr
Tue Sep 04, 2007 11:30 am
Forum: PHP - Code
Topic: funny results
Replies: 4
Views: 615

funny results

I have a script which inserts data into a database(Thats fine) now what the script does it goes through a loop of how many times it should inset the data(thats fine). As shown below: <?PHP include 'opendb.php'; ?> <?PHP include 'header.php'; ?> <?php extract($_GET); $datefrom= $_GET['$datefrom']; $d...
by ghadacr
Mon Aug 20, 2007 11:43 am
Forum: PHP - Code
Topic: Invalid argument supplied for foreach()
Replies: 13
Views: 919

Thanks CoderGoblin that worked....Cheers
by ghadacr
Mon Aug 20, 2007 11:18 am
Forum: PHP - Code
Topic: Invalid argument supplied for foreach()
Replies: 13
Views: 919

$AvailableFrom is not the array its $HotelRoomID. $HotelRoomID are basically ID numbers within a database..$AvailableFrom only needs to be passed once, and is within the $_GET limits...(I checked)
by ghadacr
Mon Aug 20, 2007 10:55 am
Forum: PHP - Code
Topic: Invalid argument supplied for foreach()
Replies: 13
Views: 919

Thanks for the code everyone.... i think i found what the problem but i'm not sure how to resolve it when the array is passed it goes into a script, where it will check which button is pressed and then redirects it to a certain page that corresponds with the button.. I dont think the header is passi...
by ghadacr
Mon Aug 20, 2007 10:27 am
Forum: PHP - Code
Topic: Invalid argument supplied for foreach()
Replies: 13
Views: 919

The anwser is:

Code: Select all

bool(true)
string(5) "Array"
by ghadacr
Mon Aug 20, 2007 10:17 am
Forum: PHP - Code
Topic: Invalid argument supplied for foreach()
Replies: 13
Views: 919

Yeah i have the [] in the hidden form....
by ghadacr
Mon Aug 20, 2007 9:55 am
Forum: PHP - Code
Topic: Invalid argument supplied for foreach()
Replies: 13
Views: 919

Invalid argument supplied for foreach()

I got this error that is preventing the for loop from working: Warning: Invalid argument supplied for foreach() in C:\on line 11 line 11 is foreach ($_GET['HotelRoomID'] as $selected_hotel) { <?PHP $HotelRoomID = $_GET['HotelRoomID']; $AvailableFrom = $_GET['AvailableFrom']; $dat = str_replace("...
by ghadacr
Tue Aug 14, 2007 11:59 am
Forum: PHP - Code
Topic: Not passing variables
Replies: 6
Views: 584

there is no HTML
by ghadacr
Tue Aug 14, 2007 11:49 am
Forum: PHP - Code
Topic: Not passing variables
Replies: 6
Views: 584

Just as an FYI you should do something like: $ClientDetailID = (isset($_GET['ClientDetailID'])) ? $_GET['ClientDetailID'] : ''; . I did that and there was no response, but only two of the variables are being passed, and that is $ClientDetailID and $HotelRoomID Which are numbers.. Hmmm not sure???
by ghadacr
Tue Aug 14, 2007 11:31 am
Forum: PHP - Code
Topic: Not passing variables
Replies: 6
Views: 584

feyd wrote: header() based redirection requires a full URL, http:// and all.
I took out the http part myself for security reasons......
by ghadacr
Tue Aug 14, 2007 11:01 am
Forum: PHP - Code
Topic: Not passing variables
Replies: 6
Views: 584

Not passing variables

I have a script, based on the button pressed it will forward to a certain page.That bit works fine. What the problem is the variables that are sent are not being passed on to those forwarded pages.... Here is the code: <?PHP //print_r($_GET); $ClientDetailID = $_GET['ClientDetailID']; $HotelRoomID =...
by ghadacr
Wed Aug 08, 2007 9:40 am
Forum: PHP - Code
Topic: Not redirecting
Replies: 4
Views: 471

I got it kind of working, if i press the release but it works, but if i press the confirm button i get the following error: Notice: Undefined index: Release in C:\check.php on line 8 i did your print_r($_GET) and i got the following: Array ( [AvailableFrom] => 22 Aug 2007 0:00 [HotelRoomID] => 200 [...
by ghadacr
Wed Aug 08, 2007 8:30 am
Forum: PHP - Code
Topic: Not redirecting
Replies: 4
Views: 471

Thery are set at GET:

Code: Select all

<form action=http://www.some.com/check.php method="get">