39,326 Topics

Member Avatar for
Member Avatar for hrushi9

Function stored in database is not executing. I have following code for output $q = mysql_query("SELECT * FROM pages WHERE page_id='$id'"); $r = mysql_fetch_object($q); //print the pages content echo "<h1>$r->page_title</h2>"; echo $r->page_content; **page_title** & **page_content** are database column **page_content** column have following data slider(); // it may be text or …

Member Avatar for hrushi9
0
446
Member Avatar for malatamil

?mr1=60,60,60,60,60&mr2=90,90,9&0,90,90&mr3=30,30,30,30,30 from the URL it should remove & ifit is there inbetween numbers(ie 90,90**,9&0**,90,90) and ignore this & if it is there like(60,60,60,60,60**&mr2** ). if **after &** mr2 or mr1 or mr3 then it should take the param value ,if it is inbetween should **remove &** only how to use …

Member Avatar for diafol
0
139
Member Avatar for Johannes_1

I am about to launch a website where i want to display links to my games and show pictures i made. My problem is that the website server does not support php. Is there a way to create a comment box on my website without using php? (I do not …

Member Avatar for gentlemedia
0
72
Member Avatar for dayanadolce

hello. i have a problem where i cannot view admin console recaptcha. i want to get the recaptcha in google in php. but i cannot view the admin console to get the recaptcha. is it because i use Windows 10 or my chrome browser have a problem? please reply. urgent

0
84
Member Avatar for masimies

Hi, Trying to replace jquery-modules, because i need only datepicker, not any additional stuff. Found a light Pikaday datepicker, working just fine as common, but after hours of searching and reading articles, it seems that nobody has not found a good solution to fix date format issue of it, or …

Member Avatar for masimies
0
468
Member Avatar for thatsnotmyname

in my database I have table called memory and it have images , description and title I want to display the image like how online shop display their products (eg: http://www.houseoffraser.co.uk/Women%27s+Tops/310,default,sc.html) I was thinking of using grid or table but I don't know which is better I also want to …

Member Avatar for diafol
0
564
Member Avatar for AntonyRayan

Hi, I need your help to zoom a place when click a marker in Leaflet. I used this code from http://leafletjs.com/reference.html#control-zoom map.on('click', function(e) { alert(e.latlng); }); this click event not working

0
157
Member Avatar for ravoras

Hey Guys, So using a webform textarea I am passing some data into PHP. This data is basically 4 columns of an excel sheet and potentially unlimited rows. Now I want to be able to go through this data, select each of the four individual elements from each row, insert …

Member Avatar for skradoslav
0
4K
Member Avatar for CreatorZeus

im starting to play with html5's new media stuff but i can't quiet figure out how to send a songs info to play in a iframe. any hints?

0
162
Member Avatar for Stefce

I want to make dynamic search button i have this code but doesnt work it gives me this error `Could not connect to database. Fatal error: Wrong SQL: SELECT * FROM kladilnica WHERE Location = Macedonia AND Uplata = 50 AND Liked = 50 Error: Unknown column 'Macedonia' in 'where …

Member Avatar for hericles
0
269
Member Avatar for thatsnotmyname

my web application is really simple there are two buttons one called "save" and the other called "show my images" basically the user can save images from facebook API and store them in the server folder called "backup" (to back up their images on the server so if they deleted …

Member Avatar for broj1
0
225
Member Avatar for tqmd1

Sir I have following codes to create table <?php function create_table(){ $query = "CREATE TABLE IF NOT EXISTS country ( id INT(6) not null AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) NOT NULL, reg_date TIMESTAMP)"; $host = "localhost"; $db = "mysql"; $user = "root"; $pass = ""; $conn = mysqli_connect($host, $db,$user, $pass) …

Member Avatar for Stefce
0
399
Member Avatar for WmsuUser

Im a newbie and i am a student and new to php could anyone teach me how to upload image to database and view it.Please Help me or send the link for complete tutorial

Member Avatar for FarrisFahad
-1
186
Member Avatar for Seung Hwan

I want to draw trace of car and mark and infowindow by using googlemap api and php. when I write url like "http://maps.google.com/maps/api/js?v=3&sensor=false", after "//", it's just comment not url and it occurs File does not exist: /var/www/maps.google.com problem... I tried $aa = "http:/"; $bb = "/maps.google.com"; $aa.$bb/maps/~~~ but not …

Member Avatar for hericles
0
226
Member Avatar for Anand_6

I want to download "Bhavcopy.cvs" file form "bseindia.com" on everyday at 5 pm. automatically. So, I want php code that automatic download this file from "nse" website... Please help.. The URL goes as follows http://www.bseindia.com/download/BhavCopy/Equity/EQ140316_CSV.ZIP I want to build an automated function to automatically upload reports from a URL at …

Member Avatar for hericles
0
533
Member Avatar for dawbin

I'm trying to display an image on an HTML page using a PHP script in the image/src tag, but the image is broken. When I hard-code the output of getimage.php into the HTML it shows up just fine so I know the base64 encoding is correct. The page that shows …

Member Avatar for Tpojka
0
1K
Member Avatar for Aeonix

<!-- example --> <html> <head></head> <body> /* Lots of contents, header, etc. <?php if (isset($_GET["id"])) { echo $anexample[$_GET["id"]]["test"]; } ?> </body> </html> There would be links that would say `example.php?id=1` and `id=5` and `id=9`. However I'd like page to rerender just that particular place. Nothing else in page will change. …

Member Avatar for invisal
0
273
Member Avatar for TheFearful

Hey everyone, I decided to do a lot of echos to make a letter for different selections based off the user. Everything works well except that when the user selects one of the options, two different letters are shown on the page and it's only for one of the options. …

Member Avatar for TheFearful
0
304
Member Avatar for fflime

I want to make countdown timer in multiple choice. I want to display question one by one. But when I click next for the next question, the time is start from 10 minutes again, not continue. How to make an alert if the time was over, it would be directly …

0
132
Member Avatar for SpottyBlue

Hi, I need help with the attendance form. I’ve changed the coding in the attendance form (index.php). When I tried to update the first row, nothing happened. For the last row, the message says, "**We couldn’t update the attendance form at this time**." Please check lines 96 and 101 to …

Member Avatar for SpottyBlue
0
247
Member Avatar for James_43

Hi all, I've been trying to create a friendly time function for a while, it's purpose should be quite obiovus from the code below. Currently, it outputs "expired" for everything. I am so utterly confused from visualising the code and trying to figure out where the times lie in relation …

Member Avatar for James_43
0
308
Member Avatar for infoitmanoj
Member Avatar for McAdams12

I need help creating a database for my website. I want the user to be able to sign into their personal account and add comments, have their own profile page, and add friends. My friend is creating a Garry's Mod (video game) server and I was gonna design the website …

Member Avatar for hericles
0
242
Member Avatar for thatsnotmyname

I've been working on some IG API and when I try to get the IG username I get this error I just don't see anything wrong with my code did I miss something ?? ( ! ) Notice: Undefined index: user in C:\wamp\www\folder\index.php on line 39 <?php set_time_limit(0); ini_set('default_socket_timeout', 300); …

Member Avatar for hericles
0
419
Member Avatar for arda_1

$handle = fopen("mytext.txt", "r"); echo fread($handle,filesize("mytext.txt")); echo preg_match("/[0-9]/","",$handle); fclose($handle); I want to open a text file and find how many digits are there in the text. I tried to use preg_match but I think this is not correct way to do it.

0
89
Member Avatar for josh.sm

I started new Ecommerce website ..developed in php.(codeigniter)..and it is SEO friendly but we are in only gifting category .but any one please suggest me how attract people to our website.?

Member Avatar for jacks009
0
198
Member Avatar for Jatinder_1

I am retrieving images from database, Now how can i link dynamically images to their url which are also stored in same table, image coloum is adv and url coloum is adv_url , Moreover i dont want to see the url , when i click the image it should go …

Member Avatar for jacks009
0
442
Member Avatar for AntonyRayan

Hi, I need your help to plot multiple locations from mysql table using latitude and longitude and I want to display a particular location in different color using google map or any other

0
124
Member Avatar for Marco_4

Hello, how can I extend the login session in my class? public function login($username, $password){ $this->db->query("SELECT * FROM users WHERE username = :username LIMIT 1"); $this->db->bind(':username', $username); $row = $this->db->single(); $count = $this->db->rowCount(); if ($count > 0) { if (password_verify($password, $row['password'])) { $_SESSION['session'] = array( 'id' => $row['id'], 'username' => …

0
110
Member Avatar for TheFearful

Hey everyone, I have been trying to send a test email before I do any further development and can't see to figure out why I am getting this error Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use …

Member Avatar for rproffitt
0
198

The End.