Search found 31 matches

by serap
Tue Mar 15, 2005 4:33 pm
Forum: PHP - Code
Topic: [SOLVED] PHP embedded in javascript
Replies: 2
Views: 196

thank you for your help, works now... :)
by serap
Tue Mar 15, 2005 12:26 pm
Forum: PHP - Code
Topic: [SOLVED] PHP embedded in javascript
Replies: 2
Views: 196

[SOLVED] PHP embedded in javascript

Think Im close here but got stuck. Im trying to get an js array filled out by the PHP (which will comde from a DB query). When I do the bolded PHP-in-JS it fails with a js error. (obejct expected, line 61) Actually I would like to generate the Pic[] in js with the help of PHP. Any suggestions or ide...
by serap
Thu Apr 08, 2004 8:46 am
Forum: PHP - Code
Topic: getting values from multi-dimensional arrays
Replies: 3
Views: 269

I do

- from posting page:

<input type=hidden name=country value="<?php echo serialize($country); ?>" >

- from receiving page:

$country_new=unserialize($country);

but print_r($country_new) is not returning anything now?
by serap
Thu Apr 08, 2004 7:35 am
Forum: PHP - Code
Topic: getting values from multi-dimensional arrays
Replies: 3
Views: 269

getting values from multi-dimensional arrays

In xx.php I create a muti-dimensional array as follows: $result = mysql_query('SELECT * FROM country'); $country = array(); while($row = mysql_fetch_assoc($result)) { $country[$row['country_id']] = array('country'=>$row['country'], 'language'=>$row['language']); } and post this array with <input typ...
by serap
Wed Mar 31, 2004 12:38 pm
Forum: Databases
Topic: date manipulation
Replies: 6
Views: 482

what if the users so not want to write it in the yyyy-mm-dd format then I have to?
by serap
Wed Mar 31, 2004 11:50 am
Forum: Databases
Topic: date manipulation
Replies: 6
Views: 482

date manipulation

I have a problem with the dates, I just wonder if I can do something about it or wether it is a server issue: all the dates we insert is inserted in the US format yyyy-mm-yy. Can we insert it in the dd-mm-yyyy format just by using the DATE_FORMAT() withut needing to change the server setings (we don...
by serap
Tue Mar 23, 2004 10:46 am
Forum: PHP - Code
Topic: a strange phenomena when trying to login
Replies: 3
Views: 564

Its a lot of code actually, the strange thing is that it works but not from Yahoo mail - by clicking the link - only when you copy-paste it. Its like you need to reopen a broser before logging in....I can post it if you need it...
by serap
Tue Mar 23, 2004 10:22 am
Forum: PHP - Code
Topic: a strange phenomena when trying to login
Replies: 3
Views: 564

a strange phenomena when trying to login

Well, as newbie as I am this have driven me crazy: I send a mail out to the ones who registers. - then - there is a link in which they have to click to both activate themselves and then login. What happens from this point forward i really WEIRD! a) If I directly click the link, and try to login I JU...
by serap
Wed Mar 17, 2004 8:51 am
Forum: Databases
Topic: problem with group by query
Replies: 4
Views: 716

ok thanks Ill try it out...
by serap
Wed Mar 17, 2004 8:08 am
Forum: Databases
Topic: problem with group by query
Replies: 4
Views: 716

I get the following error:

'Invalid use of group function'

and this is due to the line:

AND max( met.meeting_date ) < ( date_sub( curdate( ) , interval90
by serap
Wed Mar 17, 2004 6:50 am
Forum: Databases
Topic: problem with group by query
Replies: 4
Views: 716

problem with group by query

I have problems with the following query...I want to get the maxdate from the group (ref_num) and then check it against the date_sub funciton... SELECT ref.ref_num ref_num, ref.name refname, couns.name counsname,couns.surname counssurname, max(met.meeting_date) meetdate FROM meetings met, refs ref,c...
by serap
Wed Mar 03, 2004 6:25 am
Forum: PHP - Code
Topic: 'Undefined index' error in some PCs and not in others
Replies: 13
Views: 964

But I understand from your replies that the $_SERVER["HTTP_REFERER"] can not be trusted at all? then when making a site with PHP - this is my first site with PHP. The problem is that when a user makes an add_item I have to get back to the caller site...so if I use (in caller site) $url = $...
by serap
Wed Mar 03, 2004 5:17 am
Forum: PHP - Code
Topic: 'Undefined index' error in some PCs and not in others
Replies: 13
Views: 964

Yes it does each time it hits the
header("location: ".$_SERVER["HTTP_REFERER"]); - but only from his machine!...it talks with the DB though...

Thanks for responses by the way...
by serap
Wed Mar 03, 2004 5:00 am
Forum: PHP - Code
Topic: 'Undefined index' error in some PCs and not in others
Replies: 13
Views: 964

Here is the code (from the clasic Macromedia example) : and line 65 is removeItem... <?php include("db2.php"); error_reporting(E_ALL); switch($action) { case "add_item": { AddItem($id, $qty, $color); break; } case "update_item": { UpdateItem($_GET["id"], $_GET...
by serap
Wed Mar 03, 2004 4:45 am
Forum: PHP - Code
Topic: 'Undefined index' error in some PCs and not in others
Replies: 13
Views: 964

Yes I think so - they have a firewall setup by their service provider. The thing is that he can add new items (updating the DB) but with the error each time php is called. If that is problem how do you usually solve it with so many combinations out there?? And let them test bigger sites - you name i...