39,316 Topics
| |
Hello Everybody.. Can you suggest me PHP code to check whether a domain is available or not... Thanks in Advance | |
| |
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 … | |
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 … | |
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"]. … | |
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); // … | |
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 | |
> 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"> … | |
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 … | |
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> … | |
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 … | |
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('<','<',$htmlStr); $xmlStr=str_replace('>','>',$xmlStr); $xmlStr=str_replace('"','"',$xmlStr); $xmlStr=str_replace("'",''',$xmlStr); $xmlStr=str_replace("&",'&',$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 … | |
| 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
?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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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? | |
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 … | |
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 … | |
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) … | |
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 |
The End.