39,326 Topics

Member Avatar for
Member Avatar for wastedkill

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 …

Member Avatar for wastedkill
0
203
Member Avatar for afroo.gfx

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 …

Member Avatar for Squidge
0
278
Member Avatar for eman neercs

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 …

Member Avatar for diafol
0
212
Member Avatar for SeanKann

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 …

Member Avatar for LastMitch
0
245
Member Avatar for <M/>

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 …

Member Avatar for JorgeM
0
114
Member Avatar for ddanielsmith

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 ()); } …

Member Avatar for klemme
0
131
Member Avatar for klemme

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

Member Avatar for klemme
0
2K
Member Avatar for ddanielsmith

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 …

Member Avatar for cereal
0
190
Member Avatar for ddanielsmith

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 …

Member Avatar for AndreRet
0
114
Member Avatar for Kniggles

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

Member Avatar for AndreRet
0
103
Member Avatar for shirani21

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

Member Avatar for ratanji
0
920
Member Avatar for mbhanley

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 …

Member Avatar for mbhanley
0
239
Member Avatar for rosstafarian

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 …

Member Avatar for rosstafarian
0
1K
Member Avatar for simplypixie

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 …

Member Avatar for simplypixie
0
132
Member Avatar for tapuwa2002

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

Member Avatar for LastMitch
0
171
Member Avatar for cssweb

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 …

Member Avatar for LastMitch
0
529
Member Avatar for rakibtg

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 …

Member Avatar for LastMitch
0
234
Member Avatar for technoknol

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

Member Avatar for GliderPilot
0
85
Member Avatar for technoknol

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 …

Member Avatar for technoknol
0
146
Member Avatar for Octet

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 …

Member Avatar for Octet
0
296
Member Avatar for Rizi004

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 …

Member Avatar for pritaeas
0
98
Member Avatar for klemme

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

Member Avatar for klemme
0
184
Member Avatar for extjac

Hello, do you guys recomend any CLASS or script to create Thumbnails? what are you using these days?

Member Avatar for ashishrevar
0
328
Member Avatar for sinZ

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 …

Member Avatar for jkon
0
81
Member Avatar for muralibobby2015

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]

Member Avatar for nuryanto
0
18K
Member Avatar for reemasmartin

hai everyone! my problem is suppose u request for any product.admin can't receive the your request.

Member Avatar for diafol
0
74
Member Avatar for jaysh4922

hi frnds..can you give some idea about php training.how to start in online or any institute

Member Avatar for jaysh4922
1
102
Member Avatar for VEL Hassan

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 …

Member Avatar for diafol
0
337
Member Avatar for vivosmith

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 …

Member Avatar for vivosmith
0
256
Member Avatar for <M/>

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']; …

Member Avatar for LastMitch
0
201

The End.