Jump to content

Lukeidiot

Members
  • Posts

    187
  • Joined

  • Last visited

Everything posted by Lukeidiot

  1. //echo "Registering"; $isResistered=1; createUser($cgi['username'], $cgi['class'], $cgi['email'], md5($cgi['password']), $cgi['uniqid'] );
  2. Make sure you have session_start(); On top of every page that is part of the session.
  3. Tada! $sql = mysql_query("SELECT * FROM $blog"); echo "<ul id='monthul'>"; while($months = mysql_fetch_assoc($sql)){ echo "<li><a href="index.php?month=$months[month]">$months[month]</a></li>"; } echo "</ul>";
  4. Hmm, a double negative. Does that mean you know a lot if you "don't know nothing" ?
  5. Try this: (make sure you change "table" to your table name, and correct db connection info) <?php mysql_connect('localhost','dbuser','dbpass'); mysql_select_db('database_name'); $sql = mysql_query("SELECT * FROM table ORDER BY PRO_ID asc"); while($row = mysql_fetch_assoc($sql)){ echo "Product Image: <img src='$row[PRO_NAME]'/>"; ?> }
  6. I don't see anything wrong with it. Post more of your code. Make sure you have the column name right, and also correct connection info.
  7. Replace echo '<a href="propinsp.php?job_id='. $job_id .'">click here</a>'; With this... echo "<a href='propinsp.php?job_id=$job_id'>click here</a>";
  8. Heres a link to my very noob friendly contact form maker. All you do is enter your email, then it generates a phps (re-saveas to .php); then upload. It sends the logs to your email you enter. http://lukeidiot.com/form/make.php
  9. Or just use this... <?php $to = "Email1@gmail.com, Email2@gmail.com, Email3@gmail.com"; $subject = "Subject here"; $body = "Msg here"; mail($to,$subject,$body); ?>
  10. Works for me. Try it without the first / .. example ... <?php echo "<a href='women/girls/index.html'>go to girls</a>"; ?>
  11. Excellent! What about the next one day? Like how would I get this? <league IdLeague="5" IdSport="MLB" Description="MAJOR LEAGUE BASEBALL"> <banner ab="True" vtm="MAJOR LEAGUE BASEBALL - Apr 01" htm=""/> <banner ab="False" vtm="EXHIBITION BASEBALL" htm=""/> − <game idgm="1034239" idgmtyp="3" gmdt="20100401" idlg="5" gmtm="09:05:00" idspt="MLB" vpt="ACTION" hpt="ACTION" vnum="971" hnum="972" vtm="FLA MARLINS" htm="STL CARDINALS" stats="false"> <line voddst="120" hoddst="-140" ovt="" ovoddst="" unt="" unoddst="" vsprdt="" vsprdoddst="" hsprdt="" hsprdoddst="" vspt="" vspoddst="" hspt="" hspoddst="" voddsh=" 2.20" hoddsh=" 1.71" vsprdh="" hsprdh="" ovh="" unh="" vsph="" hsph="" voddshr="0" vsprdhr="0" ovhr="0" vsphr="0" btot="False" bsprd="False" bml="False" haschild="False" evtyp="" related="True"/> </game>
  12. Thanks! That worked well, how would I automate this to make it get all the data automatically?
  13. Try this: <?php echo "<a href='http://www.ilovegirls.com'>Link to girls</a>"; ?>
  14. Okay guys, I am trying to parse this XML data. I plan to read the xml, then add it to a mysql database. Here is the xml I am trying to parse: http://lines.bookmaker.com/ I tried to use this tutorial, but it only parses the stuff in the <test></test> tags http://www.ibm.com/developerworks/library/os-xmldomphp/ If you notice on http://lines.bookmaker.com/, it is all attributes. Any help/ideas are appreciated.
  15. Here you go, if you modify it to read the right regex this script will work. Example useage: val.php?e=google.com (will return valid, currently doesnt work for test@google.com, you need regex to read it right); <?php error_reporting(0); function Status($site, $port){ $fp = fsockopen($site,$port,$errno,$errstr,1); if(!$fp){ echo "<font color='red'><strong>Invalid</strong></font>"; } else { echo "<font color='green'><strong>Valid!</strong></font>"; fclose($fp); } } Status("$_GET[e]","80"); ?>
  16. Basically I have a mysql database with a couple prices as the following: 9.99 9.99 9.99 49.99 24.50 24.50 How can I add these numbers and display the total from a mysql database?
  17. Basically I have a mysql database with a couple prices as the following: 9.99 9.99 9.99 49.99 24.50 24.50 How can I add these numbers and display the total from a mysql database?
  18. Thank you so much, this is exactly what I needed.
  19. Thank you so much, this is exactly what I was looking for! How would I list them without the array information? For example, make it say this: user1, user2, user3
  20. This did not really help, but thanks for posting.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.