Re: [PHP-DB] Page refresh question

2005-06-09 Thread Bobo Wieland
...or if everything else fail, do it the ugly-hack style and us a frameset with an 1 px wide frame where you update the db... just target the update to the "invisible" frame and only that gets updated... _bobo www.bitbob.biz Chris Payne wrote: Hi there everyone, I'm using PHP and MySQL in

Re: [PHP-DB] SQL prob

2005-01-31 Thread Bobo Wieland
Thanks, but DISTINCT doesn't work... But I managed to get it to work anyway by including "namn_1 NOT LIKE 'H%'" in the second WHERE-clause... Micah Stevens wrote: use DISTINCT? On Sunday 30 January 2005 12:51 pm, Bobo Wieland wrote: Anyone that can help me with

[PHP-DB] SQL prob

2005-01-30 Thread Bobo Wieland
Anyone that can help me with this one? I want this SQL-statement to retrive only distinct values from the original table column named (not the AS stuff) ( SELECT * , namn_2 AS sec_namn, namn_1 AS one FROM sortiment WHERE namn_1 LIKE 'H%' ) UNION ( SELECT * , UPPER( namn_2 ) AS sec_namn, namn_2 A

[PHP-DB] & and SID

2004-11-29 Thread Bobo Wieland
how can i force the SID variable in urls not to be &SID=, but &SID ? _bobo wieland _ [EMAIL PROTECTED] _ winamp >> various artists | green velvet - the stalker (i'm losing my mind) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] & and sessions

2004-11-29 Thread Bobo Wieland
n Norland, Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital. -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED] Sent: Monday, November 29, 2004 3:31

Re: [PHP-DB] & and sessions

2004-11-29 Thread Bobo Wieland
ot;Bastien Koert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, November 29, 2004 9:51 PM Subject: RE: [PHP-DB] & and sessions you can't, not allowed read here http://www.faqs.org/rfcs/rfc1738.html bastien From: "Bobo Wieland

[PHP-DB] & and sessions

2004-11-29 Thread Bobo Wieland
how can i force the SID variable in urls not to be &SID=, but &SID ? _ bobo wieland [EMAIL PROTECTED] __ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Something wierd with time() and curdate()

2004-11-01 Thread Bobo Wieland
To: <[EMAIL PROTECTED]> Sent: Monday, November 01, 2004 11:14 AM Subject: Re: [PHP-DB] Something wierd with time() and curdate() On Sunday 31 October 2004 22:45, Bobo Wieland wrote: There is something wierd going on over here... I have a date field, datum, in mysql that I cast to a timestamp an

[PHP-DB] Something wierd with time() and curdate()

2004-10-31 Thread Bobo Wieland
There is something wierd going on over here... I have a date field, datum, in mysql that I cast to a timestamp and check against time(). If the datum value is more than one day old the table finds a new random row and sets the datum field to CURDATE(). Now, this has worked for two years now, but

Re: [PHP-DB] Reverse (or backward?) Infinity Loop

2004-10-20 Thread Bobo Wieland
this is some code i've written once that gets all supercategories from a mysql db... Take it as it is... It prints out a html-string of links like this: Category : sub_cat1 : sub_cat2 : sub_cat3. Maybe you can figure it out... it takes the current id (in your example catId13) as a parameter and

[PHP-DB] images in db

2004-06-30 Thread Bobo Wieland
How do you accualty stor jpegs in a mysql db? And what's the pros and cons of storing the whole image in the db and not just the path to the file on the server? It feels to me that it can be a bit difficult to organize the images if they're just placed in a directory on the server. It would be esi

[PHP-DB] diplicate entries

2004-06-11 Thread Bobo Wieland
Hi! What is the best way to check if a record allready exists in a msql-db from php in the case of when the same form is submited twice beacuse of the "refresh"-button? Should I allways check the db for the same entry, or is there some esier way to prevent the user from submiting a form more then

Re: [PHP-DB] Multiple SQL queries...?

2004-06-03 Thread Bobo Wieland
$sql1 = "SELECT COUNT(*) as views FROM $table WHERE viewed = '1' AND email = '$row[email]'"; $views = mysql_resutl(mysql_query($sql1,$connection),"views"); maybe? .bobo www.elstudion.com/bitbob/ <- not finished though... - Original Message - From: <[EMAIL PROTECTED]> To: "Daniel Cla

[PHP-DB] search engine query

2004-05-19 Thread Bobo Wieland
Hi! I'm new to this list. I usually try to get my answers at the php-win mailing list... But since this is a mysql question I thought it would be better to ask i t here; How do I get the best result from a simple search (just one input box and a search button) from a mysql db with two tables cont