Jump to content

jjmusicpro

Members
  • Posts

    290
  • Joined

  • Last visited

    Never

Everything posted by jjmusicpro

  1. 100% CORRECT it worked THANK YOU!
  2. ok this is weird... I created 2 session variables, i post to the page, it says im logged in displays the values of those session objects, then i wanted to click a link, and on that page, show me the value of that session object, however it says its blank. $a ="yes"; $b="yes"; $_SESSION['loggedin']=$a; $_SESSION['accesstype']=$b; on page 2 i say echo $_SESSION['loggedin']; and it doent display anything, but if i put that same code on the page the session object was created on, it will show the value as "yes" like it should.
  3. loopmakerpro dot com in IE it wont show gradient of nav bar but in firefox it does here is my css #nav {padding:0 20px; background-image:url(../design/nav-bottom.gif); overflow:hidden;} #nav ul {margin:0; padding:0; list-style:none;} #nav ul li {display:inline; margin:0; padding:0;} #nav ul li a {display:block; float:left; padding:10px 14px 10px 15px;} #nav ul li#nav-active a {border:0; font-weight:bold;} #nav ul li a:hover {text-decoration:none;} then the code on my page is <div id="nav"> <ul> <li id="nav-active"><a href="index.php">Home</a></li> <li><a href="news.php">News/Updates</a></li> <li><a href="aboutus.php">About Us </a></li> <li><a href="members.php">Members Area</a></li> <li><a href="products.php">Our Products </a></li> <li><a href="jointoday.php">Join Today </a></li> <li><a href="freeloops.php">Free Loops </a></li> <li><a href="contact.php">Contact</a></li> </ul> </div>
  4. ok this is weird... I created 2 session variables, i post to the page, it says im logged in displays the values of those session objects, then i wanted to click a link, and on that page, show me the value of that session object, however it says its blank. $a ="yes"; $b="yes"; $_SESSION['loggedin']=$a; $_SESSION['accesstype']=$b; on page 2 i say echo $_SESSION['loggedin']; and it doent display anything, but if i put that same code on the page the session object was created on, it will show the value as "yes" like it should.
  5. make a container and center that, then you can float a right, float center, float left.
  6. nah didnt work... IE still shows old background.
  7. Try a loop $placeholder = 0 Then in the loop just +2
  8. i did this in my css #nav { background:url(../design/nav-bottom.gif);} however in IE it wont display the background image, but in Firefix it will, any ideas?
  9. so i pass in a id value, and query the db for the result, for some reason i cant get back data from the query, i echo out my query string, put it into mssql and it works fine... but my page shows blank values for the item it gets any ideas? $id = $_POST['id']; if($id != ""){ if($db = mysql_connect("localhost", "xxx","jxxx")){ if(mysql_select_db("xxxxxx",$db)){ $acc1 = "select * from newitems where ID='".$id."'"; $query = mysql_query($acc1); } echo $id; echo $acc1; echo'<div style="background-image:url(tmp/backgroundrepeat.gif); background-repeat:repeat; padding-bottom:4px; padding-top:4px; padding-left:4px; padding-right:4px; border:solid #FFFFFF thin; margin-right:15px;"><strong>Selected Article - '. $query["newstitle"] .' </strong> </div>'; echo"<font class=\"smaller low\">Data of Article-".$id." ".$query["dateadded"]."</font><br>"; echo $result["newsinformation"];[code] [/code]
  10. so in my sql query i can have something like this? select * from newitems ORDER BY ID DESC LIMIT 25 OFFSET -3
  11. I am trying to make a news page, where it will show archived news items, and the last 3 news items. I wanted to do a query to get last 10, display 7 of those with just name/title and date, then the other three, with name/title date and info. I can do it in 2 querys thats fine, i just dont know how to get the last 20 records, then -3 from it.
  12. my cities are hardcoded on the page, not in the database so i wanted the selected value to be the value retrieved in the db.
  13. i pull the variable from the db and it $selected = 'seattle" i tried to put your code below but it dosent work, it dosnt pull back info in selected list.
  14. i tried setting an option value as you said but it didnt work <select name=\"payscale\"> <option selected=\"$payscale\"></option> <option value=\"seattle\">seattke</option> <option value=\"phoenix\">phoenix</option> <option value=\"new york\">new york</option> </select>
  15. how do i make it so it wont write out that value again... so i pull "seattle" form the guys profile, and i make a form that i wanted to edit his info. so the form will have a select drop down box, with 3 values seattle, phoenix, and new york. instead of the drop down box starting off with phoenix or some other place, i wanted it to show the value selected as the one in the db.
  16. i was pulling a value from mysql, and i wanted to put that value into the drop down. the drop down has 3 values seattle, phoenix, and new york. the value from the drop down is always going to match one pulled from db.. so... if the value pulled from the db is say seattle, i wanted seattle to be selected in the drop down menu, but they can change it if they want, i just want it to be selected when they go to the page, with the values that match it form the db
  17. I've tried looking on google for code to create a csv file however, i cant figure it out. I wanted the user to be prompted "Save file as..." or "download"... I have the data in a table on the page already, but ive seen examples of using a query to get it... any ideas on where to start?
  18. Export to Excel - Either Table data or MSSQL data Not sure how to do this, on my page, i already have the data in a table, i wanted to click a button and download that data to a csv. or click a button, and run a query against mssql,and have it prompt you to save file as...etc. ANy ideas?
  19. didnt work.. i tried this <a href="javascript: void(0)" onClick="getdescdetails(this.text)">I want to get this value</a> I want it to send the value thats the actual hyperlink..do i need to give it an id?
  20. I have a few basic hyperlinks, that i wanted to send the value of that hyperlink into a javascript function. How do i get the value of the hyperlink? I wanted to get what was in the display part of the hyperlink.. or unless i can set a value somehow in the hyperlink thanks again!
×
×
  • 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.