39,326 Topics

Member Avatar for
Member Avatar for zacharysr

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 …

Member Avatar for diafol
0
460
Member Avatar for RazorRamon

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 …

Member Avatar for Biiim
0
1K
Member Avatar for gogs85

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!

Member Avatar for gogs85
0
76
Member Avatar for Buppy

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 …

Member Avatar for diafol
0
99
Member Avatar for crzycm16

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"; // …

Member Avatar for diafol
0
8K
Member Avatar for dyingatmidnight

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 …

Member Avatar for dyingatmidnight
0
139
Member Avatar for synking

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 …

Member Avatar for updatepanel
0
2K
Member Avatar for RageAndSin

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

Member Avatar for Biiim
0
2K
Member Avatar for Quinncunx

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 …

Member Avatar for pritaeas
0
214
Member Avatar for crankyslap

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 …

Member Avatar for crankyslap
0
123
Member Avatar for chudapati09

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 …

Member Avatar for pritaeas
0
832
Member Avatar for bo0ga

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 …

Member Avatar for Biiim
0
208
Member Avatar for magicmarkuk

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 …

Member Avatar for Biiim
0
141
Member Avatar for rrahulrroshan

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

Member Avatar for gokulllrajjj
0
211
Member Avatar for niyasmohd

**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.

Member Avatar for dualzNZ
0
38
Member Avatar for Mariel Pineda

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 …

Member Avatar for broj1
0
381
Member Avatar for Mariel Pineda

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 …

Member Avatar for fobos
0
158
Member Avatar for madhan

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

Member Avatar for blocblue
0
2K
Member Avatar for sibbs06

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

Member Avatar for Biiim
0
144
Member Avatar for itamardori3

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

Member Avatar for itamardori3
0
227
Member Avatar for mbarandao

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 …

Member Avatar for mbarandao
0
294
Member Avatar for lilleskut

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 …

Member Avatar for pritaeas
0
208
Member Avatar for Midgard

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

Member Avatar for Biiim
0
187
Member Avatar for arctushar

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 …

Member Avatar for Biiim
0
135
Member Avatar for kit007

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 …

Member Avatar for kit007
0
2K
Member Avatar for vergil1983

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 …

Member Avatar for vergil1983
0
126
Member Avatar for breakzzzz20

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 …

Member Avatar for breakzzzz20
0
2K
Member Avatar for Touy

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

Member Avatar for LethargicCoder
0
360
Member Avatar for yanwick

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

Member Avatar for yanwick
0
207
Member Avatar for madhan

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.

Member Avatar for fobos
0
119

The End.