Northern Flame
Members-
Posts
816 -
Joined
-
Last visited
Never
Everything posted by Northern Flame
-
well wheres your php script?
-
me using ajax a lot on my website? I still havnt released my website, but I am almost done with it and realized that I used A LOT of ajax on my website. Would you recommend that I cut down on the use of ajax or is it not that big of a deal? and how many browsers out there do NOT accept the use of ajax?
-
[SOLVED] Simple php query problem
Northern Flame replied to SocomNegotiator's topic in PHP Coding Help
this line: $ladders=mysql_query("SELECT id,name FROM ladders game=".$ladderg['game']." ORDER BY name"); makes no sense, you are suppose to have the word "WHERE" between ladders and game -
take a look at one of his pages and see how he included the template, then just do that.
-
it depends on what kind of information, if its just normal stuff maybe like an email address or something like that, yes, if its a credit card number or something more private like that, then you should get and SSL certificate to be more secure.
-
I want to create a script that will upload an image via ajax. I know how to do this regularly with PHP, but my question is if I can upload the file without the user having to click a "Submit" button. So my question is if i can do something like this: <script type="text/javascript" src="upload_ajax.js"></script> <!-- the above file will be a simple ajax script that will pass the data to a php script via $_GET --> <input type="file" name="image" size="25" /><br /> <button onClick="uploadImage()"> Upload Image </button> with the uploadImage() function I can pass the path of the image on the users computer, but can I then upload it as I normally would with PHP using $_FILES?
-
the only complaints i have is that it does not fit on my screen, other than that I like it. As for the whole tables thing, dont change that if you dont want to, many people say that divs are better, but when it comes down to it, the person coding the website should be allowed to choose from tables and divs
-
[SOLVED] Search engines and apache rewrite
Northern Flame replied to LamivNahdus's topic in PHP Coding Help
from what i know, it wont, but just to be safe you can create a robots.txt file that will at least prevent google from looking at it. But if you have absolutely no link to the actual a.php b.php c.php pages, then there should be no reason for the robots to find it. and while the robots are on www.example.com/dir/images/ they will not know that they are actually seeing a.php or b.php or c.php -
or you can have a cron job at the end of each day that will select a random image, rand(1, 10) and insert the value into a database where you can then grab the value and display the image
-
are you looking for us to do all the work for you? if so, try the freelance section, but, if you want to learn, try taking a look at some tutorials and if you run into any specific problems, feel free to ask us
-
Need help with hyperlinks code
Northern Flame replied to marketinggallery's topic in PHP Coding Help
this forum automatically puts </url> instead of </a>, nothing to do with his code.... As for your code, im looking but I dont see a problem, ill keep on trying to come up with a solution though -
[SOLVED] Search engines and apache rewrite
Northern Flame replied to LamivNahdus's topic in PHP Coding Help
wait i got a little confused at the end, what exactly is your question? -
you're welcome, remember to put "Topic Solved"
-
well first off you might need to learn PHP if you dont already know it, or hire a PHP programmer, next, if you will be accepting credit cards you will need an SSL certificate, or you can use something else to accept the credit cards such as paypal. now as for the actual tickets, I dont know much that, sorry, and good luck
-
for the sql, try: $two = mysql_real_escape_string($_GET['col_2']); $three = mysql_real_escape_string($_GET['col_3']); $five = mysql_real_escape_string($_GET['col_5']); $sql = "SELECT * FROM $table WHERE col_2 = '$two' && col_3 = '$three' && col_5 = '$five'"; // make sure column names are correct! then just put that into $result....
-
Checking a file upload field isn't empty
Northern Flame replied to graham23s's topic in Javascript Help
i dont know if theres a way of doing that without actually uploading the file and then checking the size with a language like PHP, ASP, or ASP.NET -
try this: function setBase(getBase){ var sub = "no"; } function isSub(getSub){ theSub = getSub.value; document.write(theSub); } setBase(); isSub(sub);
-
whats the output of this?
-
what you do is store the names in your database and then use a mysql_query() to get the names from your database then just echo something like this: $query = mysql_query("SELECT * FROM images"); while($image = mysql_fetch_object($query)){ echo "<img src='/folder/". $image->name ."' />"; }
-
try: RewriteEngine on RewriteRule ^([^/\.]+)/?$ /f.php?u=$1 [L] RewriteRule ^([^/\.]+)/([^/\.]+)/?$ /s.php?u=$1&p=$2 [L] RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ /t.php?u=$1&p=$2&a=$3 [L]
-
try $result = mysql_query("SELECT col_4 FROM {$table} ORDER BY submission_date DESC"); if (!$result) { die("Query to show fields from table failed:".mysql_error()); } while($row = mysql_fetch_array($result)) { echo '<a href="ResumeDisplay.php?id='.$row['col_2'] . $row['col_3'] . $row['col_5'].'">'.$row['col_4'].'</a>'; echo "<br />"; } mysql_free_result($result);
-
i think salebanon.com will be a good choice
-
[SOLVED] Two forms on one page.. any tips or tricks?
Northern Flame replied to JTapp's topic in PHP Coding Help
can we see your PHP code? -
[SOLVED] Two forms on one page.. any tips or tricks?
Northern Flame replied to JTapp's topic in PHP Coding Help
why not have one form with a radio button asking the user what they wanna search, and in your script search the tables depending on what they select. -
you can set a cookie after the user registers using one form, and if they attempt to register again, just check for the cookie, and if its set, that means they've registered, if not, then let them register. Hope that makes sense. Good Luck