Search found 15 matches

by hurkle
Wed Feb 26, 2003 10:46 am
Forum: Databases
Topic: MYSQL Blobs?!
Replies: 2
Views: 530

try using a TEXT type column, that should handle anything you want to throw at it, just about.
by hurkle
Wed Feb 26, 2003 10:45 am
Forum: PHP - Code
Topic: Latest Images
Replies: 2
Views: 616

here's the best source on storing and retrieving images, and whatever else, in a database, that I've found.

http://www.devshed.com/Server_Side/PHP ... age1.html
Take a gander, hope it helps.
by hurkle
Wed Feb 26, 2003 10:38 am
Forum: PHP - Code
Topic: PHP and Mysql search engine
Replies: 2
Views: 396

For a search engine like you described, there's a few things you need. First of all, you need to figure out what's going to be searchable, i.e. keywords or descriptions of pages/content in your site, or the full text of pages in your site. I would suggest the latter. As a starting point, I would cre...
by hurkle
Tue Feb 25, 2003 6:16 pm
Forum: PHP - Code
Topic: help with a "please wait ... loading" graphic or t
Replies: 3
Views: 934

I agree with the above, the best thing to do is try not to send huge results. That having been said, there are times when you just plain have to. Heres what I do in that situation.. echo "<IMAGE src='loading.gif' style = ' position:absolute; top:50px;"; echo "left: 50px;' width = '320...
by hurkle
Tue Feb 25, 2003 6:04 pm
Forum: PHP - Code
Topic: passing data re: POST ( I read the sticky!)
Replies: 2
Views: 716

I would suggest something like this.. for ($i=0; $i <$num_results; $i++) &#123; $row = mysql_fetch_array($result); echo "<A href = 'confirmation.php?identbook="; echo $row&#1111;"bookid"] . "'>"; echo "<p><strong>".($i+1).". Title: "; echo st...
by hurkle
Wed Feb 12, 2003 6:05 pm
Forum: PHP - Code
Topic: Assign value to a variable depending on time
Replies: 14
Views: 1515

Newbies *are* totally welcome here, don't get the wrong impression. Also, there wasn't any sarcasm in my post; I really do think it's in your best interest to read the description of how the date function works. You're 99.9 percent of the way there.. you already now that using the 'G' parameter won'...
by hurkle
Wed Feb 12, 2003 4:59 pm
Forum: Javascript
Topic: php page wth no menubar and toolbar in explorer
Replies: 8
Views: 5044

The only way I've found to do this is with client side scripting, i.e. Javascript. When you use the window.open command, you can set a variety of parameters to 'no', which will give you the effect you're looking for. This effect is usually referred to as a 'chromeless' browser window, you might want...
by hurkle
Wed Feb 12, 2003 4:56 pm
Forum: PHP - Code
Topic: Assign value to a variable depending on time
Replies: 14
Views: 1515

To be honest, it would have taken you less time to: click on the link to the manual, click on the 'date functions' link, and scroll down one page to a detailed description of exactly what you could use instead of just 'G', than it did for you to: post again, asking for clarification and help on this...
by hurkle
Wed Feb 12, 2003 1:51 pm
Forum: PHP - Code
Topic: Assign value to a variable depending on time
Replies: 14
Views: 1515

This is an awesome oppurtunity for you to dive in and get your feet wet with some of the most useful php functions around. Click on the following link: http://www.zend.com/manual/ it's the php manual online. Scroll down to Function Reference -> Date and Time functions, and click on that link. It wil...
by hurkle
Wed Feb 12, 2003 1:45 pm
Forum: PHP - Code
Topic: I deleted the columns that had no inserts
Replies: 4
Views: 604

hey, chompart, just a suggestion. It would be a lot easier for all of us to follow this, and help you, if you would post a fresh message in the thread of your original post. Right now, there's no context for this current thread, and it's a little to much to ask us to click on your profile, find your...
by hurkle
Wed Feb 12, 2003 11:51 am
Forum: PHP - Code
Topic: Assign value to a variable depending on time
Replies: 14
Views: 1515

I'm a little rushed, so I don't have time to give you the complete code you need. I will point you in the right direction.. You can use php's date and time functions to get the current time, and pull out just the hours segment of that time value. You can then use a 'switch' control structure to do w...
by hurkle
Wed Feb 12, 2003 11:29 am
Forum: PHP - Code
Topic: Header and redirect
Replies: 6
Views: 1447

Darkside, I've been using the ob start and ob end flush in all my php code, and haven't had any downsides. I've also used the ASP equivalent that does the same thing, and nothing bad has ever come of it. The only time I don't use it is in rare instances when I want to display insane amounts of data,...
by hurkle
Tue Feb 11, 2003 6:07 pm
Forum: PHP - Code
Topic: Header and redirect
Replies: 6
Views: 1447

this might help.. near the start of each script, place this.. ob_start(); and towards the end, this ob_end_flush(); ob_start(); basically starts saving all the output that your script creates, and places it into a buffer. When your code is all done, and hits the ob_end_flush statement, it spits it a...
by hurkle
Tue Feb 11, 2003 1:29 pm
Forum: Databases
Topic: $vqr = $var2 placing value of one field in another
Replies: 1
Views: 520

hmm.. if you were using sql server, I'd say use a 'trigger', but I don't think mySql has that type of thing. If you want to do this as you store the entry into the first field, you could do something like this.. (this assumes the value you want to put into the two fields is in a variable named $str_...
by hurkle
Tue Feb 11, 2003 1:21 pm
Forum: Databases
Topic: [b]Search code and change data code please.[/b]
Replies: 1
Views: 560

hmm.. I'm not sure what you mean by searching on part of a word, but you could try something like this. Lets say you have a form like this.. <FORM name = 'frm_search' method = 'post' action = 'search.php'> <INPUT type = 'text' name = 'txt_search'> <INPUT type = 'submit' value = 'submit'> you could u...