-
Posts
827 -
Joined
-
Last visited
-
Days Won
9
Everything posted by fastsol
-
Old Mysql? Syntax issue - Need advise Error "Unknown column in on clause"
fastsol replied to Looktrne's topic in MySQL Help
Most likely it's cause of the second member_id in the string here privacy.member_id = member.id privacy.member_id = member.id Maybe it's supposed to be privacy.member_id = photos.member.id It can't determine what table the member_id is supposed to compare -
For the main warning message you are getting, it's because you are passing a empty string to the implode when the session var is not set instead of a array. Move the implode code inside the if() directly above it.
-
Couple things, first your query has syntax errors. This one for sure, there shouldn't be a ; at the end =groupe.`Id_Specialite`; and not sure what you're doing here ''+mail+''' but with all those quotes I am sure it's causing issues. Second the option tag generally doesn't use an id, it should be using the value tag instead to hold the $viewallSpeciality['Id_Specialite'] you are putting in to it. Lastly you can put or die(mysql_error()) at the end of your query to show you why it failed. Although you should really stop using the mysql functions since they are now deprecated and will be removed in the future from php. It would be a good time to start using PDO or mysqli instead.
-
sending sms through own website to a mobile number procedure
fastsol replied to loveamit's topic in PHP Coding Help
I recently did this for my site and I used eztexting.com It was easy to setup and they have full code examples. Price was decent at 5 cents a text. There are cheaper places out there but I liked the documentation they had over the others I looked at. -
javascript validation errors to be displayed after each textbox
fastsol replied to jackgoddy123's topic in Javascript Help
If you're using html5 then you could just put required in the input code and the browser will handle checking if it's empty. <input type="text" name="whatever" required="required"/> -
Correct
-
Ummm, well it shows you exactly how to use jquery to send data to a php script for processing. What is your updated code after watching the video and implementing the post/ajax request and what is your php code for the db insert? You're not really telling us anything by saying it still doesn't work. Also it's not a good thing to place the sql string in the jquery code for the world to see. Especially if you are literally taking that sql string and passing it to a query command. Literally anyone could change that sql string and do literally anything they wanted on your server, very very very bad thing.
-
Check this tutorial out https://www.youtube.com/watch?v=-EHbBHm5l4g
-
You're going about this completely wrong. PHP only executes on the server side upon page load, not from a javascript action. Take a look at this tutorial and it will help you understand well. https://www.youtube.com/watch?v=-EHbBHm5l4g
-
I struggle with the same things when trying to use a CMS that someone else built. If you don't know all the ins/outs of the system it can make it hard to integrate things the best way possible based on how the cms was designed. I am very comfortable with php and have my own methods doing things. So for that very reason I designed my own CMS that I use in all my projects. It's a system that I know since I built the entire thing and is highly adaptable especially to the way that I build websites. So maybe that's what you need to do, build your own. Granted I have spent 5 years building mine and has gone through many upgrades as I build more sites but that just makes it better I feel. Check it out, links in my signature.
-
The only thing I like is the facebook and twitter icons at the bottom. The entire rest of the site looks totally outdated.
-
Well then most likley the $id doesn't have a value when you are trying to use it. If you do a view source of the code in the browser, does the value show for the checkbox or is it blank?
-
Most likely your first query is failing since you are not giving any value to $id for the uid in the query.
-
Well you need to start by putting a DOCTYPE at the top of the page and put your script tags inside the <head> in stead of above it. Right now you have totally invalid html going on which will always cause weird things to happen.
-
What's the Apache 1.3 version of this string?
fastsol replied to fastsol's topic in Apache HTTP Server
I love it when I post something I have been looking at for hours and then almost everytime I find the answer within minutes. All I needed was a ^ here [^\d] -
I have this rewrite rule that according to my host only works on Apache 2.0 and higher, but they are running 1.3 on their shared hosting side. I am wondering if there is a 1.3 version for this rule that you could provide. I really know almost nothing about this stuff RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^(.*)\.[\d]+\.(css|js)$ $1.$2 [L] Thanks, JD
-
Add bottom:0px; to your list.
-
Are you sure your host allows email sending, many of the free hosts limit many functions.
-
Be careful with this site, most hosts do not like porn sites on their servers unless you are paying for a private server with them.
-
Are you Ashley? I would guess the reason that the spoil page is not loading is cause you seem to name your files with uppercase letters but on the spoil.html it's all lowercase, so the server can't find that file, hence the 404 page not found error. Your spelled results wrong echo "$theResutls";
-
Put this after the opening php tag and see if it gives you any other errors. error_reporting(E_ALL); Depending on if this is on your local host or a paid hosting account, you may also need to turn on error reporting in the php.ini file. If it's not on, the line above won't do any good. Also if you're on localhost, do you have a mail server setup? If not then t won't send mail anyway.
-
You need [] around the post vars not () $_POST('name'); // BAD $_POST['name']; // GOOD Change it for all your other vars too.
-
Your form is posting to a html page which can't process the php. Also I have a nice prebuilt contact form that uses ajax and phpmailer to send which will work much better. It's free to use here JD