39,326 Topics
| |
I want to auto load new data into my php page, my homepage is getting to long with statuses, so when people go to the home page i want it to only show ten, then when they scroll to the bottom of the page, it loads the next ten, and … | |
Ok I need help. I have a couple hundred databases, which are different cities, that I am trying to connect with one query. each city has the same Sports table in it. I want to put the 100 most recent results on one page . The code below gets the … | |
How to make Web Crawler to pull some information from site and that information put in xml tag ![Crawler](/attachments/large/3/Crawler.jpg "Crawler") In my pictures show site and where i put the information in tag. Please some help! | |
Hi, I have a lot of files i need to read with PHP script. All of them has the ANSI encoding type and, unfortunately, they contain special characters. Since my page is in UTF8, i need to convert the file content to UTF8 on the fly while reading them. What's … | |
Thanks to you guys, i now understand much better this whole thing, but i now have a problem where, after submit, i get the mysql error, "Column count doesn't match value count at row 1" my form code is [CODE=php]<?php // MySQL connection variables $host="server"; $username="Vetsform"; $password="saerverpassxduhsjdkasjdlcc"; $db_name="Vetsform"; $tbl_name="vetform1"; // … | |
Hello everyone. So I've been dabbling with mod_rewrite and I've run into a snag. I'm taking www.example.com/index.php?id=news and mapping it to www.example.com/news Now my problem is that I already have a news directory in my file structure and it's defaulting to the index file found there. What I'm trying to … | |
I am trying to setup a navigtion link section on my home page. what i have is a table called section in mysql and this is the way it is setup up. [CODE]+----+-----------+----------+ | ID | name | parentid | +----+-----------+----------+ | 2 | News | 0 | | 3 … | |
Basically I'm trying to get the post data from my form page to link back to my php page and it won't post for whatever reason. I've been scrutinizing my code and looking online at other posts but have had no luck. My html form: <form id="form1" name="form1" method="post" action="anthonyBook.php"> … | |
Just a heads up this is a school project. I have been tasked with building a login system for the "mock" company that we have been using on my college course for assignments ect. I have built the regisration, login, logout, user management pages, however I cannot make the activation … | |
Whenever I run a script twice at the same time, it's as if the second instance simply outputs what the first did. The second instance also does not detect any files the first one made etc. First instance started at 14:37:59 outputs: Started at: 2012-04-12 14:37:59 OK Second instance started … | |
| I doubt this is the right place to post this question, but I didn't know where else I can put this. It does kinda involve PHP, but I've asked this question on Stack Overflow and didn't get much help. If this is the wrong place to put this, please do … |
Say I have a website with a form. The user would fill out a review about my company in my form. When the user presses submit, the data from the form on MY website then gets sent to an external review website like Google Places and gets submitted there. Is … | |
I am trying to incorporate a number of small pieces of php code into a Wordpress database (for banner ads). Unfortunately the template I am using is not designed to take php code but rather html or javascript. I wondered if there is a way to amend the template file … | |
Hi I want to have 2 select dropdown based on the value of 1st drop down without submit button. But I m not getting dynamically the selected value in 1st drop down eg: year , so that i can use it for next selection. can anyone plz help me Eg: … | |
**Bold Text Here** i cant perform edit option in my sql/php page.....while editing it return 0 and it is not updating my database....in the database the same is seen (as 0)...donno hw to correct this...will anyone help to continue my work..... Thanks in advance. | |
Please help what is missing here i cannot get the data of row that I check on the checkbox? <? include("connect.php"); include("home_order.php"); echo "<div><table border=0 cellspacing='15' align=center id=table1> <tr> <th>Title</th> <th>Price</th> </tr>"; $code = $row['Code']; $getcheck=$_GET['check']; if ($getcheck){ $result= mysql_query("SELECT * FROM books where Code='$code'"); while($row = mysql_fetch_array($result)) { echo … | |
I cannot update row datas.I cannot find what is wrong because my query in updating is 100% right for me.I hope so..But here is my codes so you can help me. this is home_admin.php <? include("connect.php"); include("addfunc.php"); echo"<link rel=stylesheet type=text/css href=design.css />"; echo"<center><img src=top.png></center>"; if(isset($_GET['add'])){ echo "<table align=center id=table> <tr … | |
Hi – I have an inline jQuery function that selects the table cell data onclick. The jQuery part works well. I have added code snippet of jquery. $(function(){ $("#myTable td").click(function() { $row = $this.closest('tr'); case "name": alert($row.find(".name").html()); break; etc Instead of displaying the name on the client –side alert message, … | |
Hi I have a problem, I have created a site that allows for a user to bid on property but cant get a code to work where it updates a current record in the database <form id="MakeBid" action="MakeBid.php" method="get"> <div>Bid Now <input type="text" name="pricesoldfor"/></div> <input type="submit" value="Place Bid" /> </form> … | |
**Hey, so i got syntax error when i'm trying to use this file** Parse error: syntax error, unexpected $end in /var/www/vhosts/airlinesofisrael.com/httpdocs/phpvms.full/lib/skins/lolim/layout.tpl on line 129 my code is below, can someone help please? :) <?php /** * * * * * * * * * * * * * */ ?><!DOCTYPE … | |
Hello: I was wondering if I can get some guidance on how to pull data from mysql and inserted in js array in the following manner var option_array = new Array(num_of_cats); option_array[0] = new Array(\"You need to select a category\"); // This is the first (blank) category. Don't mess with … | |
Please apologize my ignorance, I am very new to this. So I have some code and am doing AJAX refreshes of some text on the page which works fine. Now I want to refresh things which are more complicated than just a text string, such as a button which is … | |
Hi- I have a script that grabs a lot of information for a page that has a 'Research Mode.' Basically, it grabs a bunch of data, then uses JS to show or hide info based on user criteria. It used to work fine, but we've been adding more info -- … | |
Here $a and $ b are equal. But in line 07 its not printing 'this is equal'. What is the problem? Plz help me. Remember when form submit $a and $b is equal. but when refresh they r not equal. <?php session_start(); $a=$_SESSION['randomnum']; $b=$_POST['secure']; echo $a.'<br/>'.$b; if($a==$b){ echo "this is … | |
im using fpdf.php library have some extension the pdf_lp.php then i got this error on my codes... hope somebody can help me identify my error.. any help is very much appreciated. <?php date_default_timezone_set('Asia/Manila'); require_once('./pdf_lp.php'); include ('connect.php'); // $sql = mysql_query("SELECT * FROM mydb WHERE contractno = '$_SESSION[contractno]'") $sql = "SELECT … | |
I have this sample of API code, i'm trying to embed my form into it. This code is in php. Below is the sample API code ----------------------------------------------------------------------------------- <?php echo(get_sentiment_rank_text("We like sharing our service with you. We hope you enjoy it as well.")); function get_sentiment_rank_text($content) { //get the sentiment scoring info … | |
what's wrong in my codes? this is my insert.php: `<?php $host="localhost"; // Host name $username="root"; // Mysql username $password="rommelbarrio"; // Mysql password $db_name="system"; // Database name $tbl_name="grades"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // Get values from … | |
I have been given a database whose content I can't modify. Everything has been going fine until I was passing some variables in a URL through a link, and an apostrophe in one of the variables (i.e "Frank's Used Cars") is causing the variables behind it to not be passed. … | |
Hi, Im using session variables and when passing from one page to another with a target="_top" the session variables are erased. Is there anyway i can go around this problem ? Any idea will be greatly appreciated. Thank you | |
Hi – Sorry about the code tag that is not working for me in my previous post and I am having trouble even edit my own post. I am visiting this site after a while and having trouble sending my post. |
The End.