[Solved] htacess redirecting to js & css files

[ad_1] Well, as other also have pointed out in comments and answers, this is NOT POSSIBLE. We can’t refer above or outside of our Project Root from client side scripting. We can do things from server side coding, but client-side code, not possible/ [ad_2] solved htacess redirecting to js & css files

[Solved] error in mysql query string [closed]

[ad_1] Let me convert your code to MySQLi at least. MySQL is already deprecated. <?php /* ESTABLISH CONNECTION */ $connect=mysqli_connect(“YourHost”,”YourUsername”,”YourPassword”,”YourDatabase”); /* REPLACE NECESSARY DATA */ if(mysqli_connect_errno()){ echo “Error”.mysqli_connect_error(); } /* REPLACE THE NECESSARY POST DATA BELOW AND PRACTICE ESCAPING STRINGS BEFORE USING IT INTO A QUERY TO AVOID SOME SQL INJECTIONS */ $uname=mysqli_real_escape_string($connect,$_POST[‘username’]); $pass=mysqli_real_escape_string($connect,$_POST[‘password’]); $query … Read more

[Solved] Sql update statement for unique field

The SQL UPDATE statement is a powerful tool for updating data in a database. It can be used to update a single field or multiple fields in a table. When updating a unique field, it is important to ensure that the value being updated is unique and does not already exist in the table. This … Read more

[Solved] PHP/MySQL text and reference [closed]

[ad_1] first, create 3 columns. id, name, then the url. then output it like this <a href=”https://stackoverflow.com/questions/25077589/$url”><p>$name</p></a> But I would like to tell you frankly that this question is very basic, this forum may hinder you from learning if you did not challenge yourself. 🙂 2 [ad_2] solved PHP/MySQL text and reference [closed]

[Solved] onmouseover and onmouseout not work

[ad_1] You have syntax errors. Try to use this if($type==’1′){$link_medalje=”<a href=”https://stackoverflow.com/questions/25112942/javascript:void(0);” onmouseover=”prikazimis(\”Administrator\’);” onmouseout=”sakrijmis();”><img src=””></a>’;} 2 [ad_2] solved onmouseover and onmouseout not work

[Solved] I Want to create a Contact form with User profile name auto input (Dynamic Text)

[ad_1] Thanks Guys for all the Moral Support because without you guys i would’t have researched this much. Thanks again solved it with: <?php echo $_SESSION[‘name’]; ?> now can anybody tell me how can i include in my form text field. Please [ad_2] solved I Want to create a Contact form with User profile name … Read more

[Solved] Copy current record to another table with php and mysql

[ad_1] Do you mean something like this? $sql = “INSERT INTO prueba (nombre) VALUES ($nombre) WHERE id = ‘$id'”; 1)use mysqli instead of mysql 2) instead of $row[0] use $row[nombre_ID] (if thats what its called) 3) do the same for $row[1] to like $row[nombre] 4) change mysql_fetch_row($query) to mysqli_fetch_array($query,MYSQLI_ASSOC) 6 [ad_2] solved Copy current record … Read more

[Solved] How would I build this JSON using a PHP array

[ad_1] The only way I know is to json encode an array like this: <?php echo json_encode( [ “bundles” =>[ [ “type” => “TYPE1”, “items” => [ [ “bom” => [ [ “type” => “C”, “stockId” => “1”, “quantity” => 1, “metadata” => [ “key” => “value” ] ], [ “type” => “E”, “quantity” => … Read more

[Solved] Tracing a syntax error in my PHP code [closed]

[ad_1] Try this <?php // check for errors error_reporting(E_ALL); ini_set(‘display_errors’, True); // deny access if not logged if (!session_id()) session_start(); if (!$_SESSION[‘logon’]){ header(“Location:login.php”); die(); } $username = $_POST[‘username’]; //martin $password = $_POST[‘password’]; //123456 if (isset($_POST[‘username’])) { // connect to server $con = mysql_connect(“localhost”, “root”, “”); if(!$con){ die(‘Could not connect: ‘. mysql_error());} mysql_select_db(“test”, $con); if(mysql_num_rows(mysql_query(“SELECT * … Read more