Jump to content
php.lv forumi

inet_aton , ntoa


Nezinītis

Recommended Posts

ar echo vai print_r šim vaicājumam -

$kveerijs=mysql_query("INSERT INTO issues (subject, content, type, project_id, user_id, status, ip_add) VALUES (".S($subject).",".S($content).",".S($type).",".S($project_id).",".S($_SESSION['u_id']).",".S($veert_main).",inet_aton('".$ip."'))")or die(mysql_error());

izvada tikai vieninieku. :x

Link to comment
Share on other sites

echo "INSERT INTO issues (subject, content, type, project_id, user_id, status, ip_add) VALUES (".S($subject).",".S($content).",".S($type).",".S($project_id).",".S($_SESSION['u_id']).",".S($veert_main).",inet_aton('".$ip."'))"

 

un mēģini caur phpmyadmin iepostēt izvadūti

Link to comment
Share on other sites

Neizmantoju nekādus phpmyadminus, strādāju ar lamp un visu daru caur konsoli.

echo -

INSERT INTO issues (subject, content, type, project_id, user_id, status, ip_add) VALUES ('Labdien!','GTPS projektā ir ieviesusies problēma. :x','Programmēšanas kļūda','14','32','Nenoteikts',inet_aton('::1'))ai ai ai ai

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...