Search found 50 matches

by potsed
Thu Jan 13, 2005 3:47 pm
Forum: General Discussion
Topic: Object-oriented PHP Shopping Cart?
Replies: 9
Views: 2754

I think you should do a quick google for the difference of OOP and procedural programming
i do know the difference .. was just sugesting a cart, ive never even looked at its source code... :(
by potsed
Sat Jan 08, 2005 3:36 pm
Forum: General Discussion
Topic: What browser do you use/like to use?
Replies: 12
Views: 2061

I switch between firefox and opera, i feel opera has a more intuitive navigation, and it shows all sites without a hitch, whereas firefox does not show some pages properly. IE sucks, i only use it to make sure my pages work..
by potsed
Sat Jan 08, 2005 8:20 am
Forum: PHP - Code
Topic: Rotate informations
Replies: 3
Views: 800

To give a better example for my prev post... the iframe code &lt;iframe src="http://www.example.com/pageToRefresh.php"&gt;&lt;/iframe&gt; the pageToRefresh.php code <?php $AD = ($_GET['ad']) ? $_GET['ad'] : 0; $adverts = file("path/to/adverts.txt"); $currentAd = $...
by potsed
Sat Jan 08, 2005 8:04 am
Forum: PHP - Code
Topic: Rotate informations
Replies: 3
Views: 800

put the output into an iframe, then use a meta page refresh pointing to the output page set for the time you want. The page it points to in the refresh should be somthing like http://www.pageToRefresh.php?ad=1, Then in the pageToRefresh.php, you simply use $_GET['ad'] to choose the next advert, and ...
by potsed
Sat Jan 01, 2005 3:02 am
Forum: PHP - Code
Topic: Help with IF (Control Structure) in simple function...
Replies: 9
Views: 2414

ur original code was just fine. only that u used single = instead of ==. single = is meant for assigning a value so in effect ur code was doing right thing. just changing = to == will do what u wanted it to do in first place While this is true... the code was also putting an extra load on the serve...
by potsed
Fri Dec 31, 2004 6:20 pm
Forum: PHP - Code
Topic: Help with IF (Control Structure) in simple function...
Replies: 9
Views: 2414

if ($id=='1'){ $link = "http://altavista.com";} elseif ($id == "2"){$link = "http://yahoo.com";} elseif ($id == "3"){$link = "http://google.com";} although it may b better to use a switch... switch($id){ case '1': $link = "http://altavista.com&...
by potsed
Sun Dec 26, 2004 2:18 pm
Forum: General Discussion
Topic: Object-oriented PHP Shopping Cart?
Replies: 9
Views: 2754

by potsed
Sat Dec 25, 2004 7:01 am
Forum: PHP - Code
Topic: [solved] curl question
Replies: 2
Views: 857

of course how stupid could i be.... thanks wierdan
by potsed
Sat Dec 25, 2004 4:59 am
Forum: PHP - Code
Topic: [solved] curl question
Replies: 2
Views: 857

[solved] curl question

Hi all seasons greets... i have a question on cURL... The following code does everything its supposed to do ... upload an image file from my local machine to the web server. however when i look at the image on the server it does not show... although the filesizes are the same on both my local machin...
by potsed
Wed Dec 08, 2004 11:24 am
Forum: General Discussion
Topic: [disscussion] PHP free Book
Replies: 9
Views: 2010

Let's make it a "Improve Your Pro PHP Skills" type of book.
Yes i think there are too many get started books or tuts, but very few carry on and improve books or tuts. Gr8 idea, maybe do both...??
by potsed
Tue Dec 07, 2004 3:39 pm
Forum: Databases
Topic: Easy (probably) MySQL question.
Replies: 10
Views: 1569

No problem... thats why the forums here ;)
by potsed
Tue Dec 07, 2004 3:24 pm
Forum: Databases
Topic: Easy (probably) MySQL question.
Replies: 10
Views: 1569

write the query in a loop, and exclude the id column
by potsed
Tue Dec 07, 2004 3:17 pm
Forum: Databases
Topic: Easy (probably) MySQL question.
Replies: 10
Views: 1569

Code: Select all

"SELECT column1, column2, colum3 FROM table
only type in the columns u want seperated by a comma
by potsed
Tue Dec 07, 2004 2:58 pm
Forum: PHP - Code
Topic: [SOLVED]Almost got it.. pagination (please advice)
Replies: 3
Views: 746

I answered a similar post here
viewtopic.php?p=146856#146856

The final script works.. just modify the sql queries and db login info and the output...
by potsed
Tue Dec 07, 2004 2:30 pm
Forum: PHP - Code
Topic: [SOLVED] simple problem (easy fix for someone good)
Replies: 3
Views: 811

Code: Select all

<html>
<?php
$color = ($_REQUEST&#1111;'color']) ? '#'.$_REQUEST&#1111;'color'] : #FFF;
echo '<body style="background: '.$color.';">';
?>
</body>
</html>