10,940 Topics

Member Avatar for
Member Avatar for AntonyRayan

Hi In a form, I have two divs like in left and right but only one submit button . I don`t know how to save in submit action. Submit button has to come in center. Here I included my code . Check and tell me <form action="usersave.php"> <!-- class="form-horizontal form-label-left"--> …

Member Avatar for drjohn
0
364
Member Avatar for Bchandaria

when ever i am inserting any of the symbols like cosec^2Ɵ (cosec power 2) it will display inline. i won't that to be displayed with raise to 2 or subscript or superscript of it. How to get Displayed that using utf-8 unicode characset ?

Member Avatar for ryantroop
0
174
Member Avatar for hell hansen

Hi Guys, Happy new year for everybody. Look i'm trying to achive a goal to load iframe on bootstrap modal dinamical. Like i just want the iframe src be called just when modal is opened. Because the src url is coming from database, and in some page there more than …

0
106
Member Avatar for Sophia_1

Hi everyone, tried to display next and previous records from the coding below but unable to do so.It suppose to display next records for the current user with the when user click "Next" but currently it doesn't display "Next" but only display "Random". When i clicked "Random", it displays next …

Member Avatar for Sophia_1
0
390
Member Avatar for Stefce

Hello i want to make like button so i need to `INSERT`, `SELECT` and check does already exists the record i have this code: **likes.php** <?php require 'connect.php'; require 'core.php'; require_once 'functions.php'; $user = getUserData('users', 'UserUsername'); if(isset($_GET['type'], $_GET['id'])){ $type = $_GET['type']; $id = (int)$_GET['id']; switch($type) { case 'ticket': $sql = …

Member Avatar for ryantroop
0
283
Member Avatar for Gautam_2

<h2><i>Top Rated</i></h2> <center> <table> <tr> <? foreach($top_ratings as $key => $image) : ?> <td valign="top"><img src="images/<?=$image->filename?>" width="70" /></td> <? endforeach ?> </tr> <? <tr> <? foreach($top_ratings as $key => $image) : ?> <td valign="top">Score: <?=$image->score?></td> <? endforeach ?> </tr> <tr> <? foreach($top_ratings as $key => $image) : ?> <td valign="top">Performance: …

Member Avatar for pritaeas
0
325
Member Avatar for Fiorentino01^
Member Avatar for janicemurby

i have followed a tutorial for a working checkbox group after failed attempts with others. On test file it was working but when i add it to my site i dont get any results after submitting form. First of all here is the file from tutorial. Sorry in advance for …

Member Avatar for ryantroop
0
245
Member Avatar for janicemurby

hi i have followed a online tutorial to replace photo system on my site and all went well till i attempt to upload photo i get no file selected even if i have just gone on the page but after pressing submit i get a success message and the photo …

Member Avatar for janicemurby
0
199
Member Avatar for SimonIoa

Hello i want to create a script like this `$query=mysqli_query($this->db,"SELECT * FROM table WHERE to_user_id='$uid' ORDER BY id DESC")or die(mysqli_error($this->db));` but the to_user_id row has multiple values. (45,67,234) Lets say that one of them (45) is the $uid note: the $uid variable is called on a session file. Its the …

Member Avatar for diafol
0
211
Member Avatar for hdhookings

Hi - I am very new to this. I have a joomla site where I am trying to get a date from a datepicker and display parts of my table using the date. Two major problems: Datepicker - for future. $dateSelected1 = $dateSelected . " 00:00:01"; $dateSelected2 = $dateSelected . …

Member Avatar for rubberman
0
300
Member Avatar for Stefce

How can i check if username and email exists i have this code but its only checking the email not the username... $sql = "SELECT `Email`, `UserUsername` FROM `users` WHERE `UserUsername`='".$user."' AND `Email`='".$email."'"; $result = $conn->query($sql); if($result->num_rows >= 1) { echo "Email or Username already exist, try something else."; } …

Member Avatar for saheedriswan
0
13K
Member Avatar for FarrisFahad

Hello everyone, I want to build an advertising system like AdSense on my website. I want to count only clicks that are not from the same user. Because I don't want the user to click many times on the same ad and ruining the ad program. I was thinking of …

Member Avatar for cereal
0
267
Member Avatar for janicemurby

hi i got another syntax error in a script that i am fixing to add onto my main site can someone take a look to see whats going off this error is You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version …

Member Avatar for janicemurby
0
221
Member Avatar for janicemurby

hi im wondering what the difference between mysqli_escape_string and mysqli_real_escape_string as i have a error on mysqli_escape_string and when i go to google error im just getting results in with mysqli_real_escape_string

Member Avatar for portjm
0
78
Member Avatar for janicemurby

hi i managed to change my site from mysql to mysqli with all your help although i have one line thats causing me problems in inbox.php can someone check this out and see whats wrong the error im getting is Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given …

Member Avatar for janicemurby
0
331
Member Avatar for Ramarasan

Step-by-step 1) I’ll continue from the previous post. You can download a project file from the previous post at here – SampleMySQL (zip format). The project was created on Microsoft Visual Studio 2005. 2) Open the Design view of Form1. 3)Drag DataGridView tool from the Toolbox window to empty area …

Member Avatar for tinstaafl
0
443
Member Avatar for Pavan_9

My website show below error. Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET/@@@@@@.net/ Reason: Error reading from remote server Apache/2.2.15 (CentOS) Server at hostgator.com Port 443 Response from Hostgator: The site is currently expericing MySQL timeout …

Member Avatar for ryantroop
0
216
Member Avatar for SirMahlon

please i want to reduce the size of images when i am rendering it on my site. my site is very slow now. i want to accept any size now but when rendering please i want to reduce the size. thanks in advance

Member Avatar for LaxLoafer
0
254
Member Avatar for shany0786

i am using password_hash() and password_verify() for hashing passwords but passwords_verify() returns false.This is my code <?php /** * . * * @author Anmol Raghuvanshi <ershadow786@gmail.com> * @license * @copyright */ class User_admin { private $db; function __construct($DB_con) { $this->db = $DB_con; } public function register($fname,$lname,$umail,$upass,$mobile,$address) { var_dump($upass); try { …

Member Avatar for shany0786
0
2K
Member Avatar for janicemurby

PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given on line 31 $insert = mysqli_query ($conn," insert into user set user_name = '".$_POST['uname']."' , age = '".$age."' , page = '".$page."' , user_password = '".$password."' , user_birthdate = '".$user_birthdate."' , puser_birthdate = '".$puser_birthdate."' , user_gender = '".$_POST['gender']."' , user_country = …

Member Avatar for rubberman
0
13K
Member Avatar for Florea

Hy there! I have a strange error to my prestashop. If I deactivate the module block contact without container the whole theme for mobile is ruined....Please see photo https://www.dropbox.com/s/1pst1w9ivuw4v3a/2016_01_03_12.25.10.png?dl=0 The error appears only to mobile and tablets. For desktop everything is okay. The same problem I get if I activate …

Member Avatar for Florea
0
168
Member Avatar for gamebits

Here is the deal, working on a card game using php mysql, I have a very simple way of shuffling the deck and I use array_chunk() to divide the deck into hands, the number of cards in each hand is variable depending of the numbers of players, there is also …

Member Avatar for cereal
0
440
Member Avatar for Hugo_1

pls i have a syntax error here... i have syntax error in line2 .... <?php mysql_query("insert into $s[pr]ad_type_google_dhtml VALUES (5, 'var dhtmlwindow={\r\najaxbustcache: true, //Bust caching when fetching a file via Ajax?\r\nminimizeorder: 0,\r\ntobjects: [], //object to contain references to dhtml window divs, for cleanup purposes\r\ninit:function(t){\r\n var domwindow=document.createElement(\"div\") //create dhtml window div\r\n …

Member Avatar for Nishant shukla1
0
292
Member Avatar for AntonyRayan

Hi, I am new to framwork, Now I started to learn Codeigniter. I have installed version of CodeIgniter 2.2.6, from the following link https://codeigniter.com/download I want to do a simple registration form with image upload , storing that image in a seperate folder, image name in to database, and with …

Member Avatar for Nishant shukla1
0
4K
Member Avatar for Sophia_1

Hi everyone, tried to display next and previous records using Next and Previous buttons but unable to do so. The record displayed is the current record whenever i click the Next or Previous buttons ie it doesn't move to the next or previous records. Below is the coding. Please advise. …

Member Avatar for Nishant shukla1
0
360
Member Avatar for Gagan_4

I want to show all data of the page in pdf but i have no idea how to do this . I am using php .Please help me to solve that problem.

Member Avatar for LaxLoafer
0
285
Member Avatar for shany0786

i have following code first insert is working properly and data in to database but second insert query which depends on last_insert_id() fails.I have tried to find out mistake but failed to do so? <?php namespace Solutions\File; class AddUserData { function __construct($DB_con) { $this->db = $DB_con; } public function insert_detail($productDetails){ …

Member Avatar for cereal
0
2K
Member Avatar for AntonyRayan

I use this code to find time difference, alert(( new Date("1970-1-1 12:42 ") - new Date("1970-1-1 9:42") ) / 1000 / 60 / 60 ); it works in chrome, but in firefox it shows NaN error. How to solve this?

Member Avatar for cereal
0
115
Member Avatar for klemme

Hi all, I have two tables. - Cart (cartId, prodId, etc) - Codes (Id, cartId, Code) Each line in the **Cart table** has a code from the **Codes table**. Because of an error, we now have 20 cart rows (But another time around it could be 1000 rows, so manually …

Member Avatar for klemme
0
231

The End.