
cmgmyr
-
Posts
1,278 -
Joined
-
Last visited
Never
Posts posted by cmgmyr
-
-
Yeah, you can check this out: http://www.phpfreaks.com/tutorial_cat/25/Page-Number--Pagination.php
-
if you want to change all of the rows to the new_value...no, but if you just want to change a certain old_value...yes
-
"UPDATE table SET column = new_value WHERE column = old_value"
something like that?
-
Why don't you just use a script to re-size the image to a maximum of 300x300? that would solve your problem
-
you could try isset()
if(isset($req_user_info['Skype'])){ ... }
-
pool boy
-
Here is a good read: http://www.unixwiz.net/techtips/sql-injection.html
-
mysql_query($sql);
-
try:
$output .= "<link>http://localhost/mrlumber/site_pages/index.php?do=viewtheproduct&pid=".$row[product_id]."</link>\n"; $output .= "<guid isPermaLink=\"false\">" . $row['product_id'] . "</guid>";
-
why can't you just re-initiate it?
-
Do something like this:
<td valign=\"top\" width=\"10\"><input type=\"checkbox\" name=\"checkbox" .$id. "\" value=\"1\" /></td>
then on your processor:
$query = mysql_query("SELECT * FROM layout") or die(mysql_error()); while($row=mysql_fetch_object($query)) { $id=$row->id; if($_POST['checkbox'.$id] == 1){ //Delete $id from database } }
-
This is a little easier:
<?php $num = 120; if($num % 10 == 0){ echo "Do something"; }else{ echo "Don't do something"; } ?>
...then change $num between 121-129
-
I use a DB class also. It's very handy and you can add a lot of stuff in for testing, it also cleans up your normal code a lot too.
-
...damn missed that
anyways use something like:
$id = $_GET['id']; $request = mysql_query(" SELECT rt.username, rt.Rating FROM dd_rating AS rt WHERE ItemID = $id") or die(mysql_error());
-
That's awesome! Congratz!
...you should invite the board to the after party...that would be interesting
-
1. Research your topic in the website or page.
2. Get related keywords
3. Use strong meta data that reflects well on your content
4. Have good content, H tags
5. Links, links, and more links. The more links into your site the better. Put your URL everywhere you can.
-
You don't need to know everything...just know where you can get the answer
-
I prefer "geeky"...
Geek refers more to techy stuff, and nerds refer more to books. (atleast IMO)
-
how about:
<?php require_once("conn.php"); require_once("templates/MainHeader.php"); $q1 = "select * from dd_rating where ItemID = '54' "; $r1 = mysql_query($q1) or die(mysql_error()); $numvote = mysql_num_rows($r1); //<~Semi colon missing echo "<b><center>See what Rating others gave for this joke </center></b><br><br>"; $i=0; while($i<$numvote){ $name=mysql_result($r1,$i,"username"); $rate=mysql_result($r1,$i,"Rating"); echo $name." had given a rating of ".$rate. " to this joke<br>"; $i++ } require_once("templates/MainFooter.php"); ?>
-
try: echo $name." had given a rating of ".$rate." to this joke<br>";
-
-
static - content/pages stay pretty much the same (brochure type)
dynamic - content/pages are always changing (membership/e-commerce/products sites)
-
I agree with everyone's comments so far. The "Web" business has a lot to do with experience and/or your portfolio. The more you have to look at the better off you are. The problem is getting started and getting people to believe in you when you are starting out. Once you get a few under your belt it will be like a snowball rolling down a hill. It took me about 5 years doing web stuff on the side until I was ready to go full time into it. But it has been great so far. It is very rewarding. I'm probably looking to do about $45k-50k this year. Not too bad
Hope this helps you out a little.
-
glad everything worked out! I get that stuff too.
...gotta love people!
SIMPLE introduction to OOP
in PHP Coding Help
Posted
This is a pretty good tutorial: http://www.tutorialspoint.com/php/php_object_oriented.htm and it's a little more involved then talking about dogs