39,323 Topics
| |
Hi all, I'm pretty new here but I do have "some" knowledge of sql and PhP, I'll start by telling you what I have and then ask what I need. What I have: I have a database which holds multiple tables, the one in question is called storage.sql The table … | |
Hi guys! I'm currently making an integration of 2 different web apps. I would to ask if is it possible to restrict adding duplicate data in your table. for Example i have two different tables from two different databases. App1_Invoice (from Web App 1 database) e.g. transno name amount App2_Invoice … | |
Can anyone assist me. I keep getting and error stating that the Column count doesnt match row 1. I have counted all of my fields and referenced all of them but still no dice. $con=mysql_connect($host, $username, $pass); if(!$con) { die("Could Not Connect: ".mysql_error()); } mysql_select_db($db); $CustLName=$_POST['CustLName']; $CustFName=$_POST['CustFName']; $CBR=$_POST['CBR']; $AcctNum=$_POST['AcctNum']; $CustCode=$_POST['CustCode']; … | |
Error Preview : http://botiman.phc.my/komen.php Warning: file_get_contents() [function.file-get-contents]: Couldn't connect to server in /home/u763744738/public_html/komen.php on line 163 Warning: file_get_contents(https://api.facebook.com/method/stream.addComment?post_id=100000744171962_491171407584327&comment=apapun+statusnya%3F+jempol+iwan+slalu+mampir+di+status+Awang+Ashraf%0A%0A%5B+Jam+%3A+6%3A24+pm+%5D%5B+Minggu+%5D%5B+Tgl+%3A+4%2F11%2F2012+%5D&access_token=AAAFppwP1iJYBAKZAmaHhSyydzDuZBh7B00nIO6YxfrwnutzQycNdso1lnW2raRcGR5c8iDc2hNNZCgssXJ8d6lYPWfjFOAnB62VzGk5MNnoLtmXXzvr) [function.file-get-contents]: failed to open stream: operation failed in /home/u763744738/public_html/komen.php on line 163 Warning: file_get_contents() [function.file-get-contents]: Couldn't connect to server in /home/u763744738/public_html/komen.php on line 163 Source Code Is <?php ##############config#################### $bot['like'] = true; … | |
Hello guys, im writing a calendar booking system and i want to populate a combobox where it will only show the time that has not been reserved based on the data inside database. The problem is, i'm using javascript to return the date when user clicked on the calendar and … | |
Hello guys , I am getting crazy with this html thing , i just don't know why its not working as expected. Basically i need to display php variable in html Let see the code.... Suppose i have this <?php for($x = 0;$x <count($_FILES['image']['name']);$x++) { $url = something; } //The … | |
How do you ping an ip addresses in php. and give the the results as if you are on cmd program in windows <?php system(‘ping -c 192.168.0.104’); // Ping IP address. echo “pinged”; ?> | |
i have wrote some html and php my form doesnt work so fine i cant find my error if somebody doesnt mind here is the code. | |
Hi People, got a small issue. I have 3 select boxes, I mean dropdown list country dropdown list... then a state and then a town... I'm fetching data from database and loading it in the first dropdown list (country) On change of country, states get loaded and on change of … | |
For following code I am receiving error, **Notice: Undefined index: page** Code is running perfectly but there is only one error of notice. I have marked line as *//this is error part* for which I am getting error (line number 19 or 20) <?php /*Place code to connect to your … | |
This is the code I am having trouble with: <?php mysql_connect('localhost', 'username', 'password') or die(mysql_error()); mysql_select_db('database') or die(mysql_error()); $posts = mysql_query("SELECT * FROM `wp_DevBlogposts` ORDER BY `wp_DevBlogposts`.`post_date` DESC LIMIT 2") or die(mysql_error()); while($row = mysql_fetch_array($posts)){ $post_name = $row['post_title']; // Post Name/Title $post_content = $row['post_content']; // Post Content $url = $row['guid']; … | |
Hey, been awhile. I'm working on a portal for distributors, some type of JIT (just in time) implementation. Now i've been reading alot on DB so i can implement the right database and the right data structure. Now i see, i can do alot more then i'm use to do. … | |
<form action="index.php" method="post" enctype="multipart/form-data"> File: <input type="file" name="image"><input type="submit" value="Upload"> </form> <?php //connect to db mysql_connect("localhost","root","")or die(mysql_error()); mysql_select_db ("databaseimage")or die (mysql_error()); @$file =$_FILES['image']['tmp_name'];//kjo eshte e lidhur me <input type="file" name="image"> if (!isset($file)) echo ("Please select an image"); else { $image= addslashes(file_get_contents ($_FILES['image'] ['tmp_name'])); $image_name = addslashes($_FILES['image']['name']); $image_size = getimagesize ($_FILES['image'] … | |
I'm new to PHP and trying to populate the contents of a flat file to a dropdown box. Clearly haven't a clue what I am doing, but here is what I have tried so far. The first part is there to confirm that I am actually opening the file and … | |
Hi I managed to get the tutorial from the below link to work. http://www.blueicestudios.com/chained-select-boxes-using-php-mysql-ajax/comment-page-11/#comment-34199 I would love to know how to edit this script so as to get the first dropdown to populate an already existing dropdown without the loader image and without the hiding of any dropdowns. I would … | |
hi php geniuses :) a simple question for u ppl here's my code and i want to upload all files i.e. images, videos, audios, ppt, pdf etc but here ican only upload the images successfully.. when i upload audio file it gives following error. please check my code and suggest … | |
hi php geniuses!! just wanted to ask that is this possible to embed ppt slides onto the webpage without converting the ppt into flash or without using skydrive??? please suggest a simple and clear solution.thanks in advance... | |
I have the following scenario - User clicks on an image to search for a particular brand vehicle. The value of that image must then go the hidden box where I will post the value returned to another form. I just can't seem to get the value returned... My code... … | |
it seems i can't output my username value from my database. All it gives was also a value of "username". So if i'm echoing my variable $users which is holding the rows of my username from my database, it strangely outputs "Welcome, username". I tried also with my password but … | |
hello! for the newline we have the fuction nl2br() but what about BOLD text.. underline or italic ?! is there a way to convert that rich text in to HTML? [B]bold[/B] into <b> bold </b>... ?? | |
Hi guys I want when user start game then at the start of the game facebook authentication perform and after the completeion of 1st stage it post on user facebook timeline. How i can do this with PHP what are the steps for doing this. waiting for your reply. Thanks … | |
I want to display message box. I don't know why it is not working. Instead of "Already Registered..!!" message it displays " Duplicate entry 'test' for key 'nom' " . Thanking you in advanced. $query = " SELECT * FROM Humeur_log WHERE prenom = '".$prenom."' AND nom = '".$nom."' AND … | |
Hello, I'm looking into making an account validator for wordpress which runs off a validator for another server. Shown here: http://www.minecraftwiki.net/wiki/User:Oxguy3/Minecraft.net_API It's running in Wordpress and I just wanted to ask for your opinions on how to do this. The idea I had is that the username they signed up … | |
What am i doing wrong, It works when I hard code it, but when I try get the names from MySql it gives me the finger, cannot access docs OR it sends the mail wth no attachemnts is there a better way or something that I am missing, Look my … | |
My article title is a bit misleading but since it is my primary concern so I made that my title. Anyway, this is the problem I have form and it generates a list of people that is needed to be scheduled. this is (more-or-less) the code. <?php $strQuery = "your … | |
Hey everyone, So I'm starting a new thread because my other thread was solved and I had forgotten it was. Anyway, I am creating a forum stite from scratch as a side project and I have a main forum page that "includes" two tables that get data from three different … | |
Greetings, I have two tables named 'copyright' and 'logs'. Table : copyright Field : Copyr_md5 Table : logs Field : md5checksum Problem 1 Say i have a value stored in `$md5check` in php , now i want to check if the value stored in `$md5check` is found in field `Copyr_md5`.If … | |
I have a table that collects data from web inputs and stores them on an html page... the question how do i style this table... I am not sure how to give it borders, style columns (column 1 is red, 2 is blue, 3 is red, so on), or color … | |
I have the following code to search the stores by name and and order by transaction date by Asc which works perfect. My questions is how to performe a subtraction by row (checkamount-redeposited-replacement-paidcash = balance) and totalize by columns (total checkamount, total redeposited, total replacement, total paidcash and total balance) … | |
The End.