39,316 Topics

Member Avatar for
Member Avatar for garyrichard

Hello Everybody.. Can you suggest me PHP code to check whether a domain is available or not... Thanks in Advance

Member Avatar for Thirumani_1
0
2K
Member Avatar for MK
Member Avatar for oliprik

Hello Dani web. This is my first post here so please bear with me if its not 100% correctly setup. Anyways I'm a rookie to php and mysql and I've run into problem with my final project in my first php class. The error given is: "Warning: mysql_num_rows() expects parameter …

Member Avatar for diafol
0
3K
Member Avatar for joshmac

Hello, everyone. I need help with something, and I am hoping that someone could point me in the right direction. Since I am not sure what the technique is called, I will try to explain what I need to the best of my ability. I am trying to create a …

Member Avatar for joshmac
0
870
Member Avatar for CreatorZeus

Probably just overlooking something small but its 5:30 am here so please forgive me. $sql = "SELECT * FROM accounts WHERE username = $testuser"; $result = mysqli_query($conn, $sql); if (!$result || mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { echo "id: " . $row["id"]. …

Member Avatar for radow
0
170
Member Avatar for FarrisFahad

I am having problems installing PayPal IPN. It returns INVALID every time I process it. Is there something wrong with my code Code: <?php $db_host = 'localhost'; $db_user = ''; $db_password = ''; $db_database = ''; // Connect and select database $connect = mysql_connect($db_host, $db_user, $db_password); $select_db = mysql_select_db($db_database); // …

Member Avatar for FarrisFahad
0
608
Member Avatar for Makara

Hello. I have a challenge in editing a joomla component. In the below picture, I want to add another functionality but I cant access the component in the admin ![problem.png](/attachments/small/4/e6fa4064f75a939a2a23cdee07da935b.png "align-left") ![problem.png](/attachments/small/4/e6fa4064f75a939a2a23cdee07da935b.png "align-left") Someone to help please

Member Avatar for cereal
0
129
Member Avatar for Abhishek_26

> i have bind 10 random post form json file in to marquee but the problem is arising , its show like list and showing as marquee works kindly check the code and the output , do some suggestion what to do . Thanks in advance <html> <head> <meta charset="UTF-8"> …

0
278
Member Avatar for baig772

I have a string like `string(8234) "<style>.{ margin-bottom:10px; float:left; display: inline-block; width:56%; text-align:left; padding-right:20px; padding-left:20px; } . > p { display: table-cell; height: 150px; vertical-align: middle; }..................</style>.................` I want to remove `<style>` tag and all its contents. I have tried $description = $product_info['description']; // the string with style tag $text …

Member Avatar for cereal
0
2K
Member Avatar for rpv_sen

Hi i am working on contact form using SMTP. I am unable to send a mail. Please help me to fix the issue. **index.html** <div id="frmContact" class="w-form"> <div id="mail-status"></div> <!-- <form action="contact.php" method="post">--> <label for="name">Name:</label> <input class="w-input" type="text" placeholder="Enter your name" id="cf_name" name="cf_name"> <label for="email"><p class="info">*</p>Email Address: <span id="cf_email-info" class="info"></span></label> …

Member Avatar for cereal
0
830
Member Avatar for showman13

Good Morning, Hopefully there is someone around this morning that can give me a quick and easy answer. Is there a relatively simple way to prevent a page from reprocessing data when someone hits the 'Refresh' button? I don't want to disable the refresh, but just prevent reprocessing and creating …

Member Avatar for showman13
0
221
Member Avatar for Seung Hwan

This is php code at https://developers.google.com/maps/articles/phpsqlajax_v3#putting-it-all-together. <?php $username="xxxx"; $password="xxx"; $database="xxx"; ?> <?php function parseToXML($htmlStr) { $xmlStr=str_replace('<','&lt;',$htmlStr); $xmlStr=str_replace('>','&gt;',$xmlStr); $xmlStr=str_replace('"','&quot;',$xmlStr); $xmlStr=str_replace("'",'&#39;',$xmlStr); $xmlStr=str_replace("&",'&amp;',$xmlStr); return $xmlStr; } // Opens a connection to a MySQL server $connection=mysql_connect ('localhost', $username, $password); if (!$connection) { die('Not connected : ' . mysql_error()); } // Set the active MySQL …

Member Avatar for jacks009
0
466
Member Avatar for RudyM

Hi All, I tried reading through this: https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet . But I'd like to know if the following scenario is considered good practice for a simple login/registration system. The userlist table: create table simp ( USR VARCHAR (128), PWD varchar (512), SALT VARCHAR(512) ) I created a stored procedure to execute …

Member Avatar for RudyM
0
235
Member Avatar for toxicandy

My problem currently is that I am trying to call a function with jquery at a specific event but it is running at the wrong event. The function I want to call is: function resolvedAjax(tid){ $.ajax({type: 'post',url: 'resolveTicket.php',data: 'tid=' +tid, success: function(s){ $('#resolvedTicket').html("Resolved"); mainTable(); }}); } I am trying to …

Member Avatar for toxicandy
0
367
Member Avatar for TheFearful

Hey guys, I'm trying to reupdate a web application that I have going on right now. Originally, I had a php page connect to a database and have a dropdown menu with the list of user id's. When you select the user id, you can submit it and you will …

Member Avatar for TheFearful
0
448
Member Avatar for TheFearful

Hey guys, I am trying to figure out a few things right now. 1. Is it possible to do a nested checkbox where there is the main checkbox and then two tabbed checkboxes that are related to the main one and when the main one is checked, the other subcheckboxes …

Member Avatar for TheFearful
0
210
Member Avatar for masimies

Hi, I bought some months ago a template of site style. For learn, what is the current way of do that. It took a whole weekend, to remove bootstrap styling from my portal. And now, everything is working just fine, and with same style. CSS is including only what is …

Member Avatar for masimies
1
318
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
445
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
137
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
465
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
562
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
151
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
160
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
224
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
398
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

The End.