39,326 Topics
| |
Hi I am having some issues with getting data to update for a logged in users account, I have got it to display the data in the database which i want to edit but for some reason it just wont go through it says it has updated but when I … | |
I Need Help With My **.htaccess** file .. Now i have link like that http://www.afrogfx.com/20121028050853/Test.html problem located with **Slash /** !! if you click on my link you will found link without style if remove slash you will get 404 Not Found Like That http://www.afrogfx.com/20121028050853Test.html Try it !! **Here Is … | |
I'm trying to cleanse a db field which stores UK postcodes. Postcodes can be 7 or 8 characters long but they will always have a space character in the 4th position from the end. The last 3 will be 1 digit plus 2 letters. Customers on entering their address will … | |
I'd like to search this before asking a question but I'm not sure exactly what to search for. Posting for help is always a last resort for me. What I'd like to find is I think it's called a loop? or foreach? I think.. What I want to do is … | |
I wrote a php email that sends me an email whenever a web form has been submitted. Good thing is that I recieve the email, but bad thing is that I get multiple emails (3x)... one is a duplicate of the table I receieve and another just shows the HTML … | |
Here's my index.php page: <?php require 'connect.php'; ?> <html> <body> <form action="action.php" method="post"> Username: <input type="text" name="uname"> Password: <input type="password" name="pword"> <input type="submit" name="submit1" /> </form> </body> </html> Here's my connect.php page: <?php $connect = mysql_connect("localhost", "root", ""); if (!$connect) { die ('Could not connect: ' . mysql_error ()); } … | |
I get an error when i try to execute this PS: $ADJUST = "UPDATE modul_galleri SET pos = pos - 1 WHERE pos = ?"; $ADJUST_PREP = mysqli_stmt_prepare($connection, $ADJUST); $ADJUST_PREP = mysqli_stmt_bind_param($ADJUST_PREP, "i", $pos_op); $pos_op = $_GET['pos']; $pos_op = $pos_op + 1; mysqli_stmt_execute($ADJUST_PREP) or die(mysqli_stmt_error($ADJUST_PREP)); mysqli_stmt_free_result($ADJUST_PREP); mysqli_stmt_close($ADJUST_PREP); The error: Warning: … | |
This is my index.php page: <html> <body> <form action="action.php" method="post"> Username: <input type="text" name"username"><br /> Password: <input type="password" name="password"> <input type="submit" name="submit" /> </form> </body> </html> This is my action.php page: <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); mysql_query("INSERT INTO userlogin … | |
Here's the main index page: <html> <body> <form action="action.php" method="post"> Name: <input type="text" name="fname"> Age: <input type="text" name="age"> <input type="submit" name="mybutton" /> </form> </body> </html> Here's the action page: <?php $mycar=''; echo "$mycar"; ?> I left the variable $mycar empty because i'm trying to assign it's value as my forms … | |
HI, how do i change tis code so when the php is done it gos to page running.php insted of the " echo "1 record added"; " line ? <?php $con = mysql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $sql="INSERT INTO Persons (FirstName, LastName, … | |
hello following is my code to add data to database from selecting checkbox bt its not working can u plz help me???? suggest ny changes asap thnks in advance <?php mysql_connect("localhost","root","")or die(mysql_error()); //echo"connection with mysql"; mysql_select_db("cater") or die(mysql_error()); //echo"database cater connected"; foreach ($_POST['check'] as $k=>$c) $query="select * from wed_sweets"; $result=mysql_query($query) … | |
Does anyone know a better way of getting this code to execute the mysql queries. I am trying to Insert table records to a new table then update it. so I need to call the table cms_homecontent first then insert those values to the new table cms_homecontent_versions and also ignore … | |
Hi guys, Im going to properly learn PHP by doing a little project that ive made up. I know the basics of PHP but i havent really done much of it. I need to know how to go about doing what im going to outline below. Please note, i dont … | |
I am baffled, I have the following query which should return 4 records but for some reason it is counting 8 records and returning each row twice. I know I could use distinct, but as I also know that there are no duplicate records in this table I don't want … | |
I would to add row values in an array each column will be an array value. echo '<table>' . "\n"; for ($row = 1; $row <= $highestRow; ++$row) { echo '<tr>' . "\n"; for ($col = 0; $col <= $highestColumnIndex; ++$col) { $values = '<td>' . $objWorksheet->getCellByColumnAndRow($col, $row)->getValue() . '</td>' … | |
hello how are you today i have a problem with cache when i visit my site i saw the old topic of my site until i hit ctl+f5 to update the page so how ca i solve this problem is there any way to prevent browser store cache i have … | |
how to get content from a table id in [simple html dom parser](http://simplehtmldom.sourceforge.net), the table id is `products` and i have tried with this code: <?php include("dom.php"); $html = file_get_html("http://www.example.com"); $result = $html->find('table[id=products]'); echo "$result"; ?> but don't works, any idea to fetch content of a table which id is … | |
Hi Friends, I want to increase value of "max_input_vars" in php configuration but i don't know where to edit Can anyone help me to solve this problem? Thanks | |
Friends, I have website with wordpress in which i have added plugin for forwarding mail this contains link like below. mailto:?subject=Welcome to my site&body=Check out this post: http://www.mywebsite.com/post-name/ In this "welcome to my site" is title and "Check out this post: http://www.mywebsite.com/post-name/" is body with page link but i want … | |
I am trying to validate a form for my website, at the moment the problem is it shall skip over the JavaScript bit entirely and go straight to the PHP side of it. This is my HTML Form: <form name = "Contact" action = "/PHP/UserActions/Contact.php" onsubmit = "return validateForm()" method … | |
Hello everyone. I want to send invitation to facebook users to join my app. I already have the app_id, app_secret. Please tell me how i can send inivation to facebook users i try this code but not getting the result. Now waiting for your good reply so that i can … | |
I have this pattern which finds links, inside a text string from file_get_contents function. Works fine, it seems. But I am curious to understand the expression, each charachter of it, what it does etc. Here you go: preg_match_all('~href=("|')(.*?)\1~', $var, $out); I know what it does obviously, but what does (.*?)\1~ … | |
Hello, do you guys recomend any CLASS or script to create Thumbnails? what are you using these days? | |
The code below is working fine in that it is showing the correct results from the DB, however I would like to change the way the link looks in the URL, currently after being submitted after choosing from the dropdown, it results in: **mysitecom/wallpapers/browse.php?pcat=Cars** I want the URL to look … | |
hello... i have textbox with update option. when i change the value in textbox then update the session value. how to assign text value to session variable in javascript. this is my script. [CODE] <script>function update_value() { //window.alert(window.document.creditform.quantity.value) if((window.document.creditform.quantity.value=='') || (window.document.creditform.quantity.value=='0')) { window.document.creditform.quantity.value=1; } else { <? $_SESSION['qty']?>window.document.creditform.quantity.value; } }</script>[/CODE] | |
hai everyone! my problem is suppose u request for any product.admin can't receive the your request. | |
hi frnds..can you give some idea about php training.how to start in online or any institute | |
Hai, How to run automatic mail sending in php. I have a code that generates a report from my database to my e-mail id while run my php file. But I am in need of my php file should automatically run and the report sent to my mail. Thanks in … | |
Hello, I was working on some code, when I ran into this: foreach ($products as $product). One problem, it was not defined. How could this be? Here is the book I got it from: http://english-common.googlecode.com/svn-history/r100/trunk/huyliem/01-Murach.PHP.MySQL/Murach.PHP.and.MySQL.Nov.2010.pdf . It is on 161-163. I don't understand where the $product came from. And one … | |
I am building a form, and I can't collect whatever gets submitted into my email Here is my php <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Untitled Document</title> </head> <body> <?php $fn = $_POST['fn']; $name = $_POST['name']; $lastname = $_POST['lastname']; $email = $_POST['email']; $phone = $_POST['phone']; $comments = $_POST['comments']; … |
The End.