abushahin
Posts
-
sum from two tables -
sum from two tables -
help me translate site german to english -
SEO and php site -
Radio ButtonsOk based on what ive seen around it is possible but it differs from browser to browser you can use the style attribute but this doesnt have any effect on the latest firefox browser or chrome but ie has no probs with it. You can have a look at a preview here but if your visiting with firefox you wont see any change try it with ie. and also if you use javascript you can change it a greater deal but dont rely on javascript as users are able to turn it off. Take a look at the link provided and also the link in that page.
-
Radio Buttonshey dont quite understand what you mean, if you mean that you wanna use ur png images as radio buttons the answer is no but if wanna style the radio buttons you can do that using css or the inline styles. however if you must use the images there is something called but thatll act like a submit button. dont forget youll have to put all of those in a form and use javascript for each as one form only submits to one handling page. this isnt the best idea as different browsers may not support it
-
how can I bound execution of sql query on button click action ?ok usually you have a form with a submit button, and the form's method is usually get or post. if its either you wanna say action="sqlpage.php" the sql page is the page where your sql query runs from. have a look at this page where i have a form and the user presses the submit to a php page where the data is then passed to email. Feel free to view the page source if it helps[] Hope that helps
-
problem occurred when using mail() functionhey, i dont quite understand what you mean!
-
problem occurred when using mail() functionhey, although i havent tried emailing from my machine locally, just wondered if it was something to do with the mail client in your xammp control panel try turning on the mercury email client that should enable emailing from localhost. let me know if it works
-
New Lang ?hey, i would definitely recommend php, this is largely due to the hugh community it has on the www, all you have to do is google whatever your looking for and 9 out of 10 times you'll get what your looking for. theres plenty of login examples available out there too. But i would also recommend if you dont already know it get some idea of mysql dbs too, also get a version of xampp from myapache and friends for your machine that way you can do all the work locally before deploying anything. regards abu
-
combining 2 or more sql statementshey there! ive got four queries that need combining 1:
SELECT amount, notes FROM credit WHERE customer_Id = $cust_id
2:
SELECT amount, notes FROM payment WHERE customer_Id = $cust_id
3:
SELECT sum( amount ) AS totalpaid FROM payment WHERE customer_Id = $cust_id
4:
SELECT sum( amount ) AS totaltaken FROM credit WHERE customer_Id = $cust_id
im not totally fluent at sql queries but these are the queries that id like to be able to retreive all at once via ine single query instead of the repetition four times, any help appreciated thanks abu ;P
-
installation of mqSQL using scriptWhat do u mean by script? The only way I know of gettin mysql on ur system is thru xampp give that a go, its the best thing since............:-o abu
-
Small helpHey every modern pc supports sql :-o, I'm assuming u atleast have a windows pc or even any platform will do, assuming u have xp or above just download xampp, google it and you'll have everything u need, inc an apache server, mysql database complete with phpmyadmin that's what you'l need to do your queries (sql) and loads more, Otherwise grab urself a free webhost again google it then just use the control panel they provide to do ur queries hope that helps abu.
-
sum from two tablesHey there, I'm trying to use sum from two tables, but when I get the result its multiplying the sum by two for some reason. This is my query: select sum(credit.amount),sum(payment.amount) from payment, credit where cust_id=9. This is returning the sums but multiplied twice, any help appreciated, abu