-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
Interaction .. there's nothing for the user to do except read about that they may well already know! A
-
Couldn't work out what your table name was.. <?php $query = mysql_query("SELECT * FROM tablename"); while ($row = mysql_fetch_array($query)) { $myparam1 = $row['pageclass_sfx']; // do whatever else } ?> That's the basics of it.. In that example though for each record returned it would overwrite the $myparam1 variable. A
-
Ah yeah! My mistake! A
-
I'd say so.. Very simple though: <?php $str = file_get_contents("http://".$server."/".$server."/pbsvss.htm"); $str = str_replace("<a href=","<a href=http://".$server."/".$server."/", include("http://".$server."/".$server."/pbsvss.htm")); ?> A
-
I don't think that's quite what he's trying to do. I think he's trying to append a full URL to all the links included from 'pbsvss.htm'.. A
-
I'm not sure whether or not include can be used within the function, but you have to assign the returned value to a variable: <?php $str = str_replace("<a href=","<a href=http://".$server."/".$server."/", include("http://".$server."/".$server."/pbsvss.htm")); ?> A
-
Also just to add, you have it the wrong way round with security. JavaScript is not secure in any way. After reading a quick tutorial / article, any developer could hack JS! A
-
Could just sign up for an account with a free web host, upload it there? I don't know any good ones myself but from what I hear there's some really decent ones out there! A
-
Try this... xmlHttp.onreadystatechange=function() { stateChanged(idd); } You'll need to modify the stateChanged function.. function stateChanged(idd) { A
-
I'd also 'grey out' the direction buttons on the scrolling bit when they're not usable, and add "cursor:pointer;" to them when they are usable! Doesn't validate! http://validator.w3.org/check?uri=http%3A%2F%2Fwww.purplefusion.co.uk But it's a nice site! I don't think your logo needs much more except made larger! A
-
When I login I'm being redirected to "about:blank" .. ? Not much there to critique really, but it looks good. I'd say the <fieldset> doesn't look brilliant though! The colors go pretty well.. Doesn't validate! http://validator.w3.org/check?uri=http%3A%2F%2Fwww.wmptest.com%2Fstbs%2Findex.html A
-
<?php while ($row = mysql_fetch_assoc ($result)) { echo "<tr><td>" . $row['patient'] . "</td><td>" . $row['mrn'] . "</td><td>" .$row['billing_date'] . "</td><td>" . $row['billing_lvl'] . "</td><td>" . $row['dx1'] . ", " . $row['dx1'] . ", " . $row['dx2'] . ", " . $row['dx3'] . ", " . $row['dx4'] . ", " . $row['dx5'] . ", " . $row['dx6'] . ", " . $row['dx7'] . ", " . $row['dx8'] . ", "; echo "</tr>"; } ?> You're echoing $row['patient'] within the loop? A
-
You can use "setInterval()" to run a function every 60 seconds... If you replace 'elements_id_here' with your input's ID in the code below, you will be able to return the value of it: var someInput = document.getElementById('elements_id_here').value; You'll then need to use AJAX (Google: "AJAX tutorial") to send those values to a PHP script 'in real time' kinda thing... Your PHP script will obviously receive the values, save them in a table such as 'drafts' or something, and your done! Will become a lot clearer when you understand AJAX.. A
-
No joy :/ Cheers for helping me though! A
-
When you connect through FTP, you should be brought into the root directory. Often there are several sub-directories such as (remember there are several common names for most of these).. - logs - htdocs - private "logs" will obviously contain logs, for things such as errors. "htdocs" is the web root. Everything beyond htdocs is technically accessible through a browser. "private" is kind of miscellaneous directory - store your private files in here (such as your db-connect.php file). You could use private (or whatever similar name yours has), or you could create your own, say "php"? As I said only files within htdocs are accessible through a browser, however in your PHP scripts you can still include files from the other directories. So assuming you're in your web root directory, you could use: include '../php/db-connect.php'; Which will still work no problems, but isn't accessible to anyone but you and your scripts! A
-
Hah! I couldn't tell if they were jokes or not. Here's a similar article, but they are genuinely serious.. http://shelleytherepublican.com/2008/01/22/mysql-the-harpooned-dolphin.aspx A
-
Forums aren't the easiest thing in the world to take off from scratch! Certainly helps to have a useful / informative / helpful website in front of it to attract users in the first place, and, to keep them coming back... Who wants to join a forum with no members?? The green theme you have on now, I'm not a big fan of. It's awkward on the eyes! ... As Maq said not much to critique. A
-
http://jerryleecooper.com/ - be sure to read the comments!
-
Add this meta tag to the <head> of the documents to stop search engines indexing them pages: <meta name="robots" content="noindex, nofollow" />
-
[SOLVED] Cant upload mp3's with this script?
Adam replied to stevehart808's topic in PHP Coding Help
Try creating a .php file with only the text: <?php phpinfo(); ?> Then looking for the "upload_max_filesize" setting - check that's not lower than the size of your mp3's! A -
Save the file outside of your "htdocs" (or whatever you have on your server) directory.. that way it's inaccessible through the browser.. A
-
Well what do you expect to happen? from what's visible of the form: <form action="processProduct.php?action=addProduct" method="post" enctype="multipart/form-data" name="frmAddProduct" id="frmAddProduct"> <table width="500" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable"> <tr><td colspan="2" id="entryTableHeader">Add Product</td></tr> <tr> <td width="150" class="label">Category</td> <td class="content"> <select name="cboCategory" id="cboCategory" class="box"> <option value="" selected>-- Choose Category --</option> <?php echo $categoryList; ?> </select></td> </tr> You've not got anything in place to actually cause something to happen when you select different options? I imagine you're wanting to submit the form as they change the menu? If so add: <select name="cboCategory" id="cboCategory" class="box" onchange="document.getElementById('frmAddProduct').submit();"> You could extend that using a custom JavaScript function (to add validation or whatever) and have something more like: onchange="submitAddProduct();" Then create your function like so: <script type="text/javascript"> function submitAddProduct() { // validate / do something first document.getElementById('frmAddProduct').submit(); } </script> A