
ardyandkari
Members-
Posts
502 -
Joined
-
Last visited
Never
Everything posted by ardyandkari
-
not exactly sure how this works, but just looking at it i think i see something... while ($i<=254) { $red = fread($palette_file, 1); $green = fread($palette_file, 1); $blue = fread($palette_file, 1); imagecolorset($image, $i, $red, $green, $blue); $i++; } the way that i read this is that $palette_file is 1 byte long...kinda small... taken from php.net website: i would think that you would have to specify a different filesize...but then again i am probably wrong...
-
NOOOOOOOOOOOOOOOOOOOOOOOOOO!!! sorry...just thought it was funny...i am annoyed by them too...
-
ok sorry...
-
[move]what are you talking about???[/move]
-
HELP ME PLEASE!!! IM A NEWBE
ardyandkari replied to jeoent's topic in PHP Installation and Configuration
unless you have a web server and php installed on the machine you are using, you will see nothing. download this for windows... it is wamp. i use it and it works great for me. this is for debian linux... How To Set Up A Ubuntu/Debian LAMP Server just do a search for what you need...you should know... -
i have used this to verify that a file is there: if ((empty($_GET['page']))) { include "inc/main.php"; } else { include "inc/dbconnect.php"; $page=(stripslashes(htmlentities(mysql_real_escape_string($_GET['page'])))); if (!file_exists("inc/" . $_GET['page'] . ".php")) { echo "Error, page does not exist."; die(); } else { include "inc/".$page.".php"; } you could do something like that... if (($_GET[gender]=x) || ($_GET[gender]=X) || ($_GET[gender]=y) || ($_GET[gender]=Y) { echo "cool dude!"; } else { echo "you smell like cheese"; }
-
The use of framesets. Proprietary HTML extensions such as the <blink> and <marquee> tags introduced during the first browser war. Online guestbooks. urmff...i think i threw up a little in the back of my mouth :-X
-
[SOLVED] PHP can't find external binary, need debugging help
ardyandkari replied to 3than's topic in PHP Coding Help
wouldnt this need mysql_result() or mysql_fetch_array() to output anything??? -
/\ whats with all the hostility??? ??? | is this what youre talking about? https://www.godaddy.com/gdshop/resel...se=%2B&ci=3309 otherwise, i dont know...but i did find that in a google search for godaddy api...
-
just messing around with your address... the address http://www.qq-ro.com/images/test.php?hair=1&color=21&gender=M outputs this: Warning: fopen(./palette/M/1__21.pal) [function.fopen]: failed to open stream: No such file or directory in /mnt/local/home/holoc/qq-ro.com/images/test.php on line 8 ............. Warning: Cannot modify header information - headers already sent by (output started at /mnt/local/home/holoc/qq-ro.com/images/test.php:13) in /mnt/local/home/holoc/qq-ro.com/images/test.php on line 30 ‰PNG ��� IHDR���������HÍ_á���9PLTE���������������������������������������������������������¼vP=���tRNS�@æØf��IDAT(‘}’‹v„ D-ÝðhLþÿÇv\W»mçˆJ.„0°,WÙò—þ!ú+WU¾®Ä(u#2%¾ä×CÄÎ{A0¶UÍA¢›^Öq7ÛVÃþŒq6 u5p‹Ew�w 0 h–j½ãte62ô}”Ò©`mªc¤Ž|ƒÄ†ödœFdO‚]ÙÌ¥O„dž6†3ôI¤úAû¨â@¨ù´h×RŒÌá)=T8ˆm"ZZçÇa£ÒpLBp 0Ôsœ &&(ñ«£ˆã\tKu š÷T?í you should fix that...
-
dynamically create arrays to populate my calendar...
ardyandkari replied to ardyandkari's topic in PHP Coding Help
<<bump>> -
not crazy, just clairvoyant.
-
futility is fun! i say down the aisle because you start at the top and work your way down...like a drop of dew dripping down a blade of grass uh oh! feeling poetic...did a quick google search for a haiku...here you go!
-
...and thought that "1394 Connection" in the device manager meant that the computer was wireless enabled. thats not what it means?!?!?!?!?!?! ok, seriously...i think that the developers should know how to say it, and we should copy... this is all over...ubuntu for example...how do you pronounce that??? oo-BOON-too ... taken directly from the faqs on the page...that is what they called it, that is what we should call it. btw...had to do a google search to find out what RDBMS means... Relational database management system...10 points to me!
-
i want to change my user name to ardy&kari!!! jk i do agree that if you are going to be charging a good amt of money for a site, you should put your all into it and not use a cms... that said, i have done some sites where i suggested that the owner use a cms (wordpress) because it can save me time i charge MUCH less i might charge $300-$500 for a scratch built site, where i might set up wordpress for $100 plus any fees i may incur (price doesnt include hosting or domain name...anything like that) basically, if they pay for it, give it to them.
-
here is what i am doing: i have a calendar that was made using php... calendar script: <?php define("ADAY", (60*60*24)); if ((!isset($_POST["month"])) || (!isset($_POST["year"]))) { $nowArray = getdate(); $month = $nowArray["mon"]; $year = $nowArray["year"]; } else { $month = $_POST["month"]; $year = $_POST["year"]; } $start = mktime (12, 0, 0, $month, 1, $year); $firstDayArray = getdate($start); ?> <html> <head> <title><?php echo "Calendar: ".$firstDayArray["month"]." ".$firstDayArray["year"]; ?></title> <head> <body> <h1>Select a Month/Year Combination</h1> <form method="post" action="index.php?page=vac"> <select name="month"> <?php $months = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); for ($x=1; $x <= count($months); $x++) { echo"<option value=\"$x\""; if ($x == $month) { echo " selected"; } echo ">".$months[$x-1]."</option>"; } ?> </select> <select name="year"> <?php for ($x=2008; $x<=2050; $x++) { echo "<option"; if ($x == $year) { echo " selected"; } echo ">$x</option>"; } ?> </select> <input type="submit" name="submit" value="Go!"> </form> <br/> <?php $days = Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"); echo "<table border=\"1\" cellpadding=\"5\"><tr>\n"; foreach ($days as $day) { echo "<td style=\"background-color: #CCCCCC; text-align: center; width: 14%\"> <strong>$day</strong></td>\n"; } for ($count=0; $count < (6*7); $count++) { $dayArray = getdate($start); if (($count % 7) == 0) { if ($dayArray["mon"] != $month) { break; } else { echo "</tr><tr>\n"; } } if ($count < $firstDayArray["wday"] || $dayArray["mon"] != $month) { echo "<td> </td>\n"; } else { echo "<td>".$dayArray["mday"]." </td>\n"; $start += ADAY; } } echo "</tr></table>"; ?> that displays the calendar wonderfully. now, when there is a reservation made, the admin of the site will put in a check in and check out date. those are stored in the db. i have been able to retrieve the data from the db and display in a table: if (strlen($month) == 2) { <?php //select date from $sqla="SELECT * FROM reservations WHERE datefrom LIKE '$year-$month-__'"; $resulta = mysql_query($sqla) or die(mysql_error()); $numa = mysql_num_rows($resulta); //select date to $sqlb="SELECT * FROM reservations WHERE dateto LIKE '$year-$month-__'"; $resultb = mysql_query($sqlb) or die(mysql_error()); $numb = mysql_num_rows($resultb); } else { //select date from $sqla="SELECT * FROM reservations WHERE datefrom LIKE '$year-0$month-__'"; $resulta = mysql_query($sqla) or die(mysql_error()); $numa = mysql_num_rows($resulta); //select date to $sqlb="SELECT * FROM reservations WHERE dateto LIKE '$year-0$month-__'"; $resultb = mysql_query($sqlb) or die(mysql_error()); $numb = mysql_num_rows($resultb); } if (($numa < 1) && ($numb < 1)) { echo "NO RESERVATIONS FOUND"; } else { echo "<table width='300' border='1' cellspacing='0' cellpadding='0' align='center'> <tr> <td scope='col'><div align='center'>Site</div></td> <td scope='col'><div align='center'>Check In Date </div></td> <td scope='col'><div align='center'>Check Out Date </div></td> </tr>"; $i=0; while ($i < $numa) { $datefrom=mysql_result($resulta,$i,"datefrom"); $dateto=mysql_result($resulta,$i,"dateto"); $site=mysql_result($resulta,$i,"site"); list($yearfrom, $monthfrom, $dayfrom) = split('[/.-]', $datefrom); list($yearto, $monthto, $dayto) = split('[/.-]', $dateto); $checkin=$monthfrom."-".$dayfrom."-".$yearfrom; $checkout=$monthto."-".$dayto."-".$yearto; echo "<tr><td><div align='center'>".$site."</div></td> <td><div align='center'>".$checkin."</div></td> <td><div align='center'>".$checkout."</div></td></tr>"; $i++; } echo "</table>"; echo "<br><br><div align='center'>What would you like to do now?<br><a href='index.php?page=search'>Search For Another Reservation</a> <--||--> <a href='index.php'>Return To Main Page</a>"; } ?> but i do not know how i can get the results to go on to the calendar, or how to make an array...much help needed, any help appreciated...thanks in advance. ps. if you want to see the script in action...i is located at http://www.everkleen.biz/resort/literes/index.php username=test password=d
-
if you dont want "bloated" scripts, build your own... or, if you like, paypal has ways to make static pages link to a paypal db which stores all of your info there. that way, you put a link up...no php, just html...and your user just has to click.
-
and thats what is sad...if i owned a company, i wouldnt care if mr new guy costs $10,000 a year less or whatever...if mr stickaround has done a great job for 15 years, he would stay unless something came up... i used to do factory work and the same phrase came up all the time: If it aint broke, dont fix it!
-
You know what - it just does work that great in IE
ardyandkari replied to tibberous's topic in Miscellaneous
Viva La Revolucion! i dont agree with the screen reader part. it's not that person's fault they cant see...but most of the rest...yea...people should change to a different browser. the problem is that they dont. so we do have to try our best to make it so that our customers/clients are fully happy and satisfied with the final product. -
not necessarily so...i know a guy who was network admin for approx 15 years. knew the system back to front. did everything. one day he was replaced by a guy straight from college. the difference... the guy i know didnt have a degree/certification/etc., he just knew his stuff.
-
or you could just not worry about it...probably easier in the long run, besides...the iphone renders pages as is...i would think that will become more and more common in the future with phones...
-
Creating a reservation system. In over my head.
ardyandkari replied to ardyandkari's topic in PHP Coding Help
have added a logout feature and the ability to change usernames and passwords, and also add users. disabled the username/password change on the test db, but you will still get the feel. script checks to see if there is already the username in the db...kinda neat considering how little i know... any suggestions as to what to add? also, regarding neil.johnson's post...i understand what i have to do, just not how to implement it...haven't quite figured out arrays yet...will try when i get some spare time, but if anyone wants to give me a hint that would be much appreciated... thanks a lot and take a look at the program if you want. -
you do realize that that will echo the html source so that the browser can read it and nothing will be hidden right?
-
information on styling for handhelds w3c site for mobile css refrence for handheld css now, please remember...i didnt take the time to really delve into these sites...if they dont help you, i'm sorry...