-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
UID = Unique IDentity No post code.. erm i think you many need to check that! OK lets start again whats the problem with your code ?
-
change sites
-
And the problem with this code is ?
-
you need to look at the routines that set the sessions.. the code you have shown doesn't have that bug in (from what i can see)
-
what are you looking for exactly ?
-
[SOLVED] Using Select and Where and ordering results issues
MadTechie replied to Richzilla's topic in PHP Coding Help
you need a field for timestamping i used lastDL $query = "SELECT * FROM Mixes WHERE 'download1'!=NULL ORDER BY 'lastDL' DESC limit 0,5"; Revised: <?php $query = "SELECT * FROM Mixes WHERE 'download1'!=NULL ORDER BY 'date' DESC limit 0,5"; $result=mysql_query($query); $num=mysql_numrows($result); while ($row = FetchAssoc($result,MYSQL_NUM)) $download1=$row["download1"]; $id=$row["id"]; echo "{$row["dj"]}<br>"; echo "{$row["event"]}<br>"; echo "{$row["date"]}<br>"; } ?> <p align='right'>--------------------</p> <p class="main_text" align="right"><span class="time_main_text_small"> <?php } mysql_close(); ?> -
something like <?php if(isset($_POST['UID'])) { mysql_query("UPDATE table SET name = `{$_POST['name']}, lastname= `{$_POST['lastname']} WHERE UID={$_POST['UID']}`"); } ?> add a hidden field for the UID just a basic how to
-
personally i wouldn't hard code the path.. it will create more problems later!
-
how to do know when they are off the path? is it the hardcoded stuff..?
-
Well posted We're see what happens thanks guys
-
oh yes setcookie("username", "".$_POST['username']."",); should be setcookie("username", "".$_POST['username'].""); Note the last , is removed by adding the comma the function is expecting some more data
-
OK well whats the errors from what i can see your having problems as your cookies are being set after output (see quote) try <?php ob_start(); // <-- move to top ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../style/default.css"/> <title>Download Section - Members Area</title> </head> <body> <div class="logo"><h1>Lamez's Download Section</h1></div> <div class="spacer"></div> <div class="box"><font size="3"><center> <?php //<--PHP code continues .... .... also in the Member's Area Script, you are not closing the if add <?php } //<--this ?> </body> </html>
-
try this $thedate = "david, john, paul"; $thedate = '"'.str_replace(',', '","', $thedate).'"'; NOTE: that single double single (')(")(')
-
please click solved!!!
-
yeah true.. i may ask if i can just move the domain names, before thats.. i don't know.. humm
-
OK well a little update while looking for another host i am try to see if i can use them for awhile longer my reply their responce OK this is c**p 3 hours is that to setup or intervals!! any suggections for a good responce.. i dont' want to play the false advertising card yet as a note my site is something that gets used weekly (rarely daily) but at the end of the month a lot of data is uploaded and it processes a lot of reports.. i wanted the cron to be every 15/30 minutes 97% of the time it will just check the database for the job list and do nothing!
-
OK if your still reading this then thank you.. my next step is moving.. The Problem.. i have registered a few domains.. and when i registered i you get this message (see below) so i have 2 years to wait on one.. and months of the others.. now should i push for getting them released (cancelled/exchanged) so i can uses them on another site ? as far as i am aware they have broken the law Trade Descriptions Act 1968
-
Yeah looking at 1and1 and ace-host.net shame my host won't transfer my domains OK i don't like to give bad report but while i'm still mad here the site www.hostultra.com
-
OMFG!!!! looking at the spec of the basic aka mini package.. Instant Account Activation! 24/7 Support & 24/7 Live Support! No Ads FTP, PHP, MySQL Unlimited MySQL Databases! Unlimited Parked Domains / Subdomains PHP with Safe-Mode Disabled [View phpinfo] Unlimited POP3, SMTP, IMAP, WebMail Powerful Spam Filtering Custom Error Documents Custom MX Records No File Size or Type Limits All Legal Content Allowed Priority Support! now look at the spec of the WHM (the one i have) Set your own space, bandwidth and resource limits Unlimited features (MySQL, FTP, Domains etc..) PHP, MySQL, CGI, PERL, SSI Unlimited MySQL Databases! Unlimited Domains / Subdomains Unlimited FTP Accounts Protected Directories (.htaccess) Fantastico Auto Installer PHP with Safe-Mode Disabled [View phpinfo] Frontpage Extensions Optional Hotlink Protection Unlimited POP3, SMTP, IMAP, WebMail Powerful Spam Filtering Website Statistics / Access Logs Custom Error Documents Custom MX Records Cron Jobs No File Size or Type Limits All Legal Content Allowed cPanel Control Panel Plus many other cPanel functions! NOW you see the Cron Jobs.. well i submitted a ticket see below.. my ticket reply I am NOT HAPPY.. suggections... revenge one will be fine
-
still no luck its not the mail feature is the fact it doesn't seam to add the croned job! their tech support is usless.. the logs doesn't show a thing!
-
Well kinda explode will create the array for you
-
[SOLVED] what is more secure( password or SHA-1) function???
MadTechie replied to cluce's topic in PHP Coding Help
MD5 is quicker and with salt still pretty secure SHA1 is a little slower but more secure again still add salt MD5: is 128 bit (16 byte) message digest makes it a faster implementation than SHA-1. SHA-1: The Secure Hash Algorithm (SHA) is 160-bit (20 byte) message digest. Although slower than MD5, this larger digest size makes it stronger against brute force attacks. -
PHP is server side so the local functions would all be the same (bring the server) your need to use client side like javascript, you could pass this infomation to php, via cookies, Get, post etc
-
[SOLVED] Checking if a divided number isn't a fraction
MadTechie replied to FrostiE's topic in PHP Coding Help
what about <?php $x = 1.8; if(is_int($x)) { echo "integer "; }else{ echo "fraction"; } ?> EDIT: Ahh beat me -
what about natsort