Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=317404.0
  2. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=317400.0
  3. The answer to your question is.... $field_ser = serialize($field); $field_ser now holds your serialized array as a string. Don't store serialized arrays in a database if you need to search this data though.
  4. Indeed. Then once at a prompt you should be able to create databases.
  5. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=317410.0
  6. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=317407.0
  7. You will need to use url_decode on the processing end.
  8. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=317348.0
  9. I think haku is quietly mentioning that we are unable to help without seeing code.
  10. You will need to use cookies or a server side session to remember the users last position.
  11. Ive not used WAMP (I dont use windows) but obviously it is configured poorly. PHP should be installed as an Apache module where possible, its allot faster than CGI. You will need to configure PHP as an Apache module.
  12. You probably shouldn't be asking for help on a public forum then. Hire someone who knows what they are doing.
  13. Do you have admin access to the server?
  14. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=317329.0
  15. This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=317253.0
  16. Cappuccino is just a web framework that implements some fancy javascript by the looks. Nothing that can't be doen with any other web framework. It doesn't actually build desktop applications. Anyway, a desktop back end to a website would be achievable in any of the general desktop languages java, C# whatever. You'll just need to ensure that your actual web application provides an api. What language is best? What languages do you know?
  17. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=317326.0
  18. Have you got any code at all? Were not exactly here to write code for people.
  19. ps: Your image won't work in an email unless you prepend your domain to it.
  20. Firstly, assuming your only expecting one result, you don't need a while loop. Then, instead of echoing the result within the method itself, it should simply return the result. So, this.... while($row = mysql_fetch_array($result) { echo "<b>Date: ".$date."</b><p />"; echo "City: ".$row['City']."<p />"; echo "Calendar: ".$Calendar."<p />"; echo '<img src="img/large/'.$row['Img'].'" border="1" /><p />'; echo "Year: ".$row['Year']."<p />"; echo "Make: ".$row['Make']."<p />"; echo "Model: ".$row['Model']."<p />"; echo "Shift: ".$row['Shift']."<p />"; echo "Distance: ".$row['Distance']."<p />"; echo "Price: ¥".$row['Price']."<p />"; echo "Payment method: ".$Paytype."<p />"; } Should be.... $row = mysql_fetch_array($result); $return = " <b>Date: $date</b><br /> City: $row{['City']}<br /> Calendar: $Calendar<br /> <img src='img/large/{$row['Img']}' border='1' /><br /> Year: {$row['Year']}<br /> Make: {$row['Make']}<br /> Model: {$row['Model']}<br /> Shift: {$row['Shift']}<br /> Distance: {$row['Distance']}<br /> Price: ¥{$row['Price']}<br /> Payment method: $Paytype<br /> "; return $return; Now you can either echo the results of $object->query() or use them in your email. Not that I also changed all the <p /> tags to <br />. There is no such tag as <p /> in either html or xhtml. Also, on a side note. I have no idea why this is within a class. Especially one named database. Your method name is also very undescriptive.
  21. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=317320.0
  22. Why don't you tell us what your expecting to happen and what actually is happening?
×
×
  • 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.