Jump to content

xfezz

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

xfezz's Achievements

Member

Member (2/5)

0

Reputation

  1. I ended up figuring out how to set a static IP with my router. Thanks for the help.
  2. I have a windows based system with apache / mysql / php installed. The problem is the IP of this machine changes depending on which computers are connected to my network and doesn't always get assigned the IP I given it in httpd.conf As of right now in httpd.conf I have the following: Listen 192.168.0.192:80 Is there anything I need to do with my routers configuration as well? I have a D-Link DGL-4100.
  3. wildteen88, I followed your instructions to the T. After reading it just clicked in my head on what I had to do. Everything was set and done. Logged out and I was greeted to phpmyadmin not being able to read my config file. Then I remember reading someone had the same problem and it was fixed by clearing out the browsers cache. Once I did that everything was golden. Thanks a bunch. Maybe a mod can put this in a tutorial for setting up phpmyadmin's advanced features. Very helpful! Once again thanks!
  4. I have been reading through the manual. I gave it a go but I ended up screwing something up. I deleted my phpadmin folder and started over fresh because I didnt know what I screwed up. The manual doesnt really list everything out in step by step order. I need something thats dumbed down for a newbie. From what I gather I need to create a control user for phpmyadmin, give it rights and then setup a new database for phpmyadmin to use for the advanced features? Is there a certain order in which I need to do this? I dont even know how to go about this.
  5. Im running on windows Vista, installed the latest version of apache, php and mysql. Now I have phpadmin running but I get this message when I log in. I have been googling for the past hour because i'd like to enable these features. I have been only coming up with vague answers on how to set this up. I'm more of a beginner so I need some help!
  6. [quote author=play_ link=topic=120169.msg492964#msg492964 date=1167357827] Yea. I wonder if it's just my server that does this [/quote] weird my server doesnt. you sure you have everything set up correctly?
  7. function one($y,$z) { [b]xyz[/b] = some query from the database; some other calculations using variables $y and $z; } function two($yy,$zz) { some other calculations using variables $yy and $zz; newVar = [b]xyz[/b]+ 4; } I need to use variable xyz to do a calculation in function two. how do I pass one variable to another function? or would I have to run the same query again in function two?
  8. Currently I have a pagination script that shows the content of my database. I want to be able to do a simple search in my database and display the results of the search with my pagination script. I dont want to redirect to another page for the search. I want to display the results of the search in place of displaying all the results in x pages. I was thinking about doing something a long the lines of the following [code] $search = $_POST['txtSearch']; if ($search == null) {     // search field is null no search was performed, display all records     $sql = "SELECT * FROM articles ORDER BY id DESC LIMIT $from, $max_results";     $getlist = mysql_query($sql) or die(mysql_error()); } else {     // a search was performed, display results of the search     $sql = "SELECT * FROM articles WHERE message LIKE '%search%' ORDER BY id DESC LIMIT $from, $max_results";     $getlist = mysql_query($sql) or die(mysql_error()); } [/code] im sure my syntax is a bit off on the search query but am i going in the right direction with this?
  9. [quote author=ToonMariner link=topic=113419.msg461071#msg461071 date=1162387521] Works fine for me... Make sure you declare #chk_links a:link { text-decoration: underline; } after the other a declarations - also clear your cache (just in case) [/quote] yep I ended up having to clear my cache. works fine.
  10. I set my link properties as follows in my style sheet: [code] a:link, a:active, a:visited { color: #000; text-decoration: none; } a:hover { color: #444242; } [/code] changes my links globally through out the site. And thats what I want. But now I have this set of links that I want to have the underline text-decoration. Originally I had the top div just as a div style tag, but couldnt figure out the popper syntax to edit within the div style tag. I tried <div style = "a:link text-decoration:underline;"> but it didnt work correctly. So I just set it in its div id tag. heres my html [code] <div id ="chk_links">   <div style = "margin:2px 0px 2px;">     Select:  &nbsp;     <a href="javascript: void(0)" onclick="return checkall()">All</a>&nbsp;&nbsp;     <a href="javascript: void(0)" onclick="return uncheckall()">None</a>&nbsp;&nbsp;     <a href="javascript: void(0)" onclick="return invert()">Invert</a>   </div> </div> [/code] heres the css [code] #chk_links a:link { text-decoration: underline; } [/code] works fine in firefox but in IE the underline doesnt show up? any suggestions?
  11. I think I got it to work the way I want it. I gave the search form a class and edited that with css. Incase for anyone whos wondering, heres my html [code] <fieldset>     <legend>Manage Articles</legend>         <form name="search" id="form1" method="post" action="/port/admin_article_search.php" class="search">             <input type="text" value="Enter Search Here" />             <input name="btnSearch" type="submit" id="btnSearch" value="Search" />         </form>     <form name="articles" id="form2" method="post" action="/port/admin_article_delete.php" class="articles">         <select name="select" onchange='this.form.submit()'>>             <option selected="selected">Manage Articles</option>             <option value="Delete">Delete Selected</option>         </select>     <?php include'pgtest.php'?>   </form> </fieldset> [/code] and here is my css to format the top form, which is the search area. [code] form.search { width: 310px; float: left; padding-bottom: 5px; } [/code] any other suggestions are welcomed
  12. I would like to get my search text field positioned all the way to the left of my drop down menu with its own submit button. I tried wrapping the text field with a span class to float it left but that didnt work. I can probably get it to work if i put it in its own div tag, but im not sure if its good practice to have all these elements in its own div tag. Or what is the correct way to accomplish what I want. Also I have quite a few things going on at once here. Right now my search field and drop down menu are in the same form. The drop down menu will manage my articles. Should I have this search field in its own form? Probably will be nested some how. Or should I have the search option on my drop down menu? Im not sure if im trying to do too many things on one form here. heres a screenshot for some visual reference [img]http://img.photobucket.com/albums/v487/xfezz/forms.jpg[/img] and heres my code [code] <body> <fieldset> <legend>Manage Articles</legend> <form name="form" method="post" action="/port/admin_article_delete.php"> <div class ="article_menu">   <input name="txtSearch" type="text" id="txtSearch" value="Enter Search">   <select name="select" onchange='this.form.submit()'>   <option selected>Manage Articles</option>   <option value="Delete">Delete Selected</option>   <option>Delete All</option>   </select> </div> <?php some php code here ?> </form> </fieldset> </body> [/code] [b]edit:[/b] I was playing around and came up with this: [code] <fieldset> <legend>Manage Articles</legend> <div id="article"> <div class="search"> <form action="" method="get" name="frmSearch">       <input type="text" name="textfield">       <input type="submit" name="Submit" value="Search"> </form> </div> <div class="menu"> <form name="form" method="post" action="/port/admin_article_delete.php">   <select name="select" onchange='this.form.submit()'>       <option selected>Manage Articles</option>       <option>Search</option>       <option value="Delete">Delete Selected</option>       <option>Delete All</option>   </select> </div> </div> [/code] which produces my desired layout [img]http://img.photobucket.com/albums/v487/xfezz/forms2.jpg[/img] but dreamweaver marked my markup as invalid
  13. [quote author=Crayon Violent link=topic=113200.msg459859#msg459859 date=1162201226] [code] $sql = "SELECT * FROM articles ORDER BY id DESC LIMIT $from, $max_results"; $getlist = mysql_query($sql, $db_handle) or die(mysql_error()); . . while($row = mysql_fetch_array($getlist)){ [/code] [/quote] Yep I woke up and that was the first thing I changed. I suppose I was too tired to catch that early this morning. Its working now. Thanks a bunch
  14. I connect to the database with the following [code] //set server and database parameters     $user_name = "root";     $password = "some really cool password";     $database = "article_db";     $server = "localhost"; //make connection to database        $db_handle = mysql_connect($server, $user_name, $password)or die("cannot connect to server");     $db_found = mysql_select_db($database, $db_handle)or die("cannot select database"); [/code] I removed the $conn from the query and now it doesnt like my while loop. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Apache\htdocs\port\admin_article_selec.php on line 43 [code] while($row = mysql_fetch_array($sql)){     // Build your formatted results here. $now_format = $row['article_date']; $new_format = date('F d, Y',strtotime($now_format)); // transform the date echo "<div id=\"article_date\">". $new_format ."</div> \n";  // prints out: date in following format October 20, 2006 echo "<div id=\"article_chk\">"."<input type=\"checkbox\" name=\"del_select[]\" value=\"$row[id]\" />"."</div>"."<br>\n"; $row['message']=nl2br($row['message']); echo "<div id=\"article_body\">" .$row['message'] ."</div>\n";     echo $row['title']; } [/code] Fix one thing and then cause another problem.  8) ill look more into it tomorrow. There may be something im missing. As for now im off for bed. thanks for the help
  15. hmm i get an error on line 40 of my code. which is the $getlist = mysql_query($sql, $conn) or die(mysql_error()); statement [code] $sql = mysql_query("SELECT * FROM articles ORDER BY id DESC LIMIT $from, $max_results"); $getlist = mysql_query($sql, $conn) or die(mysql_error()); [/code] Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource edit: changed the above to this. and I still get the error [code] $sql = "SELECT * FROM articles ORDER BY id DESC LIMIT $from, $max_results"; $getlist = mysql_query($sql, $conn) or die(mysql_error()); [/code]
×
×
  • 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.