Jump to content

forumnz

Members
  • Posts

    735
  • Joined

  • Last visited

Everything posted by forumnz

  1. I have created a design for a client. It is in the form of an image at the moment. www.designervision.co.nz/webuy2 The client wanted a clean, simple website. Colors: Orange/yellow, blue text. He wanted it similar to www.dhgate.com but more modern and appropriate. Is it good/bad? What would improve it? Thanks Sam
  2. There is another website that I want to collect details off. There are pages of details each with a unique number, so the pages look like ...com/Page.php?number=12345 Each page has the same information on it, just customised for each page (like name, date etc) How would I go about creating a PHP script to collect all the data and store it in my database. I am a confident user of PHP so I will undertsand, I just haven't done this before. Thanks, Sam
  3. Can I copy files from server A to server B assuming I have all the necessary FTP details etc? And can every file file be copied if the folder containing them is copied? Thanks! Sam
  4. I have this script I wrote to set cookies. Why doesn't it work? It just says "500 Internal Server Error". Thanks. <?php $m025to039 = $_POST['m025to039']; $m090to099 = $_POST['m090to099']; $m040to049 = $_POST['m040to049']; $m100to149 = $_POST['m100to149']; $m050to068 = $_POST['m050to068']; $m150to199 = $_POST['m150to199']; $m069to079 = $_POST['m069to079']; $m200to299 = $_POST['m200to299']; $m080to089 = $_POST['m080to089']; $m300plus = $_POST['m300plus']; $cur = $_POST['currency']; setcookie("m025to039", $m025to039); setcookie("m090to099", $m090to099); setcookie("m040to049", $m040to049); setcookie("m100to149", $m100to149); setcookie("m050to068", $m050to068); setcookie("m150to199", $m150to199); setcookie("m069to079", $m069to079); setcookie("m200to299", $m200to299); setcookie("m080to089", $m080to089); setcookie("m300plus", $m300plus); setcookie("curr", $cur); header("Location Search.php?m=s"); ?>
  5. I want to select * from a database where unit is equal to either A or B. How is this done? Would it be... WHERE unit BETWEEN A AND B...? Thanks Sam
  6. How can this be done. Let's say there is a from with a dropdown box with an option to select from database where id is between 20-30. How is this done? Would it be ...... WHERE `id`="20-30"......? Or what? Thanks! Sam.
  7. Can PHPMyAdmin create PHP code to create tables? Thanks heaps! Sam.
  8. Hi, this website is targeted towards small businesses and website designers. Does it look appealing to that demographic? Thanks - www.sitequote.co.nz
  9. I want to update a db row +15.. This is what I have so far.. mysql_query("UPDATE webdevscon SET bal = +15 WHERE id='$wdid'"); Why won't this work?
  10. How do I get last month (May), to display? I tried date(F-1), but that didn't work. Thanks, Sam.
  11. How can this be done? Like for example if I wanted to display from Jan to Jun. Thanks, Sam.
  12. <? $result = mysql_query("SELECT * FROM requests WHERE MONTH(acctime) = '06' ORDER BY id ASC"); ?> Thats the part that is having the trouble. Thanks, Sam.
  13. I have a table in a database, and I want to select all the rows with a datetime between two dates.. for example from the start of June until now.. how do I do this in a mysql query? Thanks! Sam.
  14. Thanks..but what if I want it to be a variable? Like if in the end I want $numbers to equal '1,2,3,4,5'. How is that done?
  15. I want to SELECT numbers FROM a database WHERE user='user'...I know how to do that... but lets say there is 5 rows with that user... how can I display the number from each one like this 1,2,3,4,5 ? Just the numbers with a comma in between? Hope this makes sense! Thanks! Sam.
  16. THANK YOU!! THANK YOU!! THANK YOU!! THANK YOU!! Sam ;D
  17. How can this be done? For example if I wanted to get the rows in a database, with id's 1,5,37 and 95. How can this be done? Thanks! Sam.
  18. I dont see what is wrong with this: <? $con = mysql_connect("localhost","aaaaa","aaaaa"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("aaaaa", $con); $result = mysql_query("SELECT * FROM accepted WHERE bid='$wdid' AND reqid='$rid"); $num_rows = mysql_num_rows($result); echo $num_rows; ?> I get this error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/www/vhosts/sitequote.co.nz/httpdocs/Members/ViewRequest.php on line 76 Thanks!
  19. Hi I want to have a line break. How would I do this? Thanks heaps! Sam.
  20. I use PHP to get some data from a database and display it. The text that is displayed goes on for too long. How do I use CSS to make it shorter? The div is 150px wide and I want the text to stay within that and not overflow. Thanks, Sam.
  21. When someone goes to my website I 'example.com' instead of being http, I want it to go to https. How do I do this? Using FTP I had 2 folders.. One was httpdocs and the other was httpsdocs, so I put an index file in the httpdocs folder that redirects to https://www.mysite.com/ but it say that the page is never going to complete. What should I do instead?
  22. How can I generate a random 32 character string?
×
×
  • 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.