Jump to content

Thauwa

Members
  • Posts

    142
  • Joined

  • Last visited

Everything posted by Thauwa

  1. I appreciate you helping me in many of my posts. Thanks. In a tutorial, I got a code like this, $pages_query = ''; if ($sort != 0) { $pages_query .= '&sort='.$sort; } if ($artist) { $pages_query .= '&artist='.urlencode($artist); } if ($a_match) { $pages_query .= '&a_match='.urlencode($a_match); } // $pages_link is for page numbers only! $pages_link = 'index.php?pageno={page_link}'.$pages_query; // Fourth parameter is how many digits on each side of the current page number will be printed $page_numbers_formatted = quick_page_numbers(0, $pageno, $pages, 5, $pages_link)."\n"; but it was too complex. Ummm...I feel ashamed of myself........... **how do I create the next, prev, links.. :'( Answer it only if you want to.
  2. THanks. Then I must start echoing, after the $query?
  3. mysql_connect("host", "user", "pass") or die(mysql_error()) ; mysql_select_db("database") or die(mysql_error()) ; //Retrieves data from MySQL $data = mysql_query("SELECT * FROM table") or die(mysql_error()); //Puts it into an array while($info = mysql_fetch_array( $data )) { echo "<a href=\"/view.php?id={$info['id']}\">{$info["name"]}</a> <br>"; echo "Description: ".$info['description'] . " <br><hr>"; } Could any one paginate this for me. It is too complicated for me. Please don't ban me for asking such a direct question, moderators, for I've gone nuts trying to paginate this simple echo. Thanks in advance. P.S. I've read many tuts on pagination and understood none
  4. I have a page called do.php, and it displays records when url is like, view.php?id=2 I have a flash document in which I need to load mysql data from an XML file, which too singles out data in the above way (ex:id=2). So I need to get the 'id' value from the url to the actionscript, which loads data from the XML. The flash object is to be in 'view.php', but data loaded from xml.php (php file with XML content). Both should have the same ids. So, all I need to know is how I can get the ID value from view.php and use it in the flash doc. to get data from xml.php. Here is the flash actionscript code: myData.load("xml.php?id=ID FROM VIEW.PHP"); Thank you all very much in advance, because I was struggling to have this problem fixed, and I know that one of you all can help me!
  5. Thanks for the help, it worked, but.... What if there are no values, due to inserting purposes? I mean, how do I insert a value into MySql from the radio button, like 'y' if the button is selected and 'n' for the rest?
  6. I think that the new code is correct, because, when the previous code is put, Parse error: syntax error, unexpected '?', expecting ',' or ')' in D:\Hosting\3577251\html\quiz\submit.php on line 6 occurs. Thanks, I'll try the new one!
  7. Cannot I use 'y' instead of 'yes' and 'n' instead of 'no'. An error occurs when it is, saying that a ') or a ',' must be there
  8. I need the user to select only one radio button out of a group of four radios. I have two groups of four buttoned radios. How can this be achieved? Thanks in advance!
  9. OK! Lemme try it now! Now, do you happen to know about pagination?
  10. That means that I have to include all other variables in the URL?
  11. I have a table called 'items' and it has fields called name, cost and description. When dynamically echoing out the values (ex: items.php), i have added an extra field called URL, which is a URL for ex: page.php?item=table Now, I get the URL by using the variables, but how do I design page.php, so as to display each record regarding 'table', i.e. name, description and cost. The thing is that I need to display them individually. And another thing that I want to know is how to paginate the records in 'items.php' (the example I used at first). Thanks in advance for any help that you can offer.
  12. Thank you! I hope that it works!
  13. thanks, i'll try it. then, there must be no value to the box in the html?
  14. Status - I have an HTML form, which has checkboxes named c1, c2, c3 & c4. When checked, the value (thing I want to insert to mysql) must be 'yes', and the remaining must be valued 'no'. ??? Situation- I can't find how to do it. :-\ Help! Does anyone know how to achieve this? Thanks in advance!
  15. Thanks guys. I am now using php include function.
  16. Thank you! After many troubled nights, I've found the code. I made it, and I am 14 years old only. Now I am developing my own software!
  17. can I at least do it with XML alone?
  18. seriously...i need this feature a lot....i spent my sight on reading tutorials but none work..... I need to get data from mysql to flash textboxes................ btw, tks corbin for your support...
  19. I am trying to get data from mysql from a shared server to an XML file. Hele's the code I am tring to get the data into. (PROBLEM IS THAT I WANT THE FILE TO BE A .xml FILE!). the code below is XML.I want all values to be from MYSQL which I can't figure out. Anyway, I want the output as an XML file. <quiz> <title>MySql</title> <items> <item> <valuemain>MySql</valuemain> <value="MySql">MySql</value> <value="MySql">MySql</value> <value="MySql">MySql</value> <value="MySql">MySql</value> </item> This is for a flash based app. Please help and thanks in advance!
  20. Are those ads ones you made or ones which other companies made for you?
  21. hey! can you help me in http://www.flash-db.com/Board/index.php?topic=15903.0 ??? ??? I tried and tried, but it dosen't work! php and flash bit. I even edited the code to my knowledge and still it dosen't work....
  22. of course ive read a lot....but I need direct coding, because i cant do it. i simple want some excellent tutorials!!!!
  23. can anyone help? i need to send data from MySql to Flash via php. codes of php and flash needed~~~~ ???
  24. ive tried all i can to understand it. there is something about loadvars, thats all.... ??? any help is honoured!
×
×
  • 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.