Jump to content

webent

Members
  • Posts

    255
  • Joined

  • Last visited

    Never

Everything posted by webent

  1. Get rid of the \ before the ' i.e. $sql = "INSERT INTO hosta VALUES ('$hid', '$name', '$hy', '$size', '$desc', '$price')";
  2. Put a \ before ' whenever they are inline text...
  3. I noticed that you weren't escaping some of your hashes in your text... didn't really look at much else.
  4. Never tried it before, but sure enough, you can access any mysql db on the server from any domain on that server using that db connection information... So, that's solved...
  5. Hi, I was wondering if it is possible to have images located in a place on a server where any domain can call them up via secure site? For example, say you have 125,000 images, you have 200 plus domains, instead of copying all those images to each and every domain... Lots of disk space... have them in like /home/images/ and perhaps like a function that does some type of grabbing the image and creating a virtual secure link of it... ? A function that somehow transforms "/home/images/image.jpg" into "https://www.theirdomain.com/images/image.jpg"
  6. Just put in the script a mail function that emails you everytime it is called up... Or make a db insertion...
  7. As a further note though, don't use date as a field name... and you may also want to take into consideration time zones...
  8. Assuming that you are using the date field in the table, you could use something like ... "SELECT * FROM table WHERE date = date("Y-m-d") ORDER BY id DESC";
  9. Forgot about the SSL certificate that you'll need also... I waited too long, wouldn't let me edit my last post...
  10. Well, the easiest way would be to get some webhosting automation software... i.e., Blesta, ClientExec, iHost, iPanel, Lpanel, phpCoin, SolidBill, Ubersmith, WHMAP, Whois.Cart, AccountLab Plus, AWBS, DHCart, eJadSPM, Freelancer Panel, ModernBill, WHMCS Lots to choose from, don't forget to get a business license, FEIN, bank account, merchant account, paypal account, google checkout account and have plenty of money to sink into marketing and advertising in an already saturated market... That's all assuming that you're doing your own web design and programming... I've done this a couple times... LOL
  11. I am running mysql version 4.1.22-standard-log on Cpanel version 11.18.3-STABLE Hi, I'm not sure if the title of this post really covers what I'm really trying to get across... I'm needing to know that, if I have a server, can I create a mysql database that can be accessed by any domain that I set up on that server? For instance, hypothetically speaking, let's say I have a very large database of information that needs to be updated daily, instead of a couple hundred cron jobs on each domain having to get the exact same update separately, which would have to be in the middle of the night, all at the same time, could I have a mysql database like in the root to where any domain can access it, so that just that one database needs updating, thus saving disk space, bandwidth, resources, and technical setup.
  12. Still not working, was just wondering, where is this mysql.php class file that you are calling in the progress.php file?
  13. It looks great, but the only thing I can't figure out is how to integrate my "print $percent_complete;" value into your code... I tried this... /* $s = Date('s'); if(substr($s,0,1) == 0) { $s = substr($s,1,1); } print $s; */ include_once "../connection.php"; $results = mysql_query("SELECT current_count, total_count FROM insertion_counter WHERE counter_id = '1'"); while ($row = mysql_fetch_array($results)) { $current_count = $row[current_count]; $total_count = $row[total_count]; } if ($total_count != 0) { $percent_complete = number_format($current_count / $total_count,2); $percent_complete *= 100; } print $percent_complete; Where that updates the graph value, it breaks the timer... I don't see where the function calls for both values, the timer value and the percentage value...
  14. I am really sorry that I never noticed that anyone responded to this post... I did not intend on being rude... Thank you for your response, I will check out it right away...
  15. You'd be much better off doing your error checking with JavaScript and then you can focus on the area where the error is coming from upon notification from JavaScript...
  16. Are you using Cpanel for your web hosting control panel?
  17. Thanks, worked great... Here's the final code... include_once "connection.php"; $mysql_version = mysql_get_server_info(); $search = array("-", "standard", "log"); $mysql_version = str_replace($search,"",$mysql_version); echo $mysql_version;
  18. Yes, LOL... rhodesa's code is much cleaner... I'm notorious for not combining built in functions...
  19. Sounds like all you need to do then is just put two different queries on those two different pages... Do you have an example of your query?
  20. Here's what I do on my sites for that particular instance... <script language="javascript" type="text/javascript"> <!-- function checkPassword(form) { if (form.password.value == '') { alert('You must supply a Password.'); form.password.focus(); return false; } if (form.password.value != form.password_rpt.value) { alert('The Repeat Password did not match the Password.'); form.password_rpt.focus(); return false; } // --> </script> <form name="test_form" action="" method="POST" onSubmit="return checkPassword(this)"> <input type="text" name="password"> <input type="text" name="password_rpt"> <input type="submit" name="submit_button" value="Test Me"> </form>
  21. Or you could always switch to webhostfreaks.com ... never have to worry about stuff like that happening... Just my opinion...
  22. maybe something like... $titleLength=strlen($title); if ($titleLength > 40) { substr($title,0,40); // Or do whatever you want to the string if it is longer // Maybe even something like this to replace a word if it is longer... $search = array("'"); $replace = array(""); $fields = str_replace($search,$replace,$fields); }
  23. Hi, I was wanting to keep the mysql version dynamically updated on one of my pages... I use... echo (phpversion()); ...to get the phpversion... I was thinking that this would work... echo phpinfo(Client API version); ...but it doesn't... Any ideas anyone?
  24. I don't know if this helps, but here is a bit of code that I wrote for ya that can show one way of passing vars into javascript, there are other ways though, you can pass them through the function itself... <script language="javascript" type="text/javascript"> <!-- function testFunction(form) { var $testVariable = form.testVariable.value; alert($testVariable); return false; } // --> </script> <? $k="John Wayne" ?> <form name="test_form" action="" method="POST" onSubmit="return testFunction(this)"> <input type="text" name="testVariable" value="John Wayne"> <input type="submit" name="submit_button" value="Test Me"> </form>
×
×
  • 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.