Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
82% Quality Score
Upvotes Received
9
Posts with Upvotes
9
Upvoting Members
7
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
0 Endorsements
Ranked #818
~88.0K People Reached
Favorite Tags

234 Posted Topics

Member Avatar for whiteyoh

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 …

Member Avatar for rproffitt
1
2K
Member Avatar for OsaMasw
Member Avatar for lalit01

use get parameters to decide which page to use and store answers in a serialized session variable

Member Avatar for diafol
0
106
Member Avatar for alfredferg

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 ++ } ?>

Member Avatar for santoshv22
0
2K
Member Avatar for Manuz

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]

Member Avatar for Terry_2
0
300
Member Avatar for Queos_1

for each on try if (isset($_POST['the name'])){ $the_name = $_POST['the name']; } else { $the_name = ''; }

Member Avatar for Bukhari1986
0
551
Member Avatar for pjh1985

try changing the paths to either ./ or define the exact path by defining the sites url

Member Avatar for diafol
0
152
Member Avatar for jacobi

this has helped me greatly in the past. http://jqueryui.com/sortable/

Member Avatar for whiteyoh
0
132
Member Avatar for facarroll

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.

Member Avatar for whiteyoh
0
135
Member Avatar for nyler01

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".

Member Avatar for diafol
0
935
Member Avatar for turpentyne

$_SESSION worshops will have 2 instances of what you are looking up in the database. so you are instigating two echo's

Member Avatar for diafol
0
211
Member Avatar for Persi

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>

Member Avatar for whiteyoh
0
99
Member Avatar for hwoarang69

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 …

Member Avatar for whiteyoh
0
109
Member Avatar for PierreJ

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

Member Avatar for dw_user
0
3K
Member Avatar for dan_ord

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 …

Member Avatar for tough
0
4K
Member Avatar for h0k1

have you tried to write a script? if you post what you have i can run through it

Member Avatar for baig772
0
347
Member Avatar for asif49

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

Member Avatar for diafol
0
111
Member Avatar for lyrico

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

Member Avatar for whiteyoh
0
300
Member Avatar for sainigks
Member Avatar for whiteyoh

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?

Member Avatar for pritaeas
0
62
Member Avatar for whiteyoh

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 …

Member Avatar for whiteyoh
0
74
Member Avatar for whiteyoh

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 …

Member Avatar for pritaeas
0
108
Member Avatar for muralibobby2015

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]

Member Avatar for muralibobby2015
0
156
Member Avatar for whiteyoh

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

Member Avatar for diafol
0
103
Member Avatar for whiteyoh

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\"; …

Member Avatar for cereal
0
112
Member Avatar for whiteyoh

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 …

Member Avatar for pritaeas
0
88
Member Avatar for Venugopal Ravi

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.

Member Avatar for diafol
0
159
Member Avatar for whiteyoh

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

Member Avatar for eXpertPHP
0
70
Member Avatar for whiteyoh

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 …

Member Avatar for whiteyoh
0
140
Member Avatar for whiteyoh

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 = …

Member Avatar for cereal
0
68
Member Avatar for whiteyoh

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 …

Member Avatar for ddsuresh
0
95
Member Avatar for eltonpiko

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

Member Avatar for eltonpiko
0
130
Member Avatar for Sorcher

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) …

Member Avatar for whiteyoh
0
120
Member Avatar for whiteyoh

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 …

Member Avatar for NettSite
0
117
Member Avatar for whiteyoh

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 …

Member Avatar for whiteyoh
0
101
Member Avatar for manu555

you can use echo to do this. eg [code] <input type="checkbox" name="something" <?php if ($i=1){ echo "checked";)/> [/code]

Member Avatar for tiggsy
0
99
Member Avatar for whiteyoh

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 …

Member Avatar for twiss
0
107
Member Avatar for whiteyoh

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 …

Member Avatar for twiss
0
124
Member Avatar for whiteyoh

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 …

Member Avatar for jkon
0
73
Member Avatar for whiteyoh

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 …

0
75
Member Avatar for whiteyoh

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

Member Avatar for orwell84
0
58
Member Avatar for coolrj01

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.

Member Avatar for whiteyoh
0
75
Member Avatar for Awah Mohamed

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?

Member Avatar for whiteyoh
0
64
Member Avatar for whiteyoh

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

Member Avatar for whiteyoh
0
91
Member Avatar for whiteyoh

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 = …

Member Avatar for whiteyoh
0
107
Member Avatar for whiteyoh

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 …

Member Avatar for tiggsy
0
83
Member Avatar for whiteyoh

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 …

Member Avatar for vivekdizzal
0
214
Member Avatar for whiteyoh

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  ��� …

Member Avatar for nonshatter
0
100
Member Avatar for whiteyoh

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 …

Member Avatar for Kieran Y5
0
248
Member Avatar for BaSk

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]

Member Avatar for whiteyoh
0
131

The End.