234 Posted Topics
Hi, I have a working account generator, which passes the password to mysql with MD5. I am currently working on a forgot password script, which generates a new password and stores as md5, then emails the user, however, the new password is not recognised. This is the forgot script. Can … | |
Re: make the css paths absolute with a / at the start | |
Re: use get parameters to decide which page to use and store answers in a serialized session variable ![]() | |
Re: without seeing what you have attempted...... (this is just a second guess) $array = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19); sort($array); $i = 1; while ($i < 11){ foreach ($array as $key => $val) { echo "array[" . $key . "] = " . $val . "\n"; } $i ++ } ?> | |
Re: Hi, this should help [code] $myQuery = "show columns from $my_table_name"; $result = mysql_query($myQuery); $row = mysql_fetch_row($result); $columncount = count($row); [/code] | |
Re: for each on try if (isset($_POST['the name'])){ $the_name = $_POST['the name']; } else { $the_name = ''; } | |
Re: try changing the paths to either ./ or define the exact path by defining the sites url ![]() | |
Re: this has helped me greatly in the past. http://jqueryui.com/sortable/ | |
Re: why dont you try having the messages present, but set to display none in css. if something fails you could the change the css to display block. | |
Re: take a look at the jquery ajax. far fewer lines of code. it would then allow you to make multiple instances of a file upload option like "upload another file". ![]() | |
Re: $_SESSION worshops will have 2 instances of what you are looking up in the database. so you are instigating two echo's ![]() | |
Re: check to see if <div style="clear:both"> or something similar works OR just make sure you have finished the table off correctly with </table> | |
Re: The image is set in your code to be 20% height and width. As a result, if you have something that is 100 x 100, it will display 20 x 20. If its 1000 x 1000 it will display 200 x 200. What i suggest you do is make sure … | |
Re: what you need to do is use a url like [url]www.mysite.com/profile.php?id=robert[/url] Then at the top of your script you can get that value by using [code] $id = $_GET[id]; [/code] which will give the $id the value of robert | |
![]() | Re: Hi, Mysql cant read php. what exactly is $e? If thats your php variable you need to create a php script thats accessed from a browser. If your information is encrypted then it will not pick up anything as all. I use MD5 encryption which is 1 way only. the … |
Re: have you tried to write a script? if you post what you have i can run through it | |
Re: Im not sure if this is any use, but when i collect data i use dot notation, and on joins its usually a LEFT JOIN which will return a value even if values are empty Select table1.columnname as name1, table2.columnname as name 2 FROM table1 JOIN table1.id = table2.id ![]() | |
Re: your problem is that your making a csv file. You cant have multiple table with that, it would need to by xls. take a look at this class http://www.phpclasses.org/package/644-PHP-Easy-way-to-stream-Mysql-sql-content-to-Excel-.html | |
Re: where you have name='', change it to name='" . $rowname . '" | |
hi all, when i send an email, the headers include the path to the file that executed the script in the x-source-args parameter. can this be supressed? | |
Hi All, Im attempting to set up a cron job using CPANEL. I can get the location and timing correct, but the script wont run, saying it cant find files i have included. The file itself runs perfectly fine, with no error both onscreen and in the error log. Any … | |
Hi All, I currently have an .htaccess set up to rewrite to a single URL. at the minute it is for places. so mysite.com/region/town will rewrite to places.php i now need to add another, this time for skill i.e. mysite.com/construction/bricklayer and i want it to redirect to skills.php i have … | |
Re: with php you can add a parameter by just echoing it where you want it to be [code] EMBED src="http://mysite.com/120_600.swf?inner=<?php echo $inner;?>&url=<?php echo $url;?>&linkid=F1" [/code] | |
Hi all, I need to figure out how to validate the contents of a file. I know how to do it via mime and extension, but i could still upload, for example, a php file that would satisfy those checks. Any ideas? regards paul ![]() | |
Hi All, Can anybody see why the following function is ignoring the plain text part of the multipart? [code] $attachment = chunk_split(base64_encode(file_get_contents($filetoattach))); //Let's start our headers $headers = "From: $from_name<" .$from_name . ">\n"; $headers .= "Reply-To: <" . $from_name . ">\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/related; type=\"multipart/alternative\"; … | |
Hi All, Im trying to get my mail to display like the following From: Paul "paul@paul.com" Reply to Customer Services // with the email only showing when clicking reply my current headers are set to [code] $headers .= "To: " . $dsv_to . " <" . $dsv_to . ">\r\n"; $headers … | |
Re: have you tried using an array in a str_replace command? [code] $string = 'test.com/%20\\'; $array = array ('.com', '%', '', '/'); $string = str_replace($array, '', $string; [/code] This should just return the word test. I havent tried it but pretty sure you could use that. ![]() | |
Hi All, Can anybody shed any light on how to hide the servers email address when sending an email? It currently states: From [email]myserver@emailaddress.com[/email] on behalf of [email]myemail@address.com[/email] thanks | |
Hi All, Im in the middle of making a dynamic multi part email and have come accross a snag. The function receives a file, and depending on the content of that file it then processes the relevant headers and mixed parts, however, rather than echoing the items i need to … | |
Hi all, I have a multidimentional array that i need converting to a single array on the fly. to do this i use the following function. I need it to be changed to return the key name rather than setting it to a value [code] function array_values_recursive($ary) { $lst = … | |
Hi all, I have a 2 dimentional array. What im trying to do is pull out the relevant bits and slot them under their correct segment, which works for tier one. If totally forgotten how to loop through the 2nd tier of the array. i know it needs to go … | |
Re: Hi, For the UK there isnt a free one. There are a number of integratable ones on the internet that offer free credits. txtlocal.co.uk is really easy to use | |
Re: try using the following script, with the GET file pointing to your file and adjusting the refresh rate to whatever you need. I just took the from an online tutorial. easy to get started [code] <html> <head> <script type="text/javascript"> function showUser(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) … | |
Hi All, I have a number of arrays stored as a text string in a database (ive included it at the very bottom). As this is a text string i need to know how to convert it back into an array. Also, how can i access a single element, i.e … | |
hi all, Im after a little help here. I have a md array stored as text in mysql. what i need to do is get it out (which ive done), then store it as a real array so i can loop through it to output as a csv file (which … | |
Re: you can use echo to do this. eg [code] <input type="checkbox" name="something" <?php if ($i=1){ echo "checked";)/> [/code] | |
Hi All, I hope somebody can help. I would like to make 1 large query from a mysql database. Once called I want to get whatever i want from that stored array, which is where im having trouble. What i have so far is the following code, but each time … | |
Hi All, I have a multidimentional array. What I want to do is increment $a each time i find an array element with a certain value. my array comes from a mysql query. So lets say sex can be male or female, how can i get it to only increment … | |
Hi All, I have been working with the framework from the following tutorial [url]http://www.phpro.org/tutorials/Model-View-Controller-MVC.html[/url] Im struggling to get it to connect to a database using the pdo method. Can anybody advise as to how I can get the database connection up and running? Im not a newbie by a long … | |
Hi All, I want to be able to have a form element greyed out unless other elements are satisfied. Ive got the following code so far, but i cant seem to get it to recognise that i have made the selection. Also im wondering how to make it only ungrey … | |
Hi All, Im looking for some advice. Id like to know how to give external access to an internal system. i.e. i have a public address, say 82.119.34.2. Id like to know how to point that at an internal localhost. many thanks paul | |
Re: what i suggest you do is not store your CSS in a file, but a database. That means you could use a wysiwyg to edit it and will update on saving. | |
Re: can you give some more info? Are you saying you want the text area to store info as if like word. saving bold, pics, font size, color etc? | |
Hi All, Im having trouble getting a crob job to run. What i have so far is /home/backup.sql.gz mysqldump -h 82.108.157.106 -u root -ppassword database name | gzip > /home/echou/backup.sql.gz any assistance would be appreciated | |
Hi All, Im running a script that goes 3 deep on parentheses, and then needs to change database at the deepest level. Im having trouble switching to that database in an if else query. any help would be appreciated [code] function getElement1(){ $con = mysql_connect('localhost','uname','pword') or die (mysql_error()); $authenticate = … | |
Hi all, Im a bit stuck. I think im staring the answer right in the face but cant see it. Im after a query that references 1 table. Its output will be each unique source code along with a total of grouped data from a single column. SOURCECODE Count of … | |
Hi All, Can anybody help me here. The code below is picking up the first pages records but it wont move to the next page. [code] <?php // Connects to your Database include "myFunctions.php"; getConnection(); //This checks to see if there is a page number. If not, it will set … | |
Hi all, I have a number of refreshing divs in my code, all of which work fine. Ive been trying to create a dynamic graph using the same method, but when i run the script all i can see is the following when the graph should be PNG ��� … | |
Hi, Im currently using fpdf to generate an auto report, but im having an issue with overflow on the notes column, as this can be anything from 1 to 300 words. i can count the words using the following script, but im struggling to find out how to limit the … | |
Re: what you need to do, i believe, is a while loop. e.g. [code] <?php $SQL = "SELECT * FROM yourtable WHERE "whatever your looking for"; $results = mysql_query($SQL); while ($row = mysql_fetch_array($results)){ $SQL = "Wht you want to do"; etc etc etc } [/code] |
The End.