39,316 Topics
| |
Hi any help would be great... I am moving one site from one host to another and on the current host not getting any errors:...on the new host constantly getting....in_array(): Wrong datatype for second argument in here is the code that is coming up with an error and the full … | |
Hi there. I have a page that lists the records of a table. On this page I want to be able to edit/update two attributes of these records by using checkboxes - e.g., being able to update multiple records at once. I thought the smartest way to achieve this would … | |
Hi , hope you can help i have this code [code=php] <?php mysql_connect("localhost","x","x"); mysql_select_db("x"); $result = mysql_query("SELECT * FROM x") or die(mysql_error()); echo "<table class = feature >"; echo "<tr> <th></th> <th></th> <th></th> </tr>"; while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['Date']; echo "</td><td>"; echo $row['Title']; echo "</td><td>"; … | |
hi, i get this error on one of my pages, however if i move the session start code to check if user is logged in down a few lines below some query code for searching the site it works fine. why would moving the session start down a bit on … | |
Hi, i'm new about PHP, and i try to insert the PHP Upload script in the php mail, but somehow i don't get it to work! :) [B]this actually goes to header:[/B] [CODE]<?php if(isset($_POST['submit'])) { $errors = array(); $allowed_filetypes = array('.pdf','.zip','.rar'); $max_filesize = 52428800; $upload_path = './uploads_SS/'; $filename = $_FILES['userfile']['name']; … | |
[CODE]<?php $online = @fsockopen("112.205.30.106", 28000, $errno, $errstr, 1); if($online >= 1) { echo '<b><font color=#00FF00>Online</font></b>'; } else { echo '<b><font color=#FF0000>Offline</font></b>'; } ?></li> <br><li>Login Server: <?php $online = @fsockopen("127.0.0.1", 23000, $errno, $errstr, 1); if($online >= 1) { echo '<b><font color=#00FF00>Online</font></b>'; } else { echo '<b><font color=#FF0000>Offline</font></b>'; } ?></li> <br><li>World Server: … | |
i have a simple system,when i logout the system logout but the problem is, when i click back, it turn to main page. please guys help | |
Hi Everyone!:) Searched net up'n down and also related threads but can't figure this one. I have this: RewriteRule ^(\w+)$ index.php?pageid=$1[icode] for the purpose of pretty urls. Now, as long as pageid is a single word, everything's nice, but if there are dashes (kinda-like-this) it simply doesn't work, that is, … | |
Hi all, I have a table curs_period where inserting some data to send them via email, this table contains data for 1st email [CODE] Id = Auto increment Name = Madrid Period = 01/11 to 01/12 [/CODE] Then I have another data for 2nd email [CODE] Id = Auto increment … | |
Which is the smarter way to do things.. Should I create a thumbnail script that resizes and crops the images so they are uniform when I create and upload a gallery? Or Should I run a script when the page loads that resizes and crops the images so they are … | |
hi, i am a teacher. i have a list of students in my MySQL table. How to retrieve their names one by one, and while doing that there will be a text box to put their marks in. | |
I have a table with content fetched from a html table. I have a modify and delete column. In the modify column I have submit forms which send as hidden input the id of the column. In the delete column I want to have checkboxes that will be linked to … | |
I need a php script to count the values in ms access database and show them in webpage. The reason is i need to collect the inputted strings in the table so i can count which same text has more search.. please help.. | |
heyy... i need to knw how to update many values from one submit. problem is i have 10 fields and every text field has same table field value.assume that my 10 fields have 10 quantity values. i need to update quantity field by all 10 fields. like this ; 10 … | |
Hi, I have a parent and child form, with the child form connected to the parent form by the parent_id. The forms are on different pages, and i am trying to pass the id of the parent form to the child form using session variables. What ive done (with no … | |
Hi, I have developed a site that allows users to post details for others to view. Within this I have built a secure login process that uses cookies to help the user around the site. However, when using sites like facebook, I notice that I receive emails with links that … | |
If any one convert this code to ASP i ll be very thankfull. bec i donnt know ASP [CODE]<?php session_start(); include("config.php"); $trackid=$_POST['f']; // Find Path of Track $s1="select download_path from trackinfo where trackid='$trackid'"; $r1=mysql_query($s1) or die(mysql_error()); while($array=mysql_fetch_array($r1)) { $path=$array['download_path']; } $ship=$_POST['f1']; // Allow direct file download (hotlinking)? // Empty - … | |
Hello everyone, i have a problem with calculating my ending time in php, here is the situation: i get five values, [LIST] [*]$startdate [*]$startmin [*]$starthour [*]$minute [*]$hour [/LIST] where $minute and $hour are the event duration times, now what i am trying to achieve is with these values set, i … | |
I have two databases, tvguide and episodes1. Both are InnoDB, and I use Phpmyadmin to edit them. I tried creating a foreign key between the "episode" field of episodes1 and tvguide, and this error message came up: Error creating foreign key (check data types) : episode How can I fix … | |
Hey guys, wondering if you could help me with these two bits of code. What I'm trying to do is count how many clicks a link has been clicked, then when it has been clicked x amount of times, it echos 'test' Now the code below does that, but I've … | |
Iam new in this web development.Please,suggest me a best book for php. | |
Hi all, I need a big help..I was struggling about 3 /more days with this code..It is not giving me the result I want.It is not that difficult thing.What I want is to display the values in database(name,description,image) according to the id selected. And then it can be edited if … | |
I am absolutely newbie to Ajax and I need to have this fixed by tomorrow as I have a project to complete so anyone who could help me, I would be really greatful! This is what I have cooked up so far index.php [code=php]<html> <body> <script language="javascript" type="text/javascript"> <!-- //Browser … | |
hi all, i am planning to keep live support for my website for that i had some code..it works fine but the problem is the chat is not confidential.. means if i am admin and if some one is chatting with me and if another person clicks on live help … | |
Hi all.. I'm trying to do a pagination using simple php script... I set the maximum post to be displayed to be 5.. but my problem is, each post that being displayed,has skipped 1 post before it.. For example,let say that i got 5 post in total,instead of displaying post … | |
Can anybody suggest me what is wrong in this code. I am trying to populate data from table to list field. Its showing error "Parse error: parse error in C:\wamp\www\matr\index.php " [CODE] </div><div style="padding: 3px 0px;"> <select name="countryofresidence" style="width: 140px;"><option value="">Doesn't Matter</option> <?PHP $sqlCountry = "SELECT * FROM countries order … | |
This will count number of page views in a session. Simple, to add on the page just add the code on the top of the page and make sure it is before any html. | |
Hi ... I'm trying to make a drop down list box populated from a mysql table. It all looks OK on the screen, but there is an error that I cant seem to fix. The error is: Notice: Undefined index: xxx in C:\Documents and Settings\GSW\My Documents\xxx\test.php on line 29 and … | |
Hey guys, can anyone point out where I'm going wrong with this? It counts the sessions fine, but the IF statement doesn't seem to be working as it should. [CODE] <?php session_start(); ($_SESSION['count']) ? $_SESSION['count']++ : $_SESSION['count'] = 1; if (!(count) % 5) { echo "test"; } ?> <!DOCTYPE HTML … |
The End.